
function popInstructions(destination) {
	var overall = "toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=no,width=400,height=315";

	var	instructionsWin = window.open(destination, 'instructionsWin', overall);
	instructionsWin.focus();
 }
/*
var color, style, room;
var gColor	= 'SAND';
var gStyle 	= 'SAXONY';
var gRoom 	= 'LIVINGRO';
*/
cookiePath = "/";
function checkCookie(source) {

	if (document.cookie) {                       
    	readCookie('main');                      
    	if(source=='STYLE') {
			highlightStyle(style);
		}
		if(source=='COLOR') {
			highlightColor(color);
		}
	}                                            
	else {                                       
    	writeCookie('LYNN','LYNN','LYNN');
    	checkCookie(source);                      
	}                                            	
}

function checkRoomCookie() {
    if (document.cookie.indexOf("color") < 0) { 
        writeCookie('LYNN','LYNN','LYNN');
    }                                            
        readCookie('main');                      
        highlightRoom(room);                     
        updateScene(room);    
}                                                


function highlightStyle(style) {
	readCookie('room');
	if(bversion=='3') {
		if (document.images[style]) {
				document.images[style].src = eval(style + '_h.src');
		}
		else setTimeout('highlightStyle(style)', 1000);
	}
	else {
		if(ns==1 && ie==0){
			if (document.cont.document.images[style]) {
					eval('document.cont.document.images["' + style + '"].src =' + style + '_h.src');
			}
			else setTimeout('highlightStyle(style)', 1000);
		}
		else {
	 		if(ns==6 && ie==6 && document.getElementById){
		 		if (document.images[style]) {
					document.images[style].src = eval(style + '_h.src');
				}	
				else setTimeout('highlightStyle(style)', 1000);
	 		}
			else{
				if (document.all.cont.document.images[style]) {
					eval('document.all.cont.document.images["' + style + '"].src =' + style + '_h.src');
				}
				else setTimeout('highlightStyle(style)', 1000);
			}
		}
	}
}

function writeStyleCookie(pstyle){
    readCookie('room');
    document.cookie = "color=" + color + "&; path=" + cookiePath; 
	document.cookie = "style=" + pstyle + "&; path=" + cookiePath;
	document.cookie = "grade=LYNN&; path=" + cookiePath;
	document.cookie = "room=" + room + "&; path=" + cookiePath;
    document.location.href = 'index.jsp';
}

function writeColorCookie(pcolor){
    readCookie('room');
    document.cookie = "color=" + pcolor + "&; path=" + cookiePath; 
	document.cookie = "style=" + style + "&; path=" + cookiePath;
	document.cookie = "grade=LYNN&; path=" + cookiePath;
	document.cookie = "room=" + room + "&; path=" + cookiePath;
    document.location.href = 'index.jsp';
}


function writeRoomCookie(proom){
    readCookie('room');
    document.cookie = "color=" + color + "&; path=" + cookiePath; 
	document.cookie = "style=" + style + "&; path=" + cookiePath;
	document.cookie = "grade=LYNN&; path=" + cookiePath;
	document.cookie = "room=" + proom + "&; path=" + cookiePath;
    updateScene(proom);
}



function readCookie(x) {
  var ndxColor = document.cookie.indexOf('color');
  var ndxStyle = document.cookie.indexOf('style');
  var ndxRoom = document.cookie.indexOf('room');
	if (document.cookie.substring(ndxColor + 6,
				document.cookie.indexOf('&', ndxColor)) == 'LYNN' ) {
				if (x == 'room') {	color = 'LYNN';	}
				else {	color = gColor;	}
	}
	else{
		color = document.cookie.substring(ndxColor + 6,
				document.cookie.indexOf('&', ndxColor)); 
	}

	if (document.cookie.substring(ndxStyle + 6,
				document.cookie.indexOf('&',ndxStyle)) == 'LYNN' ) {
				if (x == 'room') {	style = 'LYNN';	}
				else {	style = gStyle;	}
	}
	else{
		style = document.cookie.substring(ndxStyle + 6,
				document.cookie.indexOf('&', ndxStyle)); 
	}

	if (document.cookie.substring(ndxRoom + 5,
				document.cookie.indexOf('&', ndxRoom)) == 'LYNN' ) {
				if (x == 'room') {	room = 'LYNN';	}
				else {	room = gRoom;	}
	}
	else{					
		room = document.cookie.substring(ndxRoom + 5,
				document.cookie.indexOf('&',ndxRoom)); 
	}
}

