var vnum = navigator.appVersion.substring(0,1)
mac = false;
var n4 = (document.layers)? true:false;
var e4 = (document.all)? true:false;
var n6 = (document.getElementById)? true:false;
if (e4) n6=false;

//--------- CSS protection for NS ---------------------------
if (navigator.appName=="Netscape" && parseInt(navigator.appVersion)==4) {
	widthCheck = window.innerWidth
	heightCheck = window.innerHeight
	window.onResize = resizeFix
}
function resizeFix() {
	if (widthCheck != window.innerWidth || heightCheck != window.innerHeight)
	document.location.href = document.location.href
}
// Embed SWF-----------------------------------
function embedSwf(swf_path,width,height,wmode,xml_path){
	var wmode_at="";
	if(typeof(wmode)!='undefined'&&wmode!='') wmode_at=' wmode=\"'+wmode+'\"';
	document.write('<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"'+width+'\" height=\"'+height+'\" align=\"middle\" />');
	document.write('<param name=\"allowScriptAccess\" value=\"sameDomain\" />');
	document.write('<param name=\"movie\" value=\"'+swf_path+'\" />');
	document.write('<param name=\"quality\" value=\"high\" />');
	document.write('<param name=\"bgcolor\" value=\"#ffffff\" />');
	if(typeof(wmode)!='undefined'&&wmode!='') document.write('<param name=\"wmode" value=\"'+wmode+'\" />');
	document.write('<param name=\"FlashVars" value=\"xmlurl='+xml_path+'\" />');
	document.write('<embed src=\"'+swf_path+'\" quality=\"high\" bgcolor=\"#ffffff\"'+wmode_at+' width=\"'+width+'\" height=\"'+height+'\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" FlashVars=\"xmlurl='+xml_path+'" />');
	document.write('</object>');
}
