function displayBackground(){
	var width = '913';
	var height = '800';
	var id = 'flashBg';
	var file = 'fileadmin/templates/flash/background.swf';
	
	var vars = 'path=fileadmin/templates/images/&config=fileadmin/templates/flash/' + configPath;
	
	var tempHtml = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+width+'" height="'+height+'" id="'+id+'" name="'+id+'">';
	tempHtml += '<param name="movie" value="'+file+'">';
	tempHtml += '<param name="quality" value="high">';
	tempHtml += '<param name="menu" value="false">';
	tempHtml += '<param name="wmode" value="transparent">';
	tempHtml += '<param name="scale" value="noscale">';
	tempHtml += '<param name="salign" value="TL">';

	tempHtml += '<param name="flashVars" value="'+vars+'">';
	tempHtml += '<embed src="'+file+'" flashVars="'+vars+'" salign="TL" quality="high" scale="noscale" wmode="transparent" menu="false" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" id="'+id+'" name="'+id+'"></embed>';

	tempHtml += '</object>';
	document.getElementById('background').innerHTML = tempHtml;
}

function isDefined(variable){
	return (typeof(window[variable]) == 'undefined')? false : true;
}

window.onload = function(){
	//function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)
	if(DetectFlashVer(9, 0, 0)){
		displayBackground();
	}
	
	if(navigator.appName == 'Microsoft Internet Explorer'){
		var sfEls = document.getElementById("menu").getElementsByTagName("LI");
		for (var i=0; i<sfEls.length; i++){
			if(sfEls[i].firstChild.firstChild.offsetHeight < 20){
				sfEls[i].firstChild.style.height = '21px';
				sfEls[i].firstChild.style.paddingTop = '7px';
			}
			sfEls[i].onmouseover=function(){this.className += ' sfhover';}
			sfEls[i].onmouseout=function(){this.className = this.className.replace(new RegExp(' sfhover\\b'), '');}
		}
	}
}
