function MM_R() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_pI() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_pI.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_I() { //v3.0
  var i,j=0,x,a=MM_I.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function ac(res) {
	leftPos = 0
	topPos = 0
	if (screen) {
		leftPos = (screen.width / 2) - 332
		topPos = (screen.height / 2) - 252
	}
	nw = window.open("","nw","width=662,height=502,scrollbars=no,left="+leftPos+",top="+topPos);
	nw.document.open();
	nw.document.write('<html><title>Referans</title><body style=margin:0;background-color:#343642 onClick="window.close()">'); 
	nw.document.write('<table style=width:100%;height:100%><tr><td style=text-align:center><img src=images/referanslar/'+res+'>'); 	
	nw.document.write('</td></tr></table></body></html>');
	nw.document.close();
	nw.focus();
}

function videoac(vid,wd,hg) {
	leftPos = 0
	topPos = 0
	wd+=20
	hg+=20
	if (screen) {
		leftPos = (screen.width / 2) - (wd/2)
		topPos = (screen.height / 2) - (hg/2)
	}
	nw = window.open("","nw","width="+wd+",height="+hg+",scrollbars=no,left="+leftPos+",top="+topPos);
	nw.document.open();
	nw.document.write('<html><title>Referans</title><body style=margin:0;background-color:#343642 onClick="window.close()">'); 
	nw.document.write('<table cellspacing=0 cellpadding=0 style=width:100%;height:100%;background-color:#343642><tr><td align=center>'); 	
	nw.document.write('<iframe width='+wd+' height='+hg+' scrolling=no src="video.html?video='+vid+'"></iframe>'); 	
	nw.document.write('</td></tr></table></body></html>');
	nw.document.close();
	nw.focus();
}

function dil_degistir(dil) {
	if (dil=='tr') {
		location.href='http://www.seccelik.com.tr/'+location.href.substring(location.href.lastIndexOf('en/')+3);
	} else {
		location='en/'+location.href.substring(location.href.lastIndexOf('/')+1);
	}
}