﻿var Open = ""
var Closed = ""

  function preLoadImages(){
   if(document.images){
  
	Open = new Image(15,15);
	Closed = new Image(15,15);
	Open.src = "http://www.haznevi.info/files/images/acik.gif";
	Closed.src = "http://www.haznevi.info/files/images/kapali.gif"
}}
   
   
   
    var type = "IE";	//Variable used to hold the browser name

   BrowserSniffer();
   function BrowserSniffer() {
	if (navigator.userAgent.indexOf("Opera")!=-1 && document.getElementById) type="OP";//Opera
	else if (document.all) type="IE";														//Internet Explorer e.g. IE4 upwards
	else if (document.layers) type="NN";													//Netscape Communicator 4
	else if (!document.all && document.getElementById) type="MO";//Mozila e.g. Netscape 6 upwards
	else type = "IE";		//I assume it will not get here
    }
    
    function ChangeLayerBgColor(id,color){
	   
	  
		
	    if (type=="IE")
	    {
	        document.all[id].style.backgroundColor=color;
	      
	    }	
		if (type=="NN") 
		 {
		    document.layer['id'].bgColor=color;
	
	     }
	    if (type=="MO" || type=="OP")
	    {
	         document.getElementById(id).style.backgroundColor=color;
	        // document.getElementById('imgKategori').src="http://www.haznevi.info/files/images/acik.gif" ;
	    }
}


        function MenuDurum(id,imgid)
        {
         var div=document.getElementById(id);
        // menu açık ve kapalı olduğunda değişik resimler koyuyoruz.
         img = document.getElementById(imgid); 
            //alert(div.className);
            
            
            if(div.className=='slide-show')
            {
             div.className='slide-hide';
              img.src =Closed.src;
       
             }
            else
            {
                div.className='slide-show';
                img.src =Open.src;
                   
             }
            return(false);
       }
       
         
var popUpWin=0;


function popUpWindow(URLStr)
{
var left  =2
var top =12
var width = 680
var height = 700
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}




function PlayVideo(filename) 
{
   document.Player.URL =filename;
   //    document.Player.volume=100;
   //   document.Player.ShowControls = -1;
   //  document.Player.ShowStatusBar =-1 ;
   //  document.Player.autoSize=-1;
}






