function arrow_on(x,c){
	if (document.images) {
		if (c == "blue") 
			document[x].src="images/btn/btn_arrow_on.gif";
		else if (c == "sel") 	
			document[x].src="images/btn/btn_arrow_sel.gif";
		else if (c == "black") 	
			document[x].src="images/btn/btn_arrow_black.gif";			
		else if (c== "print")
			document[x].src="images/btn/btn_print_on.gif";
		else if (c== "home")
			document[x].src="images/btn/btn_home_gr.gif";
		else if (c== "everyday")
			document[x].src="images/btn/btn_arrow_on.gif";
		else	
			document[x].src="images/btn/btn_arrow_white_on.gif";
			
	} 
}


function arrow_off(x,c){
	if (document.images) {
		if (c == "blue") 
			document[x].src="images/btn/btn_arrow_off.gif";
		else if (c == "sel") 	
			document[x].src="images/btn/btn_arrow_sel.gif";
		else if (c== "print")
			document[x].src="images/btn/btn_print_off.gif";
		else if (c== "home")
			document[x].src="images/btn/btn_home_gr.gif";
		else if (c== "everyday")
			document[x].src="images/btn/btn_arrow_white_on.gif";
		else	
			document[x].src="images/btn/btn_arrow_white_off.gif";
	}
}




function printPage(p) {	
	var f;
	f = "print.asp?page=content/"+p+".asp";

	window.open(f,"print","width=542,height=550,innerWidth=542,innerHeight=550,scrollbars=1,resizable=0");	
}



function popWin(p) {	
	var f;
	
	f = p+".asp";
	window.open(f,p,"width=640,height=480,innerWidth=640,innerHeight=480,scrollbars=1,resizable=1");	
}


function popLarge(p) {	
	var f;
	
	f = p+".asp";
	window.open(f,p,"width=640,height=624,innerWidth=640,innerHeight=624,scrollbars=1,resizable=1");	
}


function showImage(p) {	
	var f;
	f= "images/img_spa_wish_lg.gif"	
	
	window.open("showImage.asp","wish","width=640,height=480,innerWidth=640,innerHeight=480,scrollbars=1,resizable=1");	
}

function popupFixed640(page) {	
	window.open(page,"popup_fixed","width=640,height=480,innerWidth=640,innerHeight=480");	
}

function popupSpa(model) {	
	window.open("popup_spa.asp?model=" + model,"popup_spa","width=660,height=450,innerWidth=660,innerHeight=450");	
}


/* ======================================================================================================================
	Standard Pop-Up Window Open
	Open a pop-up window. The window should open with the same dimensions in IE and Netscape.
	page - page name (ex: xyz.asp)
	name - the title of the new window
	width - the width of the new window
	height - the height of the new window
	extra (optional) - any additional parameters to the window.open. Here is a list of the most common items:
			location,menubar,status,toolbar,scrollbars,resizable
			an example would be: "location,resizable"

*/
function standard_open(page, name, width, height, extra) {
	var tmpString;
	
	tmpString = "width=" + width + ",height=" + height + ",innerWidth=" + width + ",innerHeight=" + height;
	
	// If there are parameters in the extra field, append them to the string
	if ((extra != null) && (extra != "")) {
		tmpString = tmpString + "," + extra;
	}
	
	// Open the window
	window.open(page, name, tmpString);
	
	return;
}


