
/*ie6 flicker*/
(function(){ /*Use Object Detection to detect IE6*/ var m = document.uniqueID /*IE*/ && document.compatMode /*>=IE6*/ && !window.XMLHttpRequest /*<=IE6*/ && document.execCommand ; try{ if(!!m){ m("BackgroundImageCache", false, true) /* = IE6 only */ } }catch(oh){}; })();


<!-- popup-->
function popup(mylink, windowname, w, h){
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width='+w+',height='+h+',scrollbars=yes');
return false;
}

//windowSizes
 function windowSizes(){
			if( typeof( window.innerWidth ) == 'number' ){
				//Non-IE
				myWidth = window.innerWidth;
				myHeight = window.innerHeight;
				mySwfLeft =0;
			}
			else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ){
				//IE 6+ in 'standards compliant mode'
				myWidth = document.documentElement.clientWidth;
				
				myHeight = document.documentElement.clientHeight;
			} 
			else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ){
				//IE 4 compatible
				myWidth = document.body.clientWidth;
				myHeight = document.body.clientHeight;
			}			
		}
		// check the window dimentions 
		function controlDimesion() {			
			if(myHeight < 768){
				myHeight = 768 +"px";
				
			}
			else
			{
				myHeight = "100%";
			}
			
			if(myWidth == 1024 ){
				mySwfLeft=54+"px";
			}
			else if(myWidth < 1024 ){
				mySwfLeft=80+"px";
			}
			else{
				mySwfLeft=0;
			}
			
			
			if(myWidth < 970 )
			{
				myWidth = 970+"px";
				mySwfLeft=150+"px"
		
			}
			
			else
			{
				myWidth = "100%";
			}
			
			
		}
		function degistir(){
		windowSizes();
		controlDimesion();
		document.getElementById("backbg").style.height = myHeight;
		document.getElementById("backbg").style.width = myWidth;
		document.getElementById("cover").style.height = myHeight;
		document.getElementById("flash-content").style.left = mySwfLeft;
		//alert(mySwfLeft)
		}
	
	window.onresize = function() {
		degistir();
	}

	
