

/*****************************************
* Dissolving Image Rollover- By Roy Whittle (http://www.javascript-fx.com/)
* Featured on/available at http://www.dynamicdrive.com/
* This notice must stay intact for use
*****************************************/

//Generate transition CSS (transition=0 to 23)
document.write('<STYLE TYPE="text/css">.imgTrans{ filter:revealTrans(duration=0.4,transition=12) }</STYLE>');

//Uncomment the next line for fading rollovers instead of dissolving:
//document.write('<STYLE TYPE="text/css">.imgTrans{ filter:blendTrans(duration=0.4) }</STYLE>');

var onImages=new Array();
function Rollover(imgName, imgSrc)
{
	onImages[imgName] = new Image();
	onImages[imgName].src = imgSrc;
}

function turnOn(imgName){ 
	if(document.images[imgName].filters != null)
		document.images[imgName].filters[0].apply();
	document.images[imgName].offSrc = document.images[imgName].src;
	document.images[imgName].src    = onImages[imgName].src;
	if(document.images[imgName].filters != null)
		document.images[imgName].filters[0].play();
}

function turnOff(imgName){ 
	if(document.images[imgName].filters != null)
		document.images[imgName].filters[0].stop();
	document.images[imgName].src = document.images[imgName].offSrc;
}

//Specify name of participating images, plus paths to their onMouseover replacements:
Rollover("empfehlen",  "buttons/dt-weiterempfehlen2.gif");
Rollover("auer",  "buttons/dt-auerhof-orange.gif");
Rollover("huber",  "buttons/dt-huberhof-orange.gif");
Rollover("krahbichl",  "buttons/dt-krahbichlhof-orange.gif");
Rollover("lahner",  "buttons/dt-lahnerhof-orange.gif");
Rollover("mairamhof",  "buttons/dt-mairamtinkhof-orange.gif");
Rollover("neuhaus",  "buttons/dt-neuhaushof-orange.gif");
Rollover("niederkofl",  "buttons/dt-niederkoflhof-orange.gif");
Rollover("oberkofl",  "buttons/dt-oberkofl-orange.gif");
Rollover("stillwager",  "buttons/dt-stillwager-orange.gif");
Rollover("weizgruber",  "buttons/dt-weizgruber-orange.gif");
Rollover("ferienwohnungen",  "buttons/dt-ferienwohnungen-orange.gif");
Rollover("preise",  "buttons/dt-preise-orange.gif");
Rollover("hof",  "buttons/dt-hof-orange.gif");
Rollover("kontakt",  "buttons/dt-kontakt-orange.gif");
Rollover("peintenhof",  "buttons/dt-peintenhof-orange.gif");
Rollover("obersteiner",  "buttons/dt-obersteiner-orange.gif");
Rollover("photo",  "buttons/dt-photo-orange.gif");
Rollover("home",  "buttons/dt-start-home-orange.gif");
Rollover("standorte",  "buttons/dt-start-standorte-orange.gif");
Rollover("programm",  "buttons/dt-start-programm-orange.gif");
Rollover("fewo",  "buttons/dt-start-ferienwohnungen-orange.gif");
Rollover("wir",  "buttons/dt-start-wir-ueber-uns-orange.gif");
Rollover("wirueberuns",  "buttons/dt-wir-ueber-uns-orange.gif");
Rollover("home",  "buttons/dt-home-orange.gif");
Rollover("aktivprogramm",  "buttons/dt-aktiv-programm-orange.gif");
Rollover("homezwei",  "buttons/dt-start-home-orange.gif");
Rollover("links",  "buttons/links-orange.gif");