function RolloverOn(name) { //onmouseOver
	if(bversion=='3') {
		if	( 	!(document.images[name].src.indexOf("_x.gif") > -1 ))	{
				document.images[name].src =eval(name +".src");
		}
	}
	else {
		if(ns==1 && ie==0){
			if	( 	!(	(eval('document.cont.document.images["'+ name +'"].src.indexOf("_x.gif") > -1')		) 	))	{
					eval('document.cont.document.images["' + name + '"].src =' + name + '.src');
			}
		}
		else {
	 		if(ns==6 && ie==6 && document.getElementById){
	 			if	( 	!(document.images[name].src.indexOf("_x.gif") > -1 ))	{
					document.images[name].src =eval(name +".src");
				}
	 		}
			else{
				if	( 	!(	(eval('document.all.cont.document.images["'+ name +'"].src.indexOf("_x.gif") > -1')	)	))	{
					eval('document.all.cont.document.images["' + name + '"].src =' + name + '.src');
				}
			}
		}
	}
}

function RolloverOff(name) { //onmouseOFF
;
	if (bversion=='3') {
		if	( 	!(document.images[name].src.indexOf("_x.gif") > -1 ))	{
			document.images[name].src =eval(name + '_off.src');
		}
	}
	else {
		if(ns==1 && ie==0){
			if	( 	!(	(eval('document.cont.document.images["'+ name +'"].src.indexOf("_x.gif") > -1')		) 	))	{
					eval('document.cont.document.images["' + name + '"].src =' + name + '_off.src');
			}
		}
		else {
	 		if(ns==6 && ie==6 && document.getElementById){
	 			if	( 	!(document.images[name].src.indexOf("_x.gif") > -1 ))	{
					document.images[name].src =eval(name + '_off.src');
				}
	 		}
			else {
				if	( 	!(	(eval('document.all.cont.document.images["'+ name +'"].src.indexOf("_x.gif") > -1')	)))	{
					eval('document.all.cont.document.images["' + name + '"].src =' + name + '_off.src');
				}
			}
		}
	}
}

function clearSelections() {                 
    writeCookie('LYNN','LYNN','LYNN');
    updateScene(room);                       
    cleanScene();                            
}                                            

function highlightColor(color) {
	readCookie('room');
	if(bversion=='3') {
		if (document.images[color]) {
				document.images[color].src =eval(color +"_h.src");
		}
		else setTimeout('highlightColor(color)', 1000);
	}
	else {
		if(ns==1 && ie==0){
			if (document.cont.document.images[color]) {
					eval('document.cont.document.images["' + color + '"].src =' + color + '_h.src');
			}
			else setTimeout('highlightColor(color)', 1000);
		}
		else {
		 	if(ns==6 && ie==6 && document.getElementById){
		 		if (document.images[color]) {
					document.images[color].src =eval(color +"_h.src");
				}
				else setTimeout('highlightColor(color)', 1000);
		 	}
			else{
				if (document.all.cont.document.images[color]) {
					eval('document.all.cont.document.images["' + color + '"].src =' + color + '_h.src');
				}
				else setTimeout('highlightColor(color)', 1000);
			}
		}
	}
}


function writeCookie(pcolor,pstyle,proom) {
    document.cookie = "color=" + pcolor + "&; path=" + cookiePath; 
	document.cookie = "style=" + pstyle + "&; path=" + cookiePath;
	document.cookie = "grade=LYNN&; path=" + cookiePath;
	document.cookie = "room=" + proom + "&; path=" + cookiePath;
}


