var ilk = 1;
var nrPict = 4;
var degissure = 6000;
var sec 

function makeArray() {
        this.length = makeArray.arguments.length
        for (var i = 0; i < this.length; i++) this[i+1] = makeArray.arguments[i]
}

function resimdegistir() {
        document.getElementById("resim").src = teams[ilk];
        ilk += 1;
        if (ilk == (nrPict+1)) ilk = 1;
                setTimeout("resimdegistir()", degissure);
}
// Resimler

var teams = new makeArray (
"images/spot/1.jpg",
"images/spot/2.jpg",
"images/spot/3.jpg",
"images/spot/4.jpg"
);


function gosder(id){
	if (document.getElementById(id).style.display == "") 
	{
	//Görünümezken
	//txtgosder = "none";
	//renkle1(id);
	}	
	else 
	{txtgosder = ""; 
	//Görünürken
	renkle2(id);
	var x = setTimeout(function() {document.getElementById(id).style.display = "none";renkle1(id);}, 2400)
	}
	document.getElementById(id).style.display = txtgosder;
}

function PopTip(id,lang){
	window.open('tipler.php?lang='+lang+'&id='+id,'KeceTipler', 'height=270,width=400,status=no,toolbar=no,scrollbars=no');
}
function PopTip2(){
	window.open('pop_kodlamasablonu.php','KeceTipler2', 'height=500,width=480,status=no,toolbar=no,scrollbars=yes');
}

function renkle1(id){
	document.getElementById("t"+id).style.color="#000000";
	document.getElementById("h"+id).style.backgroundColor="";

}
function renkle2(id){
	document.getElementById("h"+id).style.backgroundColor="#CC0000";
	document.getElementById("t"+id).style.color="#FFFFFF";
}


function OpenPop(page){
	window.open(page, "fpop", config="height=600,width=550,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directories=no,status=no");
}

function OpenPop2(page,h,w){
	window.open(page, null, config="height="+h+",width="+w+",toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,directories=no,status=no");
}

function resimdegis(id,resim){
document.getElementById(id).src="images/"+resim
}

function boya(id){
document.getElementById(id).style.background="#CC0000";
}
function boyasil(id){
document.getElementById(id).style.background="";
}

function MM_jumpMenu(yol,adres,olay)
{
	if (olay==0)
	{
	location.href=adres
	}
	else{
	window.open(adres,null)
	}
}

function MailAt(Ext,Dom,User){
str1 = 'mailto:';
window.location.href = str1+User+'@'+Dom+'.'+Ext;
}
