 /*-----------------------------------------
create date:   09.09.2004
creator:       Ritter Adrian
organisations: solit24.li | solit24.ch     
-------------------------------------------*/

///////////////////////////////////////////////////////////
//  Script für automatisches ein/ausblenden von 'suche'
function popSearch ()
{
 if (document.gettitles.searching.value == 'suche')
  document.gettitles.searching.value = ''
 else 
 {
  if (document.gettitles.searching.value == '')
  document.gettitles.searching.value = 'suche'
 }
}

///////////////////////////////////////////////////////////
//  PopUps

   function openPopup(url) { 
    myPopup = window.open(url,'myPopup','directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=yes,resizable=yes,width=40,height=40');
	if (myPopup.blur) myPopup.focus();
   }
   function openFoto(url) { 
    myPopup = window.open(url,'myPopup','directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=yes,width=40,height=40');
	if (myPopup.blur) myPopup.focus();
   }
   function openPDF(url) { 
    myPopup = window.open(url,'myPopup','directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=yes,width=600,height=600');
	if (myPopup.blur) myPopup.focus();
   }//-->
   function openUrl(url) { 
    myPopup = window.open(url,'myPopup','directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=yes,width=800,height=600');
	if (myPopup.blur) myPopup.focus();
   }

   
///////////////////////////////////////////////////////////
//  FlyerPopUp
/*
  <SCRIPT LANGUAGE="JavaScript"><!--
   function popup(){
     if(self.name!="was_aussergewohnliches"){
      self.name="was_aussergewohnliches"
      window.open("inhalt.htm","","width=400,height=400")
     }
    }//-->
  </script><!--onload="popup()"-->
*/

///////////////////////////////////////////////////////////
// MainMenu

//Bilder  vorladen für Menü
 normal1 = new Image();
 normal1.src = "images/index_08.gif";
 over1 = new Image();
 over1.src = "images/index_08a.gif";
 
 normal2 = new Image();
 normal2.src = "images/index_10.gif";
 over2 = new Image();
 over2.src = "images/index_10a.gif";
 
 normal3 = new Image();
 normal3.src = "images/index_12.gif";
 over3 = new Image();
 over3.src = "images/index_12a.gif";
 
 normal4 = new Image();
 normal4.src = "images/index_14.gif";
 over4 = new Image();
 over4.src = "images/index_14a.gif";
 
 normal5 = new Image();
 normal5.src = "images/index_16.gif";
 over5 = new Image();
 over5.src = "images/index_16a.gif";
 
 normal6 = new Image();
 normal6.src = "images/index_20.gif";
 over6 = new Image();
 over6.src = "images/index_20a.gif";
 
 normal7 = new Image();
 normal7.src = "images/index_18.gif";
 over7 = new Image();
 over7.src = "images/index_18a.gif";

 normal8 = new Image();
 normal8.src = "images/index-menu-links.gif";
 over8 = new Image();
 over8.src = "images/index-menu-linksH.gif";

//Menü Bilderwechselfunktion		
 function changer(id,picture){
  window.document.images[id].src = picture.src; }
 


///////////////////////////////////////////////////////////
// Bilder vorladen

function BilderVorladen()
{
	document.Vorladen = new Array();
	if(document.images)
	{
		for(var i=0; i<BilderVorladen.arguments.length; i++)
		{
			document.Vorladen[i] = new Image();
			document.Vorladen[i].src = BilderVorladen.arguments[i];
		}
	}
}

///////////////////////////////////////////////////////////
// ErrorFunktion
//onerror = keinfehler;
//function keinfehler(){ return true; }

