
<!--

function MM_preloadImages() 
 {
   var d=document; 
   if(d.images)
    {
     if(!d.MM_p) d.MM_p=new Array();
     var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
     for(i=0; i<a.length; i++)

     if (a[i].indexOf("#")!=0)
      {
       d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];
      }
    }
 }


Normal = new Array();
Highlight = new Array();


  Normal[1] = new Image();
       Normal[1].src = "http://bitcom.bi.ohost.de/layout/navi_home.gif";
  Highlight[1] = new Image();
       Highlight[1].src = "http://bitcom.bi.ohost.de/layout/navi_home_o.gif";


  Normal[3] = new Image();
       Normal[3].src = "http://bitcom.bi.ohost.de/layout/navi_kontakt.gif";
  Highlight[3] = new Image();
       Highlight[3].src = "http://bitcom.bi.ohost.de/layout/navi_kontakt_o.gif";


  Normal[2] = new Image();
       Normal[2].src = "http://bitcom.bi.ohost.de/layout/navi_service.gif";
  Highlight[2] = new Image();
       Highlight[2].src = "http://bitcom.bi.ohost.de/layout/navi_service_o.gif";


  Normal[4] = new Image();
       Normal[4].src = "http://bitcom.bi.ohost.de/layout/navi_kunde.gif";
  Highlight[4] = new Image();
       Highlight[4].src = "http://bitcom.bi.ohost.de/layout/navi_kunde_o.gif";

  Normal[5] = new Image();
       Normal[5].src = "http://bitcom.bi.ohost.de/layout/navi_angebot.gif";
  Highlight[5] = new Image();
       Highlight[5].src = "http://bitcom.bi.ohost.de/layout/navi_angebot_o.gif";



function bildwechsel(Name,Objekt,Typ)
 {
   if ( Typ == "Highlight")
    {
     window.document.images[Name].src = Highlight[Objekt].src;
    }

   if ( Typ == "Normal")
    {
     window.document.images[Name].src = Normal[Objekt].src;
    }
 }


/* nachfolgendes bitte nicht ändern, da es für das Gästebuch ist, danke */

/* JavaScript for xGB v2.0 by Robert Klikics <rob@x-gfx.de> */

/* very, very basic spambot blocker ;) */
function contact(pt1, pt2) {
	
	window.location = "mailto:" + pt1 + "@" + pt2;
}

/* check len. of posting */
function CheckLength(MessageMax) {
	     
        alert("Max. chars: " + MessageMax + "\nIn use: " + document.newsarea.post.value.length);
}

/* bb-codes info */
function bb() {
	
	alert("[b] text [/b] = bold text\n[i] text [/i] = italic text\n[u] text [/u] = underlined text");	
}

/* add smilies from popup to textarea */
function add_smilie(code) {
		
	opener.document.newsarea.post.value += " " + code + " ";	
}

/* smilie popup */
function smilies() {
	
	window.open('gaestebuch_smilies.php','smilies','width=200,height=470,resizable=no,scrollbars=auto,left=50,top=50'); 
}	

/* confirm to delete a msg */
function delete_msg(theID) {
	
	if (confirm("Really delete this message?"))	window.location.href = "GB.php?act=admin&do=del&id=" + theID;
	else						alert ("Nothing changed!");
	
}


var attribWithoutAll="location=no,menubar=no,toolbar=no,status=no";
attribWithoutAll+=",resizable=no,scrollbars=yes,width=450,height=200";

var subwindow=0;

function PopUpWithoutAll(url)
{
  subwindow=window.open(url,"popup",attribWithoutAll);
  subwindow.moveTo(222,363); /* Fenster nach links oben schieben */
}


-->
