if (document.getElementById) {
bildiri="document.getElementById('";
stil="').style.visibility=";
kapali="'hidden'";
acik="'visible'"; }
else if(document.all) {
var bildiri="document.all.";
var stil=".style.visibility=";
var kapali="'hidden'";
acik="'visible'";
}
else if(document.layers) {
var bildiri="document.layers.";
var stil=".visibility=";
var kapali="'hide'";
var acik="'show'";
}
function menugoster(menu) {
menugizle();
eval(bildiri+menu+stil+acik);
}
function menugizle() {
eval(bildiri+'anamenu1'+stil+kapali);
eval(bildiri+'anamenu2'+stil+kapali);
eval(bildiri+'anamenu3'+stil+kapali);
}
function pencereAc(url) {
link = window.open(url,"","height=315px,scrollbars=0,width=400px");
}
function ede(id,resim){
document.getElementById(id).style.background="url("+resim+")";
}
function menu(id,resim){
document.getElementById(id).src="images/"+resim;
}
function popup(adres, baslik, w, h)
{
var win= null;
var x=(screen.width-w-10)/2;
var y=(screen.height-h-50)/2;
var settings='toolbar=0, scrollbars=1, location=0, status=1, menubar=0, resizable=0,';
settings+='width='+w+',';
settings+='height='+h+',';
settings+='left='+x+',';
settings+='top='+y;
win = window.open(adres,baslik,settings);
if(parseInt(navigator.appVersion)>=4){win.window.focus();}
}
function menu_goster(aid)
{ 
  parent.document.getElementById('div_altMenu').style.display='inline';
  parent.document.getElementById('div_altMenu2').style.display='none';
  parent.document.getElementById('div_urunResim').style.display='inline';
  parent.document.getElementById('div_urunResim2').style.display='none';
  parent.ifr_urunResim.location.href='urun_resim.php?aid='+aid+'&uid=0';
  parent.ifr_altMenu.location.href='alt_menu.php?aid='+aid;
  parent.ifr_urunBilgi.location.href='urun_bilgi.php';
  parent.urunler.location.href='urun_sirala.php';
}

function alt_menuGoster(aid,linid)
{ 
  parent.document.getElementById('div_altMenu').style.display='inline';
  parent.document.getElementById('div_altMenu2').style.display='none';
  parent.ifr_altMenu.location.href='alt_menu.php?aid='+aid;
  parent.document.getElementById('div_urunResim').style.display='inline';
  parent.document.getElementById('div_urunResim2').style.display='none';
  parent.ifr_urunResim.location.href='urun_resim.php?linid='+linid+'&uid=0';
  //parent.document.getElementById('div_urunler').style.display='inline';
  //parent.urunler.location.href='urun_sirala.php?linid='+linid+'&aid'+aid;
}

function urun_goster(aid,linid,uid)
{ 
  parent.document.getElementById('div_urunler').style.display='inline';
  parent.urunler.location.href='urun_sirala.php?linid='+linid+'&aid='+aid;
  
  parent.document.getElementById('div_urunResim2').style.display='none';
  parent.document.getElementById('div_urunResim').style.display='inline';
  parent.ifr_urunResim.location.href='urun_resim.php?linid='+linid+'&uid='+uid;

  parent.document.getElementById('div_urunBilgi').style.display='inline';
  parent.ifr_urunBilgi.location.href='urun_bilgi.php?linid='+linid+'&uid='+uid;
}
function menu_gosterp(linid)
{ 
  parent.document.getElementById('div_projeler').style.display='inline';
  parent.projeler.location.href='proje_sirala.php?linid='+linid;
  parent.document.getElementById('div_projeResim2').style.display='inline';
  parent.document.getElementById('div_projeResim').style.display='none';
  parent.ifr_projeResim2.location.href='proje_resim.php?linid='+linid+'&uid=0';
  parent.ifr_projeBilgi2.location.href='proje_bilgi.php?linid='+linid+'&uid=0';
}
function urun_gosterp(linid,uid)
{ 
  parent.document.getElementById('div_projeler').style.display='inline';
  parent.projeler.location.href='proje_sirala.php?linid='+linid;
  
  parent.document.getElementById('div_projeResim').style.display='inline';
  parent.document.getElementById('div_projeResim2').style.display='none';
  parent.ifr_projeResim.location.href='proje_resim.php?linid='+linid+'&uid='+uid;

  parent.document.getElementById('div_projeBilgi').style.display='inline';
  parent.document.getElementById('div_projeBilgi2').style.display='none';
  parent.ifr_projeBilgi.location.href='proje_bilgi.php?linid='+linid+'&uid='+uid;
}

function yonlen(adres)
{
window.location.href=adres;
}
function res_Goster(resim)
{
		document.getElementById("div_resimGoster").style.left=event.x+15;
		document.getElementById("div_resimGoster").style.top=event.y+15;
		document.getElementById('div_resimGoster').innerHTML=resim;
		document.getElementById("div_resimGoster").style.display="inline";
}
function res_Kapat(id)
{
		document.getElementById("div_resimGoster").style.display="none";
}
function sag_Goster(id)
{
		document.getElementById(id).style.display="inline";
}
function sag_Kapat(id)
{
		document.getElementById(id).style.display="none";
}
