

/* :: Landfleischerei Hennickendorf GmbH :: (c) 2009 by hikelCOM.de :: */



function NavOnOff(IMG, TYP){

	if(TYP == 'on'){
		document.images['nav_'+ IMG].src = nav_on[IMG].src;
	}else if(TYP == 'off'){
		document.images['nav_'+ IMG].src = nav_off[IMG].src;
	}
}


////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////


/* ===== forms: hover effects ===== */

function ActNorm(ID,TYPE){

	if(TYPE == 'on'){
		if((ID.indexOf('senden') != -1) || (ID.indexOf('abbrechen') != -1)){
			document.getElementById(ID).className = 'input-base input-2-act';
		}else{
			document.getElementById(ID).className = 'input-base input-1-act';
		}
	}else{
		if((ID.indexOf('senden') != -1) || (ID.indexOf('abbrechen') != -1)){
			document.getElementById(ID).className = 'input-base input-2';
		}else{
			document.getElementById(ID).className = 'input-base input-1';
		}
	}
}


////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////


function ShowBig(PIC,X,Y){

    var W = X + 50;
    var H = screen.height - 180;
    var TEMPHEIGHT = Y + 60;

    if(H > TEMPHEIGHT){
		H = TEMPHEIGHT;
    }

    var LEFT = (screen.width / 2) - (W / 2);
    var TOP = (screen.height / 2) - (H / 2);

    var CODE = '<?xml version="1.0" encoding="iso-8859-1"?>'+
    		   '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'+
               '<html xmlns="http://www.w3.org/1999/xhtml">'+
               '<head><title>Anfahrt - Jagdgaststaette Elsthal in Luckenwalde</title>'+
               '<meta http-equiv="cache-control" content="no-cache" />'+
               '<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />'+
               '<link rel="stylesheet" type="text/css" href="../shared/css/styles.css" />'+
               '<body class="text_1" style="background-color: rgb(0,153,51); text-align: center; padding-top: 10px;">'+
               '<img src="'+ PIC +'" width="'+ X +'" height="'+ Y +'" border="0" alt="" /><br />'+
               '<br />&nbsp;&nbsp;<a href="img/anfahrt_print.gif">Druckversion</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="javascript:self.close()">Fenster schliessen</a>'+
               '<br /><br /></body></html>';

   var GEOM = 'width='+ W +',height='+ H +',left='+LEFT+',top='+TOP+',location=no,menubar=yes,resizeable=no,scrollbars=yes,status=no,toolbar=no';
   BIGPIC = window.open('',"BigPicWindow",GEOM);
   BIGPIC.document.open();
   BIGPIC.document.write(CODE);
   BIGPIC.document.close();
}




/* ===== popup ===== */

function popupWindow(url){

	var strGeom = 'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,left=100,top=100';
	window.open(url, "popupWindow", strGeom);
}


////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////


function BorderOver(PID, TYP){

	if(TYP == 'on'){
		document.getElementById(PID).className = 'td_picgal_on';
	}else if(TYP == 'off'){
		document.getElementById(PID).className = 'td_picgal_off';
	}
}



function BorderOver2(OBJ, TYP){
    
    
    if(TYP == 'on'){
        OBJ.className = "td_picgal_on";
    }else if(TYP == 'off'){
       	OBJ.className = "td_picgal_off";
    }
}



