//<title>APW - JS</title>
function setStyleOver(objId) {
	document.getElementById(objId).style.backgroundColor='Blue';
	document.getElementById(objId).style.color='Yellow';
}
function setStyleOut(objId) {
	document.getElementById(objId).style.backgroundColor='#FFF';
	document.getElementById(objId).style.color='Blue';
}
function onOver(subMenu,link){
	document.getElementById(subMenu).style.visibility='visible';
	document.getElementById(link).style.background='blue';
	document.getElementById(link).style.color='yellow';
}
function onOut(subMenu,link){
	document.getElementById(subMenu).style.visibility='hidden';
	document.getElementById(link).style.background='transparent';
	document.getElementById(link).style.color='blue';
}
function newWindow(objValue,winName){
	
	var v_width = (screen.availWidth * .5);
	var v_height = (screen.availHeight * .5);
	var v_top = (screen.availHeight * .25);
	var v_left = (screen.availWidth * .25);

	window.open(objValue,winName,'width=v_width,height=v_height,top=v_top,left=v_left,directories=yes,location=yes,menubar=yes,resizable=yes,scrollbars=yes,status=yes,toolbar=yes')
}

function googlemap(loc){
	if(loc == 'AN'){
		var mapUrl = 'http://maps.google.com/maps?q=2271+W+Crescent+Ave,+Anaheim+CA&spn=0.007992,0.010947&hl=en';
	}
	else if(loc == 'BR'){
		var mapUrl = 'http://maps.google.com/maps?q=W+Imperial+Hwy+%26+S+Berry+St+Brea,+CA+92821&spn=0.007984,0.010947&hl=en';
	}
	else if(loc == 'CH'){
		var mapUrl = 'http://maps.google.com/maps?q=115+N+Pinney+Dr+Anaheim,+CA+92807&spn=0.007991,0.010947&hl=en';
	}
	else if(loc == 'CM'){
		var mapUrl = 'http://maps.google.com/maps?q=2650+Fairview+Rd+Costa+Mesa,+CA+92626&spn=0.008007,0.010947&hl=en';
	}
	else if(loc == 'CY'){
		var mapUrl = 'http://maps.google.com/maps?q=9600+Graham+St+Cypress,+CA+90630&spn=0.007993,0.010947&hl=en';
	}
	else if(loc.substring(0,2) == 'FU'){
		var mapUrl = 'http://maps.google.com/maps?q=1374+Brea+Blvd+Fullerton,+CA+92835&spn=0.007987,0.010947&hl=en';
	}
	else if(loc == 'GG'){
		var mapUrl = 'http://maps.google.com/maps?q=9301+Westminster+Ave+Garden+Grove,+CA+92844-2752&spn=0.007999,0.010947&hl=en';
	}
	else if(loc.substring(0,2) == 'HB'){
		var mapUrl = 'http://maps.google.com/maps?q=21400+Magnolia+St+Huntington+Beach,+CA+92646-6306&spn=0.008009,0.010947&hl=en';
	}
	else if(loc == 'HLP'){
		var mapUrl = 'http://maps.google.com/maps?q=15325+Los+Robles+Ave+Hacienda+Heights,+CA+91745-2717&spn=0.007976,0.010947&hl=en';
	}
	else if(loc.substring(0,2) == 'LH'){
		var mapUrl = 'http://maps.google.com/maps?q=2161+Brookdale+Ave+La+Habra,+CA+90631-3235&spn=0.007982,0.014922&hl=en';
	}
	else if(loc == 'LW'){
		var mapUrl = 'http://maps.google.com/maps?q=Centralia+St+and+Ocana+Ave,+Lakewood,+CA+90713-2512&spn=0.007992,0.014922&hl=en';
	}
	else if(loc.substring(0,2) == 'LM'){
		var mapUrl = 'http://maps.google.com/maps?q=foster+rd+and+calle+de+maya,+La+Mirada,+CA+90638&spn=0.012671,0.019855&hl=en';
	}
	else if(loc.substring(0,2) == 'LA'){
		var mapUrl = 'http://maps.google.com/maps?q=3591+Cerritos+Ave+Los+Alamitos,+CA+90720-2414&spn=0.012686,0.019855&hl=en';
	}
	
	else if(loc == 'SA'){
		var mapUrl = 'http://maps.google.com/maps?q=2102+S+Flower+St+Santa+Ana,+CA+92707-2500&ll=33.719637,-117.876767&spn=0.012700,0.019855&hl=en';
	}
	
	else if(loc == 'SM-f1'){
		var mapUrl = 'http://maps.google.com/maps?q=27501+Mustang+Run+Mission+Viejo,+CA+92691-1027&ll=33.655379,-117.651418&spn=0.012709,0.019855&hl=en';
	}
	
	else if(loc == 'PA-f1'){
		var mapUrl = 'http://maps.google.com/maps?q=2885+E+Washington+Blvd,+Pasadena,+CA+91107&spn=0.012634,0.019855&hl=en';
	}
	else if(loc.substring(0,2) == 'SV'){
		var mapUrl = 'http://maps.google.com/maps?q=25171+Moor+Ave,+Mission+Viejo,+CA+92691&spn=0.012715,0.019855&hl=en';
	}
	else if(loc == 'SC-f1'){
		var mapUrl = 'http://maps.google.com/maps?q=700+Avenida+Pico++San+Clemente,+CA+92672&ll=33.439123,-117.618695&spn=0.012741,0.019855&hl=en';
	}
	else if(loc.substring(0,2) == 'TU'){
		var mapUrl = 'http://maps.google.com/maps?q=Whembly+Dr+and+Dodge+Ave,+Santa+Ana,+CA,+92705&ll=33.765930,-117.798554&spn=0.012693,0.019855&hl=en';
	}
	else if(loc == 'YL'){
		var mapUrl = 'http://maps.google.com/maps?q=4856+Valley+View+Ave+Yorba+Linda,+CA+92886-3252&hl=en';
	}
	
	mapWin = window.open(mapUrl,"mapWin","width=810,height=550,resizable=yes,scrollbars=yes");
}

