var speedX = 7;
var speedY = 5; 
var bgColor = "#000000";
var txtColor = "#FF80000";

if (document.all){
var wide = window.screen.availWidth;
var high = window.screen.availHeight;
}

function fullscreen(url){
  if (document.all){
    var My_win = window.open("","","fullscreen");
    My_win.document.write('<HTML><BODY BGCOLOR='+bgColor+' SCROLL=NO><FONT FACE=ARIAL COLOR='+txtColor+'>Yüklüyor...</FONT></BODY></HTML>');
    My_win.focus();
    for (H=1; H<high; H+= speedY){
         My_win.resizeTo(1,H);
    }
    for (W=1; W<wide; W+= speedX){
         My_win.resizeTo(W,H);
    }
    My_win.location = url;
  }  
  else {
    window.open(url,"","");
  }
}

object1='mainMenu1';
object2='mainMenu2';
ie5 = (document.all)?1:0;
ns6 = (document.layers)?1:0;
opac = 100;
fadeInVar=0;
fadeOutVar=0;
neverFade=0;
function fadeInRec() { 
	if((opac <= 100) && (fadeOutVar==0)){ 
		opac+=4; 
		if(ie5) document.getElementById(object1).filters.alpha.opacity = opac; 
		if(ie5) document.getElementById(object2).filters.alpha.opacity = opac; 
		if(ns6) document.getElementById(object1).style.Mozopacity = opac/100; 
		if(ns6) document.getElementById(object2).style.Mozopacity = opac/100; 
		setTimeout('fadeInRec()',10); 
	} else
		fadeInVar==0;
} 
function fadeIn(){
	if(neverFade==1)
		return;
	fadeInVar=1;
	fadeOutVar=0;
	fadeInRec();
}
function fadeOut(){
	if(neverFade==1)
		return;
	fadeOutVar=1;
	fadeInVar=0;
	fadeOutRec();
}
function fadeOutRec() { 
	if((opac >= 40) && (fadeInVar==0)){ 
		opac-=2; 
		if(ie5) document.getElementById(object1).filters.alpha.opacity = opac; 
		if(ie5) document.getElementById(object2).filters.alpha.opacity = opac; 
		if(ns6) document.getElementById(object1).style.Mozopacity = opac/100; 
		if(ns6) document.getElementById(object2).style.Mozopacity = opac/100; 
		setTimeout('fadeOutRec()',10); 
	}else
		fadeOutVar==0;
} 
	
function setVariables(){
	if (navigator.appName == "Netscape") {
		ex=15,v=".top=",h=".left=",dS="document.",sD="",innerW="window.innerWidth",innerH="document.body.clientHeight";
	}
	else{	
		ex=5,v=".pixelTop=",h=".pixelLeft=",dS="",sD=".style",innerW="document.body.clientWidth",innerH="document.body.clientHeight";
	}
}

rightAktif=0;
leftAktif=0;
k=2;
maxLeft=-155;
y1=0;
function moveLeftRec(){
	if((y1 > maxLeft) && (rightAktif==0)) {
		sDid="off";
		y1-=k;
		eval(dS + object1 + sD + h + y1);
		eval(dS + object2 + sD + h + (y1));
		setTimeout("moveLeftRec()",5);
	}else {
		leftAktif=0;
		neverFade=0;
	}
}
function moveLeft(){
	neverFade=1;
	if(leftAktif == 1)
		return;
	leftAktif=1;
	rightAktif=0;
	moveLeftRec();
}
function moveRightRec(){
	if((y1 < 0) && (leftAktif==0)) {
		sDid="off";
		y1+=k;
		eval(dS + object1 + sD + h + y1);
		eval(dS + object2 + sD + h + (y1));
		setTimeout("moveRightRec()",5);
	}else {
		rightAktif=0;
		neverFade=0;
	}
}
function moveRight(){
	neverFade=1;
	if(rightAktif == 1)
		return;
	rightAktif=1;
	leftAktif=0;
	moveRightRec();
}

function change(i,j) {
	if (document.layers)
		window.document.layers[i].bgColor = j;
	else if (document.all)
		window.document.all[i].style.background = j;
}

