/*****************************************
* 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.2,transition=12) }</STYLE>');

//Uncomment the next line for fading rollovers instead of dissolving:
document.write('<STYLE TYPE="text/css">.imgTrans{ filter:blendTrans(duration=0.1) }</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("allergyrep",  "./images/allergyrep2.gif");
Rollover("forms",  "./images/forms2.gif");
Rollover("locations",  "./images/locations2.gif");
Rollover("treatments",  "./images/distrt2.gif");
Rollover("contactus",  "./images/contactus2.gif");
Rollover("jobs",  "./images/jobs2.gif");
Rollover("links",  "./images/links2.gif");
Rollover("faq",  "./images/faq2.gif");
Rollover("allergymax",  "./images/allergymax_on.gif");

Rollover("homenav",  "./images/home_on.gif");
Rollover("allergyrepnav",  "./images/allergyreps_on.gif");
Rollover("formsnav",  "./images/formss_on.gif");
Rollover("locationsnav",  "./images/locationss_on.gif");
Rollover("treatmentsnav",  "./images/multimedias_on.gif");
Rollover("contactusnav",  "./images/contactuss_on.gif");
Rollover("jobsnav",  "./images/jobss_on.gif");
Rollover("linksnav",  "./images/linkss_on.gif");
Rollover("faqnav",  "./images/faqs_on.gif");
Rollover("testnav",  "./images/selfss_on.gif");
Rollover("logoutnav",  "./images/logout_on.gif");
Rollover("allergymaxnav",  "./images/allergymax_logo.gif");


