//===========================================================================
// JavaScriptler
//===========================================================================
//alert("merhaba");

//=============================================================================
// + Flash yazdrma
//=============================================================================
function flashYaz (flIsimVeID, en, boy) {
	//alert(flIsimVeID+".swf - w:"+en+" - h:"+boy);
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ en +'" height="'+ boy +'" id="'+ flIsimVeID +'" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain">');
	document.write('<param name="movie" value="'+ flIsimVeID +'.swf">');
	document.write('<param name="menu" value="false">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="bgcolor" value="#ffffff">');
	document.write('<embed src="'+ flIsimVeID +'.swf" menu="false" quality="high" bgcolor="#ffffff" width="'+ en +'" height="'+ boy +'" name="'+ flIsimVeID +'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

//=============================================================================
// + Popup pencere amak iin
//=============================================================================
function ustePencAc(resimAdi, en, boy){
	ekranYuks = screen.height;
	ekranGens = screen.width;
	ustMesafe = (ekranYuks - boy)/2;
	solMesafe = (ekranGens - en)/2;
	//alert("Y: " + ekranYuks + "\nG: " + ekranGens);
	yeniPencere = window.open("","urunler","width="+en+",height="+boy+",left="+solMesafe+",top="+ustMesafe+",resizable=no,status=no,scrollbars=no");
	yeniPencere.document.writeln("<html>");
	yeniPencere.document.writeln("<head>");
	yeniPencere.document.writeln("<title>Ayvaz</title>");
	yeniPencere.document.writeln("<meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-9\">");
	yeniPencere.document.writeln("</head>");
	yeniPencere.document.writeln("<body topmargin=0 leftmargin=0 bottommargin=\"0\" rightmargin=\"0\" bgcolor=\"#ffffff\">");
    yeniPencere.document.writeln("<a href=\"javascript:window.close()\;\"><img src=\"images/"+resimAdi+".jpg\" width=\""+en+"\" height=\""+boy+"\" border=\"0\" alt=\"Kapatmak için tıklayın!\"></a>");
	yeniPencere.document.writeln("</body>");
	yeniPencere.document.writeln("</html>");
	yeniPencere.document.close();

}

//=============================================================================
// + Popup pencere amak iin
//=============================================================================
function usteUrunPencAc(dizinResimAdi1, en1, boy1, dizinResimAdi2, en2, boy2, dizinResimAdi3, en3, boy3, dizinResimAdi4, en4, boy4, dizinResimAdi5, en5, boy5, dizinResimAdi6, en6, boy6){
	var pencEn = 720, pencBoy = 420; 
	ekranGens = screen.width;
	ekranYuks = screen.height;
	solMesafe = (ekranGens - pencEn)/2;
	ustMesafe = (ekranYuks - pencBoy)/2;
	//alert("Y: " + ekranYuks + "\nG: " + ekranGens);
	//alert("1:" + dizinResimAdi1 + "\n2:" + dizinResimAdi2 + "\n3:" + dizinResimAdi3 + "\n4:" + dizinResimAdi4 + "\n5:" + dizinResimAdi5 + "\n6:" + dizinResimAdi6);
	yeniPencere = window.open("","urunler","width="+pencEn+",height="+pencBoy+",left="+solMesafe+",top="+ustMesafe+",resizable=no,status=no,scrollbars=yes");
	yeniPencere.document.writeln("<html>");
	yeniPencere.document.writeln("<head>");
	yeniPencere.document.writeln("<title>Ayvaz</title>");
	yeniPencere.document.writeln("<meta http-equiv=\"content-type\" content=\"text/html; charset=iso-8859-9\">");
	yeniPencere.document.writeln("</head>");
	yeniPencere.document.writeln("<body topmargin=0 leftmargin=0 bottommargin=\"0\" rightmargin=\"0\" bgcolor=\"#ffffff\">");
    yeniPencere.document.writeln("<a href=\"javascript:window.close()\;\"><img src="+dizinResimAdi1+" width=\""+en1+"\" height=\""+boy1+"\" border=\"0\" alt=\"Kapatmak için tıklayın!\"></a>");
    yeniPencere.document.writeln("<a href=\"javascript:window.close()\;\"><img src="+dizinResimAdi2+" width=\""+en2+"\" height=\""+boy2+"\" border=\"0\" alt=\"Kapatmak için tıklayın!\"></a>");
	yeniPencere.document.writeln("<a href=\"javascript:window.close()\;\"><img src="+dizinResimAdi3+"width=\""+en3+"\" height=\""+boy3+"\" border=\"0\" alt=\"Kapatmak için tıklayın!\"></a>");
   	yeniPencere.document.writeln("<a href=\"javascript:window.close()\;\"><img src="+dizinResimAdi4+"width=\""+en4+"\" height=\""+boy4+"\" border=\"0\" alt=\"Kapatmak için tıklayın!\"></a>");
  	yeniPencere.document.writeln("<a href=\"javascript:window.close()\;\"><img src="+dizinResimAdi5+"width=\""+en5+"\" height=\""+boy5+"\" border=\"0\" alt=\"Kapatmak için tıklayın!\"></a>");
	yeniPencere.document.writeln("<a href=\"javascript:window.close()\;\"><img src="+dizinResimAdi6+" width=\""+en6+"\" height=\""+boy6+"\" border=\"0\" alt=\"Kapatmak için tıklayın!\"></a>");
	yeniPencere.document.writeln("</body>");
	yeniPencere.document.writeln("</html>");
	yeniPencere.document.close();

}

//=============================================================================
// Sayalar
//=============================================================================
function sayacGun(dgsknAdiGun) {
	document.write("<select name='" + dgsknAdiGun + "'>");
	document.write("<option value='Gn' selected='selected'>Gn</option>");
	for (i=1; i<=31; i++) {
		document.write("<option value="+i+">"+i+"</option>");
		}
	document.write("</select>");
}

function sayacAy(dgsknAdiAy) {
	document.write("<select name='" + dgsknAdiAy + "'>");
	document.write("<option value='Ay' selected='selected'>Ay</option>");
	for (i=1; i<=12; i++) {
		document.write("<option value="+i+">"+i+"</option>");
		}
	document.write("</select>");
}

function sayacYil(dgsknAdiYil, basYili, basYiliArti) {
	document.write("<select name='" + dgsknAdiYil + "'>");
	document.write("<option value='Yıl' selected='selected'>Yıl</option>");
	for (i=basYili; i<=(basYili+basYiliArti); i++) {
		document.write("<option value="+i+">"+i+"</option>");
		}
	document.write("</select>");
}
	
//=============================================================================
// Devam
//=============================================================================

function usteHaberPencAc(haberNo){
	boy = 260;
	en = 500;
	ekranYuks = screen.height;
	ekranGens = screen.width;
	ustMesafe = (ekranYuks - boy)/2;
	solMesafe = (ekranGens - en)/2;
	//alert("Y: " + ekranYuks + "\nG: " + ekranGens);
	yeniPencere = window.open("pdf/haberler/haber_"+haberNo+".htm", "menu", "width="+en+", height="+boy+", left="+solMesafe+", top="+ustMesafe+",resizable=no,status=no,scrollbars=yes");
}

//=============================================================================
// Devam
//=============================================================================
