function SetPrimaryMenuWeel(Step) {
	if ( document.images ) {
		if ( document.images['PrimaryMenuWeel'] ) {
			document.images['PrimaryMenuWeel'].className='Wheel'+Step;
		}
	}
} // PrimaryMenuWeel

var FlashCanPlay;
function InsertFlashWithDetection(FlashSrc, ImageSrc, Width, Height, Version, Align, BgColor, WMode, Quality, CreateDownloadLink) {
	FlashCanPlay=false;
	var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
	if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
		for (var i = 0; i < words.length; ++i) {
			if (isNaN(parseInt(words[i]))) continue;
			var PluginVersion = words[i]; 
		}
		FlashCanPlay = PluginVersion >= Version;
	} else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)) {
		document.write('<scr' + 'ipt language=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
		document.write('on error resume next \n');
		document.write('FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+Version+'")))\n');
		document.write('</scr' + 'ipt\> \n');
	}

	if ( FlashCanPlay ) {
		var FlashSrcBase=FlashSrc.substr(0, FlashSrc.lastIndexOf('/'));
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
		document.write(' codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+Version+',0,0,0"');
		document.write(' width="'+Width+'"');
		document.write(' height="'+Height+'"');
		document.write(' align="'+Align+'"');
		document.write(' base="'+FlashSrcBase+'"');
		document.write('>');
		document.write('<param name="allowScriptAccess" value="sameDomain">');
		document.write('<param name="menu" value="false">');
		document.write('<param name="movie" value="'+FlashSrc+'">');
		document.write('<param name="wmode" value="'+WMode+'">');
		document.write('<param name="quality" value="'+Quality+'">');
		document.write('<param name="bgcolor" value="'+BgColor+'">');
		document.write('<embed pluginspage="http://www.macromedia.com/go/getflashplayer"');
		document.write(' allowscriptaccess="sameDomain"');
		document.write(' type="application/x-shockwave-flash"');
		document.write(' menu="false"');
		document.write(' src="'+FlashSrc+'"');
		document.write(' base="'+FlashSrcBase+'"');
		document.write(' width="'+Width+'"');
		document.write(' height="'+Height+'"');
		document.write(' align="'+Align+'"');
		document.write(' wmode="'+WMode+'"');
		document.write(' quality="'+Quality+'"');
		document.write(' bgcolor="'+BgColor+'"');
		document.write('</embed>');
		document.write('</object>');
	} else if ( ImageSrc ) {
		if ( typeof(CreateDownloadLink)=='undefined' ) CreateDownloadLink=false;
		if ( CreateDownloadLink ) {
			document.write('<a href="http://www.macromedia.com/go/getflashplayer"><img src="'+ImageSrc+'" alt="" width="'+Width+'" height="'+Height+'" border="0" align="'+Align+'"></a>');
		} else {
			document.write('<img src="'+ImageSrc+'" alt="" width="'+Width+'" height="'+Height+'" border="0" align="'+Align+'">');
		}
	}
} // InsertFlashWithDetection

function MM_swapImgRestore() { //v3.0
	var i,x,a=document.MM_sr;
	for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; 
	for(i=0; i<a.length; i++)
	    if (a[i].indexOf("#")!=0){
			d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];
		}
	}
}

function MM_findObj(n, d) { //v3.6 (Netscape 6 support)
	var p,i,x;  
	if(!d) d=document; 
	if((p=n.indexOf("?"))>0&&parent.frames.length) {
  		d=parent.frames[n.substring(p+1)].document; 
		n=n.substring(0,p);
	}
	if (d.getElementById)
		x=d.getElementById(n); 
	if (!x) {
  		if(!(x=d[n])&&d.all)
			x=d.all[n];
		for (i=0;!x&&i<d.forms.length;i++)
			x=d.forms[i][n];
  		for(i=0;!x&&d.layers&&i<d.layers.length;i++)
			x=MM_findObj(n,d.layers[i].document); 
	}
	return x;
}

function MM_swapImage() { //v3.0
	var i,j=0,x,a=MM_swapImage.arguments;
  	document.MM_sr=new Array;
  	for(i=0;i<(a.length-2);i+=3)
  		if ((x=MM_findObj(a[i]))!=null){
			document.MM_sr[j++]=x;
			if(!x.oSrc)
				x.oSrc=x.src;
			x.src=a[i+2];
		}
}

