 

function FlashInstalled()
{
	result = false;

	if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"])
	{
		result = navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
	}
	else if (document.all && (navigator.appVersion.indexOf("Mac")==-1))
	{
		// IE Windows only -- check for ActiveX control, have to hide code in eval from Netscape (doesn't like try)
		eval ('try {var xObj = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if (xObj)	result = true; xObj = null;	} catch (e)	{}');
	}
	return result;
}


function FlashWrite(url,width,height)
{
	document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" ');
	document.write('  WIDTH="' + width + '" HEIGHT="' + height + '" ALIGN="left">');
//	document.write(' <PARAM NAME="movie" VALUE="' + url + '"> <param name="wmode" value="transparent"> <PARAM NAME="quality" VALUE="high"> <PARAM NAME="bgcolor" VALUE="#FFFFFF">  '); 
	document.write(' <PARAM NAME="movie" VALUE="' + url + '"> <PARAM NAME="quality" VALUE="high"> <PARAM NAME="bgcolor" VALUE="#FFFFFF">  '); 
	document.write(' <EMBED src="' + url + '" quality="high" bgcolor="#FFFFFF" wmode="transparent" scale="noscale" ');
	document.write(' swLiveConnect="FALSE" WIDTH="' + width + '" HEIGHT="' + height + '"');
	document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">');
	document.write(' </EMBED></OBJECT>');

}

  
// PRELOADING IMAGES
if (document.images) {

 img1_on =new Image(); img1_on.src ="images/menuup1.gif"; 
 img1_off=new Image(); img1_off.src="images/menudown1.gif"; 

 img2_on =new Image(); img2_on.src ="images/menuup2.gif"; 
 img2_off=new Image(); img2_off.src="images/menudown2.gif"; 

 img3_on =new Image(); img3_on.src ="images/menuup3.gif"; 
 img3_off=new Image(); img3_off.src="images/menudown3.gif"; 

 img4_on =new Image(); img4_on.src ="images/menuup4.gif"; 
 img4_off=new Image(); img4_off.src="images/menudown4.gif"; 

 img5_on =new Image(); img5_on.src ="images/menuup5.gif"; 
 img5_off=new Image(); img5_off.src="images/menudown5.gif"; 

 img6_on =new Image(); img6_on.src ="images/menuup6.gif"; 
 img6_off=new Image(); img6_off.src="images/menudown6.gif"; 

}

function handleOver(k) {
 if (document.images)
  eval('document.img'+k+'.src=img'+k+'_on.src');
}

function handleOut(k) {
 if (document.images) 
  eval('document.img'+k+'.src=img'+k+'_off.src');
}
  
    // Right Click Disabled function................................................................
    
    var message="Function Disabled!";
    
    function clickIE4(){
      if (event.button==2){
        return false;}
    }
    
    function clickNS4(e){
      if (document.layers||document.getElementById&&!document.all){
        if (e.which==2||e.which==3){
          return false;
        }
      }
    }
    
    if (document.layers){
      document.captureEvents(Event.MOUSEDOWN);
      document.onmousedown=clickNS4;
      }
    else if (document.all&&!document.getElementById){
      document.onmousedown=clickIE4;
    }
    
    document.oncontextmenu=new Function("return false")
    
     
    function checkSearch() {
      var key = window.event.keyCode;
      if (key == 13) {
        document.search.submit();
      }
    }

  
     function showpic(file,titel,w,h) {
       day = new Date();
       id = day.getTime();
       
       pos_horizon = ((screen.width/2)-(w/2));
	   pos_vertical = ((screen.height/2)-(h/2));
	   
       newWin = window.open("", id, "width="+w+",height="+h+",left = "+pos_horizon+",top = "+pos_vertical+""); 
       ndoc = newWin.document;
       str = "<html><head><title>"+titel+"</title></head><body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">";
       str += "<img src="+file+">";
       str += "</body></html>";
       ndoc.open();
       ndoc.write(str);
       ndoc.close();
     }

  