function fnResetScreenSize(){
	var varWidth = 900;
	var varHeight = 630;
	var varX = 0;
	var varY = 0;

	if (navigator.userAgent.indexOf("MSIE") != -1){
		varCurrentWidth = document.body.clientWidth;
		varCurrentHeight = document.body.clientHeight;
		//alert("ie");
	
	} else {
		//alert("yes");
		varCurrentWidth = window.innerWidth;
		varCurrentHeight = window.innerHeight;
		//alert(document.getElementById("Layer1").style.height);
		if (varCurrentWidth > varWidth){
			varX = (varCurrentWidth/2)-(varWidth/2);
		}else{
			varX = 0;
		}
		
		if (varCurrentHeight > varHeight){
			varY = (varCurrentHeight/2)-(varHeight/2);
		}else{
			varY = 0;
			
		}
		
		
		
	}
	
	if (varCurrentWidth > varWidth){
		//varX = (varCurrentWidth/2)-(varWidth/2);
		document.getElementById("Layer1").style.width = varCurrentWidth  + "px";
	}else{
		document.getElementById("Layer1").style.width = varWidth  + "px";
	}
	
	if (varCurrentHeight > varHeight){
		//varY = (varCurrentHeight/2)-(varHeight/2);
		document.getElementById("Layer1").style.height = varCurrentHeight  + "px";
		
	}else{
		document.getElementById("Layer1").style.height = varHeight  + "px";
		
	}



}// end of fnResetScreenSize

function writeSite(){

	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) {  // if we've detected an acceptable version
		var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
		+ 'width="100%" height="100%"'
		+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<param name="movie" value="cin2_site.swf?show_ud=0" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#000000" />'
		+ '<embed src="cin2_site.swf?show_ud=0" loop="false" menu="false" quality="high" wmode="transparent" bgcolor="#000000" '
		+ 'width="100%" height="100%" name="cin2_site" align="middle"'
		+ 'play="true"'
		+ 'loop="false"'
		+ 'quality="high"'
		+ 'allowScriptAccess="sameDomain"'
		+ 'type="application/x-shockwave-flash"'
		+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
		+ '<\/embed>'
		+ '<\/object>';
		document.write(oeTags);   // embed the flash movie
	  } else {  // flash is too old or we can't detect the plugin
		var alternateContent = '<table width="100%" height="100%"><tr valign="middle" align="center"><td valign="middle" align="center">'
		+ '<a href="http://www.macromedia.com/go/getflash/"><img src="images/noflash.jpg" border="0"></a>'
		+ '</td></tr></table>';
		document.write(alternateContent);  // insert non-flash content
	  }
}