var MM_FlashControlInstalled = false;
var MM_FlashControlVersion = false;

//FlashPlayerCheck

var nn=(navigator.appName.charAt(0)=="N");
var ie=(document.all && !nn) || false;
var mac=(navigator.userAgent.indexOf("Mac")!=-1) || false;
var macChecked=0;
var opera = window.opera;

if (ie && !mac && !opera)
{
	var flashVersion;
	try{
		flashVersion = new ActiveXObject("ShockwaveFlash.ShockwaveFlash").FlashVersion();
		MM_FlashControlVersion = Math.floor(flashVersion / 0x10000);
	}
	catch(e){
	}
	if(typeof(flashVersion)!="undefined" || MM_FlashControlVersion != false){
		MM_FlashControlInstalled = true;
	}else{
		MM_FlashControlInstalled = false;
	}
}

var flashVer = "6";
var instChk, vers;
var flashChk;
//var inst, vers;

if (navigator.plugins && navigator.plugins.length > 0){
	if (navigator.plugins["Shockwave Flash"]){
		var buf = navigator.plugins["Shockwave Flash"].description.split(" ");
		for (var i=0; i<buf.length; ++i){
			if (isNaN(parseInt(buf[i]))) continue;
			vers  = buf[i];
		}
		instChk = true;
	} else {
		instChk = false;
	}
} else if (MM_FlashControlInstalled != false){
	instChk = MM_FlashControlInstalled;
	vers = MM_FlashControlVersion;
}
if (instChk && (parseInt(flashVer) <= vers)){
	 flashChk = true;
} else {
	 flashChk = false;
}



function flash_visual(swfPath,swfVer,swfW,swfH,altImg){
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' +swfVer+ '" width=' +swfW+ ' height=' +swfH+ '>');
	document.write('<param name="movie" value="' +swfPath+ '">');
	document.write('<param name=quality value=high>');
	document.write('<param name=wmode value=transparent />');
	document.write('<embed src="' +swfPath+ '" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width=' +swfW+ ' height=' +swfH+ '>');
	document.write('</embed>');
	document.write('</object>');
}

function no_flash_visual(altImg,imgW,imgH){
	document.write('<img src="' +altImg+ '" alt="" width="' +imgW+ '" height="' +imgH+ '">');
}

function flash_link_l(){
	document.write('<!---flash installed--->');
}

function no_flash_link_l(img, url, text, alt, width, height){
	document.write('<div class="right_banner_l_l_bgc" style="background-color:#dddddd">');
	document.write('<a href="'+url+'" target="_blank"><img src="'+img+'" alt="'+alt+'" width="'+width+'" height="'+height+'" border="0"></a>');
	document.write('<p>'+text+'</p>');
	document.write('</div>');
}

function flash_link_m(){
	document.write('<!---flash installed--->');
}

function no_flash_link_m(img, url, text, alt, width, height){
	document.write('<div class="right_banner_mb">');
	document.write('<div class="right_banner_m_l_bgc" style="background-color:#dddddd">');
	document.write('<a href="'+url+'" target="_blank"><img src="'+img+'" alt="'+alt+'" width="'+width+'" height="'+height+'" border="0"></a>');

	document.write('<p>'+text+'</p>');
	document.write('</div>');
	document.write('</div>');
}