function mapquest(loc){
	if(loc == 'AN'){
		var mapUrl = 'http://www.mapquest.com/maps/map.adp?country=us&addtohistory=&formtype=address&searchtype=address&cat=&address=2271%20W%20Crescent%20Ave&city=Anaheim&state=CA&zipcode=92801%2d5160';
	}
	else if(loc == 'BR'){
		var mapUrl = 'http://www.mapquest.com/maps/map.adp?country=us&addtohistory=&formtype=address&searchtype=address&cat=&address=W%20Imperial%20Hwy%20%26%20S%20Berry%20St&city=Brea&state=CA&zipcode=92821';
	}
	else if(loc == 'CH'){
		var mapUrl = 'http://www.mapquest.com/maps/map.adp?country=us&addtohistory=&formtype=address&searchtype=address&cat=&address=115%20N%20Pinney%20Dr&city=Anaheim&state=CA&zipcode=92807%2d3101';
	}
	else if(loc == 'CM'){
		var mapUrl = 'http://www.mapquest.com/maps/map.adp?city=Costa+Mesa&state=ca&address=2650+Fairview+Road&country=us&zoom=8';
	}
	else if(loc == 'CY'){
		var mapUrl = 'http://www.mapquest.com/maps/map.adp?city=Cypress&state=ca&address=9600+Graham+Street&country=us&zoom=8';
	}
	else if(loc.substring(0,2) == 'FU'){
		var mapUrl = 'http://www.mapquest.com/maps/map.adp?country=us&addtohistory=&formtype=address&searchtype=address&cat=&address=%5b1300%2d1374%5d%20Brea%20Blvd&city=Fullerton&state=CA&zipcode=92835';
	}
	else if(loc == 'GG'){
		var mapUrl = 'http://www.mapquest.com/maps/map.adp?country=us&addtohistory=&formtype=address&searchtype=address&cat=&address=9301%20Westminster%20Ave&city=Garden%20Grove&state=CA&zipcode=92844%2d2752';
	}
	else if(loc.substring(0,2) == 'HB'){
		var mapUrl = 'http://www.mapquest.com/maps/map.adp?country=us&addtohistory=&formtype=address&searchtype=address&cat=&address=21400%20Magnolia%20St&city=Huntington%20Beach&state=CA&zipcode=92646%2d6306';
	}
	else if(loc == 'HLP'){
		var mapUrl = 'http://www.mapquest.com/maps/map.adp?city=Hacienda+Heights&state=ca&address=15325+Los+Robles+Ave&country=us&zoom=8';
	}
	else if(loc.substring(0,2) == 'LH'){
		var mapUrl = 'http://www.mapquest.com/maps/map.adp?city=La+Habra&state=ca&address=2061+Brookdale+Ave&country=us&zoom=8';
	}
	else if(loc == 'LW'){
		var mapUrl = 'http://www.mapquest.com/maps/map.adp?formtype=address&searchtype=address&country=US&addtohistory=&1ahXX=&address=Centralia+St+and+Ocana+Ave&city=Lakewood&state=CA&zipcode=90713';
	}
	else if(loc.substring(0,2) == 'LM'){
		var mapUrl = 'http://www.mapquest.com/maps/map.adp?city=La+Mirada&state=ca&address=13520+Adelfa+dr&country=us&zoom=8';
	}
	else if(loc.substring(0,2) == 'LA'){
		var mapUrl = 'http://www.mapquest.com/maps/map.adp?country=us&addtohistory=&formtype=address&searchtype=address&cat=&address=3591%20Cerritos%20Ave&city=Los%20Alamitos&state=CA&zipcode=90720%2d2414';
	}
	
	else if(loc == 'SA'){
		var mapUrl = 'http://www.mapquest.com/maps/map.adp?country=us&addtohistory=&formtype=address&searchtype=address&cat=&address=2102%20S%20Flower%20St&city=Santa%20Ana&state=CA&zipcode=92707%2d2500';
	}
	
	else if(loc == 'SM-f1'){
		var mapUrl = 'http://www.mapquest.com/maps/map.adp?city=Mission+Viejo&state=ca&address=27501+Mustang+Run&country=us&zoom=8';
	}
	
	else if(loc == 'PA-f1'){
		var mapUrl = 'http://www.mapquest.com/maps/map.adp?city=Pasadena&state=ca&address=2925+E+Sierra+Madre+Blvd&country=us&zoom=8';
	}
	else if(loc.substring(0,2) == 'SV'){
		var mapUrl = 'http://www.mapquest.com/maps/map.adp?city=Mission+Viejo&state=ca&address=25171+Moor+Ave&country=us&zoom=8';
	}
	else if(loc == 'SCSC-f1'){
		var mapUrl = 'http://www.mapquest.com/maps/map.adp?country=us&addtohistory=&formtype=address&searchtype=address&cat=&address=700%20E%20Avenida%20Pico&city=San%20Clemente&state=CA&zipcode=92673%2d5681';
	}
	else if(loc.substring(0,2) == 'TU'){
		var mapUrl = 'http://www.mapquest.com/maps/map.adp?city=Santa+Ana&state=ca&address=19251+Dodge+ave&country=us&zoom=7&zip=92705';
	}
	else if(loc == 'YL'){
		var mapUrl = 'http://www.mapquest.com/maps/map.adp?formtype=address&searchtype=address&country=US&addtohistory=&1ahXX=&address=4756+Valley+View+Ave&city=Yorba+Linda&state=CA&zipcode=92886';
	}
	
	mapWin = window.open(mapUrl,"mapWin","width=810,height=550,resizable=yes,scrollbars=yes");
}

