		function toCenter(el) {                                                                                                  	
			
			//var bl = null // $("blackOut");
			
			el.style.display = 'block';
			//bl.style.display = 'block';

			el.style.position = "absolute";
			
                        if (window.innerWidth) {
				var screenMaxW = window.innerWidth;
				var screenMaxH = window.innerHeight;
			} else if (document.documentElement && document.documentElement.clientWidth) {
				var screenMaxH = document.documentElement.clientHeight;
				var screenMaxW = document.documentElement.clientWidth;
			} else if (document.body) {
				var screenMaxW = document.body.clientWidth;
				var screenMaxH = document.body.clientHeight;
			}
			var x = (screenMaxW - el.clientWidth)/2;
        		var y = (screenMaxH - el.clientHeight)/2;


			if (document.all) {	
				iebody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body;
                   		y = y + iebody.scrollTop;
				bl.style.height = iebody.scrollWidth;

			} else {
				// el.style.position = "fixed";
				//bl.style.position = "fixed";
			}

	                //el.style.left = x + 'px';
			//_a.effect(el).show();
			//el.style.top = "-600px"; /*y + 'px';*/
			
			//if (_a.browser.msie) {
				
				/*$(bl).fadeIn("slow");
				$(el).animate({"top":y}, "slow", "swing");*/
			//} else {
				/*$(bl).fadeIn("slow", function() {$(el).animate({"top":y}, "slow", "swing")});*/
			//}
			/*$(bl).fadeIn("slow", function() {$(el).animate({"top":y}, "slow", "swing")});*/
			//_a.effect(el).animate({"top":y}, "slow", "swing");
		}



var FlashMode=(document.all ? 1 : 0);

// NETSCAPE
if (navigator.plugins && navigator.plugins.length > 0)
{
	if (navigator.plugins["Shockwave Flash"])
	{
		var plugin_version = 0;
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");

		for (var i = 0; i < words.length; ++i)
		{
			if (isNaN(parseInt(words[i])))
			continue;
			plugin_version = words[i];
		}
		if (plugin_version >= 6)
		{
			var plugin = navigator.plugins["Shockwave Flash"];
			var numTypes = plugin.length;
			for (j = 0; j < numTypes; j++)
			{
				mimetype = plugin[j];
				if (mimetype)
				{
					if (mimetype.enabledPlugin && (mimetype.suffixes.indexOf("swf") != -1))
						FlashMode = 1;
					// Mac wierdness
					if (navigator.mimeTypes["application/x-shockwave-flash"] == null)
						FlashMode = 0;
				}
			}
		}
	}
}
do_dw_var = FlashMode;
browser_flash_version = plugin_version;

function LoadFlash(elementId, url, w, h, bgcolor, wmode) {
	var e = document.getElementById(elementId);
	if (FlashMode) {
		e.innerHTML = 
		'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+w+'" height="'+h+'" align="middle">'+
		'<param name="allowScriptAccess" value="sameDomain" />'+
		'<param name="movie" value="'+url+'" />'+
		'<param name="quality" value="high" />'+
		'<param name="bgcolor" value="#ffffff" />'+
		'<param name="wmode" value="transparent" />'+
		'<embed src="'+url+'" wmode="transparent" quality="high" bgcolor="#ffffff" width="'+w+'" height="'+h+'" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" />'+
		'</object>';
	} else {

	}
}

function LoadHead(elementId, url, w, h, bgcolor, wmode) {
	var e = document.getElementById(elementId);
	if (FlashMode) {
		e.innerHTML = 
		'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+w+'" height="'+h+'" align="middle">'+
		'<param name="allowScriptAccess" value="sameDomain" />'+
		'<param name="movie" value="'+url+'" />'+
		'<param name="quality" value="high" />'+
		'<param name="bgcolor" value="#ffffff" />'+
		'<param name="wmode" value="transparent" />'+
		'<embed src="'+url+'" wmode="transparent" quality="high" bgcolor="#ffffff" width="'+w+'" height="'+h+'" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" />'+
		'</object>';
	} else {

	}
}


function LoadCs(elementId, url, w, h, bgcolor, wmode) {
	return LoadFlash(elementId, url, w, h, bgcolor, wmode);
}



function displayHide(id) {
  var objStyle=document.getElementById(id).style;
  objStyle.display=(objStyle.display=='none' ? 'block' : 'none');
}


		function toCenter(el) {                                                                                                  	
			
			//var bl = null // $("blackOut");
			
			el.style.display = 'block';
			//bl.style.display = 'block';

			el.style.position = "absolute";
			
                        if (window.innerWidth) {
				var screenMaxW = window.innerWidth;
				var screenMaxH = window.innerHeight;
			} else if (document.documentElement && document.documentElement.clientWidth) {
				var screenMaxH = document.documentElement.clientHeight;
				var screenMaxW = document.documentElement.clientWidth;
			} else if (document.body) {
				var screenMaxW = document.body.clientWidth;
				var screenMaxH = document.body.clientHeight;
			}
			var x = (screenMaxW - el.clientWidth)/2;
        		var y = (screenMaxH - el.clientHeight)/2;


			if (document.all) {	
				iebody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body;
                   		y = y + iebody.scrollTop;
				bl.style.height = iebody.scrollWidth;

			} else {
				// el.style.position = "fixed";
				//bl.style.position = "fixed";
			}

	                //el.style.left = x + 'px';
			//_a.effect(el).show();
			//el.style.top = "-600px"; /*y + 'px';*/
			
			//if (_a.browser.msie) {
				
				/*$(bl).fadeIn("slow");
				$(el).animate({"top":y}, "slow", "swing");*/
			//} else {
				/*$(bl).fadeIn("slow", function() {$(el).animate({"top":y}, "slow", "swing")});*/
			//}
			/*$(bl).fadeIn("slow", function() {$(el).animate({"top":y}, "slow", "swing")});*/
			//_a.effect(el).animate({"top":y}, "slow", "swing");
		}

