//Functions controlling rollovers
function imgOver(img,replace) {
	if (curnt_sel_img != img){
   	document.images[img].src = replace;
	}
}

function imgOut(img,replace) {
	if (curnt_sel_img != img){
	document.images[img].src = replace; 
	} 
}


//THIS FUNCTION PREVENTS SELECTED IMAGE FROM CHANGING STATES ON ROLLOVER AND RESETS THE IMAGE WHEN ANOTHER 
//IMAGE IS SELECTED

var curnt_sel_img = "NONE";
var curnt_sel_gif = "NONE";
var curnt_NoNsel_gif = "NONE";


function Reset_Img(img,replace,nonSelect) {
	//alert(curnt_sel_gif);
	if (curnt_NoNsel_gif == "NONE"){

		eval("document."+img+".src = replace");
		curnt_sel_img = img;
		curnt_NoNsel_gif = nonSelect;
		
	}

	else if (curnt_NoNsel_gif != "NONE"){
		//alert('i work');
		//alert(curnt_sel_img);
		//alert(curnt_NoNsel_gif);
		eval("document."+curnt_sel_img+".src = curnt_NoNsel_gif");
		eval("document."+img+".src = replace");
		curnt_sel_img = img;
		curnt_NoNsel_gif = nonSelect;
	}
}

function loadIframe(main,subanchor){
	top.document.location = main;
	iframe.document.location = subanchor;

}