function popScene(i,page) {
	document.cookie = "@detail=" + i + "; path=" + cookiePath;
	rmScene = window.open(page+'?', 'rmScene', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=220');
	rmScene.focus();
}


function cleanScene() {
if (bversion=='3') {
	document.images['scene'].src = '/images/selector/' + gColor + '/' + gStyle + '/' + gRoom + '/SMALL.JPG';
}
else {
		if(ns==1 && ie==0){	
			document.cont.document.images['scene'].src = '/images/selector/' + gColor + '/' + gStyle + '/' + gRoom + '/SMALL.JPG';
		}
		else {
		 	if(ns==6 && ie==6 && document.getElementById){
		 		document.images['scene'].src = '/images/selector/' + gColor + '/' + gStyle + '/' + gRoom + '/SMALL.JPG';
		 	}
			else {
				document.all.cont.document.images['scene'].src ='/images/selector/'+ gColor + '/' + gStyle + '/' + gRoom + '/SMALL.JPG';
			}
		}
}
}

function updateScene(proom) {
		
	if (bversion=='3') {//for older browsers
	
		if (document.images['LIVINGRO']){
					document.images['LIVINGRO'].src = '/images/cs/sm_cs_m_lvrm_i.gif';
		}
		else {setTimeout('updateScene(room)', 1000);}
		
		if (document.images['DININGRO']) {
				document.images['DININGRO'].src = '/images/cs/sm_cs_m_dnrm_i.gif';
		}
		else {setTimeout('updateScene(room)', 1000);}
		
		if (document.images['FAMILYRO']) {
			document.images['FAMILYRO'].src = '/images/cs/sm_cs_m_fmrm_i.gif';
		}
		else {setTimeout('updateScene(room)', 1000);}
		
		if (document.images['BEDROOM']) {
				document.images['BEDROOM'].src = '/images/cs/sm_cs_m_bdrm_i.gif';
		}
		else {setTimeout('updateScene(room)', 1000);}
		
		readCookie('main');
		document.images['scene'].src = '/images/selector/' + color + '/' + style + '/' + room + '/SMALL.JPG';

		readCookie('room');
		if(!(color=="LYNN")){
			var colorSwatch = new Image (52,48);
			colorSwatch.src = ColorArray[color];
			var colorText = new Image(210,15);
			colorText.src = ColorTextArray[color];
		
			COLOR.src = '/images/cs/sm_cs_m_select_1b.gif';
			COLOR_off.src = '/images/cs/sm_cs_m_select_1b.gif';
			
			document.images['COLOR'].src = COLOR.src;
			document.images['COLORSwatch'].src = colorSwatch.src;		
			document.images['COLORText'].src = colorText.src;		
		}
		else {	
				var colorSwatch = new Image (52,48);
				colorSwatch.src = ColorArray['LYNN'];
				var colorText = new Image(210,15);
				colorText.src = ColorTextArray['LYNN'];
				
			    COLOR.src = '/images/cs/sm_cs_m_select_1a.gif';
			    COLOR_off.src = '/images/cs/sm_cs_m_select_1a.gif';
			
			    document.images['COLOR'].src = COLOR.src;
				document.images['COLORSwatch'].src = colorSwatch.src;
				document.images['COLORText'].src = colorText.src;	
		}
		
		if(!(style=="LYNN")){
			var styleSwatch = new Image (52,48);
			styleSwatch.src = StyleArray[style];
			var styleText = new Image(210,15);
			styleText.src = StyleTextArray[style];
			
	        STYLE.src = '/images/cs/sm_cs_m_select_2b.gif';
            STYLE_off.src = '/images/cs/sm_cs_m_select_2b.gif';
			
			document.images['STYLE'].src = STYLE.src;
			document.images['STYLESwatch'].src = styleSwatch.src;
			document.images['STYLEText'].src = styleText.src;
		}
		else {	
			var styleSwatch = new Image (52,48);
			styleSwatch.src = StyleArray['LYNN'];
			var styleText = new Image(210,15);
			styleText.src = StyleTextArray['LYNN'];
			
	        STYLE.src = '/images/cs/sm_cs_m_select_2a.gif';
            STYLE_off.src = '/images/cs/sm_cs_m_select_2a.gif';
			
			document.images['STYLE'].src = STYLE.src;
			document.images['STYLESwatch'].src = styleSwatch.src;
			document.images['STYLEText'].src = styleText.src;
		}
		
		highlightRoom(proom);
	}//end 3.0 ver of code
	
	else {//newer browsers
		
		if(ns==1 && ie==0){//ns < 6	
			
			if (document.cont.document.images['LIVINGRO']){
				document.cont.document.images['LIVINGRO'].src = '/images/cs/sm_cs_m_lvrm_i.gif';
			}
			else {setTimeout('updateScene(room)', 1000);}
		
			if (document.cont.document.images['DININGRO']) {
				document.cont.document.images['DININGRO'].src = '/images/cs/sm_cs_m_dnrm_i.gif';
			}
			else {setTimeout('updateScene(room)', 1000);}
		
			if (document.cont.document.images['FAMILYRO']) {
				document.cont.document.images['FAMILYRO'].src = '/images/cs/sm_cs_m_fmrm_i.gif';
			}
			else {setTimeout('updateScene(room)', 1000);}
		
			if (document.cont.document.images['BEDROOM']) {
				document.cont.document.images['BEDROOM'].src = '/images/cs/sm_cs_m_bdrm_i.gif';
			}
			else {setTimeout('updateScene(room)', 1000);}
		
			readCookie('main');
			var loaderImage = new Image(309,190);
			loaderImage.src = '/images/selector/' + color + '/' + style + '/' + room + '/SMALL.JPG';
			if((navigator.appVersion.indexOf('4') >-1) && (navigator.appVersion.indexOf('Mac')>-1)){

			}
			document.cont.document.images['scene'].src = loaderImage.src
	
		
	
			readCookie('room');
			if(!(color=="LYNN")){
			    COLOR.src = '/images/cs/sm_cs_m_select_1b.gif';
				COLOR_off.src = '/images/cs/sm_cs_m_select_1b.gif';
			    document.cont.document.images['COLOR'].src = '/images/cs/sm_cs_m_select_1b.gif';
				document.cont.document.images['COLORSwatch'].src = ColorArray[color];
				document.cont.document.images['COLORText'].src = ColorTextArray[color];
			}
			else {	
			    COLOR.src = '/images/cs/sm_cs_m_select_1a.gif';
				COLOR_off.src = '/images/cs/sm_cs_m_select_1a.gif';
			    document.cont.document.images['COLOR'].src = '/images/cs/sm_cs_m_select_1a.gif';
			    document.cont.document.images['COLORSwatch'].src = ColorArray['LYNN'];
			    document.cont.document.images['COLORText'].src = ColorTextArray['LYNN'];
			}
		
			if(!(style=="LYNN")){
	            STYLE.src = '/images/cs/sm_cs_m_select_2b.gif';
                STYLE_off.src = '/images/cs/sm_cs_m_select_2b.gif';
			
			    document.cont.document.images['STYLE'].src = STYLE.src;
				document.cont.document.images['STYLESwatch'].src = StyleArray[style];
				document.cont.document.images['STYLEText'].src = StyleTextArray[style];
			}
			else {	
	            STYLE.src = '/images/cs/sm_cs_m_select_2a.gif';
                STYLE_off.src = '/images/cs/sm_cs_m_select_2a.gif';
			
			    document.cont.document.images['STYLE'].src = STYLE.src;
			    document.cont.document.images['STYLESwatch'].src = StyleArray['LYNN'];
				document.cont.document.images['STYLEText'].src = StyleTextArray['LYNN'];
			}
				
			highlightRoom(proom);
		}//end ns < 6
		
		else {//not ns < 6
			//if ns 6
		 	if(ns==6 && ie==6 && document.getElementById('divHeader')){
            
		 		if (document.images['LIVINGRO']){
					document.images['LIVINGRO'].src = '/images/cs/sm_cs_m_lvrm_i.gif';
				}
			    else {setTimeout('updateScene(room)', 1000);}
		
			    if (document.images['DININGRO']) {
				    document.images['DININGRO'].src = '/images/cs/sm_cs_m_dnrm_i.gif';
			    }
			    else {setTimeout('updateScene(room)', 1000);}
		
			    if (document.images['FAMILYRO']) {
				    document.images['FAMILYRO'].src = '/images/cs/sm_cs_m_fmrm_i.gif';
			    }
			    else {setTimeout('updateScene(room)', 1000);}
		
			    if (document.images['BEDROOM']) {
				    document.images['BEDROOM'].src = '/images/cs/sm_cs_m_bdrm_i.gif';
			    }
			    else {setTimeout('updateScene(room)', 1000);}
		
			    readCookie('main');
			    document.images['scene'].src = '/images/selector/' + color + '/' + style + '/' + room + '/SMALL.JPG';

			    readCookie('room');

			    if(!(color=="LYNN")){
				    var colorSwatch = new Image (52,48);
				    colorSwatch.src = ColorArray[color];
				    var colorText = new Image(210,15);
				    colorText.src = ColorTextArray[color];
				
			        COLOR.src = '/images/cs/sm_cs_m_select_1b.gif';
			        COLOR_off.src = '/images/cs/sm_cs_m_select_1b.gif';
			
			        document.images['COLOR'].src = COLOR.src;
				    document.images['COLORSwatch'].src = colorSwatch.src;		
				    document.images['COLORText'].src = colorText.src;		
			    }
			    else {	
				    var colorSwatch = new Image (52,48);
				    colorSwatch.src = ColorArray['LYNN'];
				    var colorText = new Image(210,15);
				    colorText.src = ColorTextArray['LYNN'];
				
			        COLOR.src = '/images/cs/sm_cs_m_select_1a.gif';
			        COLOR_off.src = '/images/cs/sm_cs_m_select_1a.gif';
			
			        document.images['COLOR'].src = COLOR.src;
				    document.images['COLORSwatch'].src = colorSwatch.src;
				    document.images['COLORText'].src = colorText.src;	
			    }
		
			    if(!(style=="LYNN")){
				    var styleSwatch = new Image (52,48);
				    styleSwatch.src = StyleArray[style];
				    var styleText = new Image(210,15);
				    styleText.src = StyleTextArray[style];
			
	                STYLE.src = '/images/cs/sm_cs_m_select_2b.gif';
                    STYLE_off.src = '/images/cs/sm_cs_m_select_2b.gif';
			
			        document.images['STYLE'].src = STYLE.src;
				    document.images['STYLESwatch'].src = styleSwatch.src;
				    document.images['STYLEText'].src = styleText.src;
			    }
			    else {	
				    var styleSwatch = new Image (52,48);
				    styleSwatch.src = StyleArray['LYNN'];
				    var styleText = new Image(210,15);
				    styleText.src = StyleTextArray['LYNN'];
			
	                STYLE.src = '/images/cs/sm_cs_m_select_2a.gif';
                    STYLE_off.src = '/images/cs/sm_cs_m_select_2a.gif';
			
			        document.images['STYLE'].src = STYLE.src;
				    document.images['STYLESwatch'].src = styleSwatch.src;
				    document.images['STYLEText'].src = styleText.src;
			    }
		
		
			    highlightRoom(proom);
		}//end ns 6
		
		else {// newer ie
			if (document.all.cont.document.images['LIVINGRO']){
				document.all.cont.document.images['LIVINGRO'].src = '/images/cs/sm_cs_m_lvrm_i.gif';
			}
			else {setTimeout('updateScene(room)', 1000);}
		
			if (document.all.cont.document.images['DININGRO']) {
				document.all.cont.document.images['DININGRO'].src = '/images/cs/sm_cs_m_dnrm_i.gif';
			}
			else {setTimeout('updateScene(room)', 1000);}
		
			if (document.all.cont.document.images['FAMILYRO']) {
			document.all.cont.document.images['FAMILYRO'].src = '/images/cs/sm_cs_m_fmrm_i.gif';
			}
			else {setTimeout('updateScene(room)', 1000);}
		
			if (document.all.cont.document.images['BEDROOM']) {
				document.all.cont.document.images['BEDROOM'].src = '/images/cs/sm_cs_m_bdrm_i.gif';
			}
			else {setTimeout('updateScene(room)', 1000);}
		
			readCookie('main');
			document.all.cont.document.images['scene'].src ='/images/selector/'+ color + '/' + style + '/' + room + '/SMALL.JPG';
		
			readCookie('room');
			if(!(color=="LYNN")){
			    COLOR.src = '/images/cs/sm_cs_m_select_1b.gif';
				COLOR_off.src = '/images/cs/sm_cs_m_select_1b.gif';
			    document.all.cont.document.images['COLOR'].src = '/images/cs/sm_cs_m_select_1b.gif';
				document.all.cont.document.images['COLORSwatch'].src = ColorArray[color];
				document.all.cont.document.images['COLORText'].src = ColorTextArray[color];
			}
			else {	
			    COLOR.src = '/images/cs/sm_cs_m_select_1a.gif';
				COLOR_off.src = '/images/cs/sm_cs_m_select_1a.gif';
			    document.all.cont.document.images['COLOR'].src = '/images/cs/sm_cs_m_select_1a.gif';
			    document.all.cont.document.images['COLORSwatch'].src = ColorArray['LYNN'];
				document.all.cont.document.images['COLORText'].src = ColorTextArray['LYNN'];
			}
		
			if(!(style=="LYNN")){
	            STYLE.src = '/images/cs/sm_cs_m_select_2b.gif';
                STYLE_off.src = '/images/cs/sm_cs_m_select_2b.gif';
			
			    document.all.cont.document.images['STYLE'].src = STYLE.src;
				document.all.cont.document.images['STYLESwatch'].src = StyleArray[style];
				document.all.cont.document.images['STYLEText'].src = StyleTextArray[style];
			}
			else {	
	            STYLE.src = '/images/cs/sm_cs_m_select_2a.gif';
                STYLE_off.src = '/images/cs/sm_cs_m_select_2a.gif';
			
			    document.all.cont.document.images['STYLE'].src = STYLE.src;
			    document.all.cont.document.images['STYLESwatch'].src = StyleArray['LYNN'];
				document.all.cont.document.images['STYLEText'].src = StyleTextArray['LYNN'];
			}
		
		
			highlightRoom(proom);
		}//end else newer ie
		}//end else not ns < 6
	}//end else newer browsers

return true

}//end function


function popRoomScene() {
	readCookie('main');
	rmScene = window.open('blank2.jsp', 'rmScene', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=623,height=421');
	rmScene.focus();
}

function highlightRoom(room) {
	if (bversion=='3') {
		if (document.images[room]) {
			eval("document.images['" + room + "'].src = " + room +"_h.src");
		}
		else setTimeout('highlightRoom(room)', 1000);	
	}
	
	else {
		if(ns==1 && ie==0){			
			if (document.cont.document.images[room]) {
				eval("document.cont.document.images['" + room + "'].src = " + room +"_h.src");
			}
			else setTimeout('highlightRoom(room)', 1000);
		}
		else {
		 	if(ns==6 && ie==6 && document.getElementById){
		 		if (document.images[room]) {
					eval("document.images['" + room + "'].src = " + room +"_h.src");
				}
				else setTimeout('highlightRoom(room)', 1000);	
				}
		 	
			else {
				if (document.all.cont.document.images[room]) {
					eval("document.all.cont.document.images['" + room + "'].src = " + room +"_h.src");
				}
				else setTimeout('highlightRoom(room)', 1000);
			}
		}
}
}


function RolloverOnRoom(name) { //onmouseOver

if(bversion=='3') {
		if	( 	!( (eval('document.images["'+ name +'"].src.indexOf("_h.gif") > -1') ))	
			)	{
				eval('document.images["'+ name +'"].src =' + name +'.src');
		}
}

else {
	if(ns==1 && ie==0){
		if	( 	!(	(eval('document.cont.document.images["'+ name +'"].src.indexOf("_h.gif") > -1')		) 	
				)
			)	{
					eval('document.cont.document.images["' + name + '"].src =' + name + '.src');
		}
	}
	
	else {
		 	if(ns==6 && ie==6 && document.getElementById){
		 		if	( 	!( (eval('document.images["'+ name +'"].src.indexOf("_h.gif") > -1') ))	
				)	{
					eval('document.images["'+ name +'"].src =' + name +'.src');
				}
		 	}

	else {
		if	( 	!(	(eval('document.all.cont.document.images["'+ name +'"].src.indexOf("_h.gif") > -1')	)	
				)
			)	{
				eval('document.all.cont.document.images["' + name + '"].src =' + name + '.src');
		}
	}}
}
}

function RolloverOffRoom(name) { //onmouseOFF

if(bversion=='3') {
		if	( 	!( (eval('document.images["'+ name +'"].src.indexOf("_h.gif") > -1') ))	
			)	{
				eval('document.images["'+ name +'"].src =' + name +'_off.src');
		}
}

else {
	if(ns==1 && ie==0){
			if	( 	!(	(eval('document.cont.document.images["'+ name +'"].src.indexOf("_h.gif") > -1')		) 	
				)
			)	{
					eval('document.cont.document.images["' + name + '"].src =' + name + '_off.src');
					
		}
	}
	else {
		 	if(ns==6 && ie==6 && document.getElementById){
		 		if	( 	!( (eval('document.images["'+ name +'"].src.indexOf("_h.gif") > -1') ))	
					)	{
					eval('document.images["'+ name +'"].src =' + name +'_off.src');
				}
		 	}
	else {
		if	( 	!(	(eval('document.all.cont.document.images["'+ name +'"].src.indexOf("_h.gif") > -1')	)
				)
			)	{
					eval('document.all.cont.document.images["' + name + '"].src =' + name + '_off.src');
		}
	}}
}
}


