<!--
/****************************************************
     Author: Eric King
     Url: http://redrival.com/eak/index.shtml
     This script is free to use as long as this info is left in
     Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
****************************************************/
function openwindow()
{
	window.open("html/tablo.php","mywindow","menubar=1,resizable=1,width=690,height=550");
}
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
// -->
function alert1()
{ alert("Ürününüz sepete eklendi!"); }
function alert2()
{ alert("Sepetiniz güncelleniyor ..."); }


/***********************************************
* Switch Menu script- by Martial B of http://getElementById.com/
* Modified by Dynamic Drive for format & NS4/IE4 compatibility
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

if (document.getElementById!='aa'){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('.submenu2{display: none;}\n')
document.write('</style>\n')
}
if (document.getElementById=='aa'){ //DynamicDrive.com change
document.write('<style type="text/css">\n')
document.write('.submenu{display: none;}\n')
document.write('.submenu2{display: none;}\n')
document.write('</style>\n')
}

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
	
  	if(el.style.display != "block"){ //DynamicDrive.com change
			for (var i=0; i<ar.length; i++){
			  if (ar[i].className=="submenu") //DynamicDrive.com change
				{ar[i].style.display = "none";}
				if (ar[i].className=="submenu2") //DynamicDrive.com change
				{ar[i].style.display = "none";
				}						
			}			 
			el.style.display = "block";
		}else{
		 el.style.display = "none";
		 SwitchMenu2(obj).style.display = "none";
		 }				
	}
}

function SwitchMenu(obj){
	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
	
  	if(el.style.display != "block"){ //DynamicDrive.com change
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") //DynamicDrive.com change
				ar[i].style.display = "none";
				
			}
			el.style.display = "block";
			
		}else{
			el.style.display = "none";
			
		}
		
		
	}
}
