<!--
ms = "";
ms1b = "";
smIDold = "";
hmID = "";
hmIDOld = "";

function showMenu(smID,hmID){
	if (smID == "ms" && ms1b != ""){
		clearTimeout(ms1b);
		return false;
	}
	
	smIDn = smID;
	hmIDn = hmID;
	if (ms1b != ""){
		clearTimeout(ms1b);
	}
	if (smIDold != ""){
		setElement(hmIDold,0,"className","hm");
		setElement(smIDold,1,"display","none");
	}
	
	setElement(hmID,0,"className","hm hmover");
	setElement(smID,1,"display","block");
	smIDold = smID;
	hmIDold = hmID;
}

function hideMenu(){
	ms1b=setTimeout('hideMenu2()',1000);
}

function hideMenu2(){
	setElement(hmIDn,0,"className","hm");
	setElement(smIDn,1,"display","none");
}

function setElement(eID,ifStyle,funct,wert){
	if (document.getElementById){
		if (ifStyle == 1){
			var newElement = document.getElementById(eID).style;
		}
		else {
			var newElement = document.getElementById(eID);
		}
		newElement[funct] = wert;
	}
}

function getRandomNumber(x1,x2,x3) {
	rNumber = (Math.floor((Math.random()*(x2-x1+1)+x1)*Math.pow(10,x3))) / Math.pow(10,x3);
	if (rNumber > x2){
		rNumber = x2;
	}
	return rNumber;
}

//check for flash
var flashversionMin = 8;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;

if (plugin) {
	for (f = 0; f < 20; f++) {
		var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
		if (plugin.description.indexOf(f+".")>=0){
			flashversion = f;
			
			if (flashversion >= flashversionMin){
				plugin = true;
				break;
			}
		}
	}
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) {
	document.write('<SC'+'RIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+flashversionMin+'")))\n');
	document.write('</SC'+'RIPT\> \n'); 
}

function playSWF(file,id,vars,width,height,wmode,bgcolor,baseurl,wLName) {
	fsource='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
	fsource+=' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ';
	fsource+=' ID='+id+' WIDTH="'+width+'"; HEIGHT="'+height+'">';
	fsource+=' <PARAM NAME="allowScriptAccess" VALUE="sameDomain" /> <PARAM NAME=movie VALUE="'+file+'"> <PARAM NAME=FlashVars VALUE="'+vars+'"> <PARAM NAME=menu VALUE=false>  <PARAM NAME="BASE" VALUE='+baseurl+'> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode value='+wmode+'> <PARAM NAME=bgcolor VALUE='+bgcolor+'>';
	if(navigator.userAgent.indexOf("Opera")==-1) {
		fsource+=' <EMBED src="'+file+'" FlashVars="'+vars+'" wmode='+wmode+' menu=false quality=high bgcolor='+bgcolor+'';
		fsource+=' swLiveConnect=FALSE allowScriptAccess="sameDomain" NAME='+id+' WIDTH="'+width+'" HEIGHT="'+height+'"';
		fsource+=' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" BASE='+baseurl+'>';
		fsource+=' </EMBED>';
	}
	else {
		fsource+=' <EMBED src="'+file+'" FlashVars="'+vars+'" wmode='+wmode+' menu=false quality=high bgcolor='+bgcolor+'';
		fsource+=' swLiveConnect=FALSE allowScriptAccess="sameDomain" ID='+id+' WIDTH="'+width+'" HEIGHT="'+height+'"';
		fsource+=' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" BASE='+baseurl+'>';
		fsource+=' </EMBED>';
	}
	fsource+=' </OBJECT>';

	if (document.getElementById){
		document.getElementById(wLName).innerHTML=fsource;
	}
}


		function showContent(x){
			x.className="hmenu ie6showContent";
		}
		
		function hideContent(x){
			x.className="hmenu ie6hideContent";
		}

		function fxmbgclick(url) {
			  if (document.getElementById){
			    var D = document;
			    var height = Math.max(
			        Math.max(D.body.scrollHeight, D.documentElement.scrollHeight),
			        Math.max(D.body.offsetHeight, D.documentElement.offsetHeight),
			        Math.max(D.body.clientHeight, D.documentElement.clientHeight)
			    );

			    document.getElementById("wallpaper").style.height=height+"px";
			    document.getElementById("wallpaper").style.display="block";
			    document.getElementById("wallpaper").href=url;
			  } 
			}
//-->
