$(document).ready(
				  function(){	
				  
				   var temp = GetSwfVer().split('.');
				   var versionToCheck='9.0.16';
				   var temp3 =versionToCheck.split('.');
					
					if(vIE()){
						var temp4 = GetSwfVer().split(' ');
						var temp2 = temp4[1].split(',');
						
						var j=0;
						if(temp2[0]==temp3[0] && temp2[1]==temp3[1] && temp2[2]==temp3[2]){
							doTheUpgrade();
							}
						
						}
					else{
						if(temp3[0]==temp[0] && temp[1]==temp3[1] && temp[2]==temp3[2]){
						doTheUpgrade();
							}
					}
				  
				
					  
				  });
function hideMe(){
	 $('#flashUpgradeInfo').hide();
	}
	 function doTheUpgrade(){
	 $('#flashUpgradeInfo').append("<p></p>").append("<img id='fcloseBtn' onclick='hideMe()' src='images/close.jpg' />").show();
	 $('#flashUpgradeInfo p').text('The current Flash player version will not be combatible for the Flash contents on this site please.').append("<a id='upgradebtn' href='http://www.adobe.com/go/getflash/' target='_blank'>Upgrade</a>");
	} 
function GetSwfVer(){
	// NS/Opera version >= 3 check for Flash plugin in plugin array
	var flashVer = -1;
	
	if (navigator.plugins != null && navigator.plugins.length > 0) {
		if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
			var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
			var descArray = flashDescription.split(" ");
			var tempArrayMajor = descArray[2].split(".");			
			var versionMajor = tempArrayMajor[0];
			var versionMinor = tempArrayMajor[1];
			var versionRevision = descArray[3];
			if (versionRevision == "") {
				versionRevision = descArray[4];
			}
			if (versionRevision[0] == "d") {
				versionRevision = versionRevision.substring(1);
			} else if (versionRevision[0] == "r") {
				versionRevision = versionRevision.substring(1);
				if (versionRevision.indexOf("d") > 0) {
					versionRevision = versionRevision.substring(0, versionRevision.indexOf("d"));
				}
			}
			var flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
			return (flashVer) ;
			//var upgradeVer;
			//upgradeVer = flashVer.split('.');
			//if (upgradeVer[0]==9 && upgradeVer[2] ==16 ){
			//$('flashUpgradeInfo').text('ok');
			//alert("Your current Flash Player version is : "+flashVer+" Click to upgrade");	
//}
		}
	}
	// MSN/WebTV 2.6 supports Flash 4
else if ( isIE && isWin && !isOpera ) {
		flashVer = ControlVersion();
	}	
	return flashVer;
}

function vIE(){
//Code to check the browser 
	if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
	var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
	return ieversion;
	}
	else
	return 0; // this is for other browsers 
}