﻿<!--
var varFunc1=0;
function kapakhareket(){
	var the_style=getStyleObject("Layer1");
	var the_left=parseInt(the_style.left)+1;
	if (document.layers){the_style.left=the_left;}
	else{the_style.left=the_left+"px";}
	t1=setTimeout("kapakhareket()",1);
	if(the_left==580){
		clearTimeout(t1);
		t=kapakbekle();
	}
}
function kapakbekle(){
	varFunc1=varFunc1+1;
	t2=setTimeout("kapakbekle()",10000);
	if(varFunc1==2){
		clearTimeout(t2);
		t=kapakdaral();
	}
}
function kapakdaral(){
	var the_style=getStyleObject("Layer1");
	var the_left=parseInt(the_style.left)+1;
	var the_width=parseInt(the_style.width)-1;
	if (document.layers){the_style.left=the_left;the_style.width=the_width;}
	else{the_style.left=the_left+"px";the_style.width=the_width+"px";}
	t3=setTimeout("kapakdaral()",1);
	if(the_left==760){
		clearTimeout(t3);
	}
}
function getStyleObject(objectId){
	// cross-browser function to get an object's style object given its
	if(document.getElementById && document.getElementById(objectId)){
		// W3C DOM
		return document.getElementById(objectId).style;
	}
	else if (document.all && document.all(objectId)){
		// MSIE 4 DOM
		return document.all(objectId).style;
	}
	else if (document.layers && document.layers[objectId]){
		// NN 4 DOM.. note: this won't find nested layers
		return document.layers[objectId];
	}
	else{
		return false;
   	}
}
//-->
