//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.2) }</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("contact", "images/menu_top/contactH.png");
Rollover("links", "images/menu_top/linksH.png");
Rollover("quotation", "images/menu_top/quotationH.png");
Rollover("brown", "images/menu_right/thebrownroom.png");
Rollover("green", "images/menu_right/thegreenroom.png");
Rollover("gray", "images/menu_right/thegrayroom.png");
Rollover("book", "images/book4.png");
Rollover("img1brown", "images/brownroom/img1T.png");
Rollover("img2brown", "images/brownroom/img2T.png");
Rollover("img3brown", "images/brownroom/img3T.png");
Rollover("img4brown", "images/brownroom/img4T.png");
Rollover("img5brown", "images/brownroom/img5T.png");
Rollover("img6brown", "images/brownroom/img6T.png");
Rollover("img7brown", "images/brownroom/img7T.png");
Rollover("img1green", "images/greenroom/img1T.png");
Rollover("img2green", "images/greenroom/img2T.png");
Rollover("img3green", "images/greenroom/img3T.png");
Rollover("img4green", "images/greenroom/img4T.png");
Rollover("img5green", "images/greenroom/img5T.png");
Rollover("img6green", "images/greenroom/img6T.png");
Rollover("img7green", "images/greenroom/img7T.png");
Rollover("img1gray", "images/grayroom/img1T.png");
Rollover("img2gray", "images/grayroom/img2T.jpg");
Rollover("img3gray", "images/grayroom/img3T.jpg");
Rollover("img4gray", "images/grayroom/img4T.jpg");
Rollover("img5gray", "images/grayroom/img5T.jpg");
Rollover("img6gray", "images/grayroom/img6T.jpg");
Rollover("img7gray", "images/grayroom/img7T.jpg");



