
// JavaScript for Astrive

function MM_changeProp(objId,x,theProp,theValue) { //v9.0
  var obj = null; with (document){ if (getElementById)
  obj = getElementById(objId); }
  if (obj){
    if (theValue == true || theValue == false)
      eval("obj.style."+theProp+"="+theValue);
    else eval("obj.style."+theProp+"='"+theValue+"'");
  }
}

// Flash Movie

function getFlashMovie(movieName) {
	//alert(movieName);
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
	return (isIE) ? window[movieName] : document[movieName];
}

function playFlashVideo(movieName) {
	//alert(movieName);
	getFlashMovie(movieName).playVideo();
}

function closeWindow() {
	MM_changeProp('flashVideo','','display','none','DIV')
}

// Black Layer Cover

function showBlackLayer() {
	var elmHeight = document.getElementById("wrapper").offsetHeight; // Get the Legnth of the page
	/*document.getElementById("blackLayer").style.height = elmHeight + 40;
	document.getElementById("blackLayer").style.width = "100%";
	document.getElementById("blackLayer").style.display = "block";
	document.getElementById("blackLayer").style.filter = "alpha(opacity=70)";
	document.getElementById("blackLayer").style.opacity = 0.7;*/

}