/* 	javascript to solve the ms "eolas" issue */
/*	version 1.1	*/
function show_swf( swf_src, swf_params, swf_width, swf_height, swf_id, sfw_bgcolor ) { 
	if ( sfw_bgcolor == '' ) var wmode = "transparent";
	else var wmode = "opaque";
	
	//	alert("swf_src: "+swf_src);
	document.write('<object type=\"application/x-shockwave-flash\" data=\"'+swf_src+swf_params+'\" width=\"'+swf_width+'\" height=\"'+swf_height+'\" id=\"'+swf_id+'\" style=\"-moz-user-focus:ignore\">'); 
	document.write(' <param name=\"allowScriptAccess\" value=\"always\" />'); 
	document.write(' <param name=\"movie\" value=\"'+swf_src+swf_params+'\" />'); 
	document.write(' <param name=\"bgcolor\" value=\"#'+sfw_bgcolor+'\" />'); 
	document.write(' <param name=\"scale\" value=\"noscale\" />'); 
	document.write(' <param name=\"wmode\" value=\"'+wmode+'\" />'); 	
	document.write(' <embed src=\"'+swf_src+swf_params+'\" quality=\"high\" bgcolor=\"#'+sfw_bgcolor+'\" width=\"'+swf_width+'\" height=\"'+swf_height+'\" id=\"'+swf_id+'\" allowScriptAccess=\"always\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" wmode=\"'+wmode+'\" />'); 
	document.write('</object>'); 	
}	//	EO function show_swf()


/*
	script to reposition and resize medium rectangle div
	required since some browsers do not render flash files if they are
	outside the visible area, thus we need to reformat this div once the 
	flash file has been loaded.
	this javascript is to be called from within the medium rectangle swf!
*/
function reposition_med_rect () {
	
	// 	alert("reposition_med_rect ()");
	
	//	reposition and resize medium rectangle
	if (document.getElementById) obj=document.getElementById('medium_rectangle').style;
	else if (document.all) obj=document.all['medium_rectangle'].style;
	else if (document.layers) obj=document.layers['medium_rectangle'];
	else return false;
	if ( obj ) {
		obj.top = '527px';
		obj.left = '547px';
		obj.width = '300px';
		obj.height = '250px';
	}
}	//	EO function prepare_ads ()

/*	function to make large overlay visible	*/
function show_full_overlay () {
	//	
	// 	alert("show_full_overlay()");
	
	if (document.getElementById) obj=document.getElementById('full_overlay').style;
	else if (document.all) obj=document.all['full_overlay'].style;
	else if (document.layers) obj=document.layers['full_overlay'];
	else return false;
	
	if ( obj ) {
		// 	alert("show it baby!");
		// 	alert("height: "+obj.visibility);
		obj.top = '0px';
		obj.left = '0px';
		obj.width = '1003px';
		obj.height = '900px';
		// 	obj.backgroundColor = '#000000';
		obj.zIndex = 20;
		//	alert(obj.backgroundColor);
	}
	
}	//	EO function show_full_overlay ()

function hide_full_overlay () {

 	// 	alert("hide_full_overlay()");

	if (document.getElementById) obj=document.getElementById('full_overlay').style;
	else if (document.all) obj=document.all['full_overlay'].style;
	else if (document.layers) obj=document.layers['full_overlay'];
	else return false;
	
	if ( obj ) {
		// 	alert("show it baby!");
		// 	alert("height: "+obj.visibility);
		obj.width = '0px';
		obj.height = '0px';
		obj.zIndex = 5;
	}
	
	change_page_bg_color('white');

}	//	EU function hide_full_overlay ()

//	function to change page's background color
function change_page_bg_color (colorname) {
	//	alert("colorname: "+colorname);
	if ( colorname == "black" ) bg_color = "#000000";
	else bg_color = "#FFFFFF"; 
	
	if (bg_color != "") {
		obj=document.getElementsByTagName("body")[0];
		//change bg color of the page
		obj.style.backgroundColor=bg_color;
	   	obj.style.backgroundImage="none"; 
	}
}	//	EO function change_page_bg_color ()
