// jump menu 

function jump(targ,selObj,restore){
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}




// picture toggle

var currentpic = "image1";										// page loads with p1 visible, must reference first piece id.
var currentlable = 't1';	
	
function toggle ( targetdiv, targetlable ) {

	if (document.getElementById) {	
		target = document.getElementById ( currentpic );		// set target to referrence current pic,
		target.style.display = "none";							// then remove it
	 	y = document.getElementById( targetlable );			// set target y to ref current lable
		y.style.display = "none";							//	then remove it
		//alert( currentlable);
		currentpic = targetdiv;									// reset current pic var
		currentlable = targetlable;							
	
			
			
		target = document.getElementById ( targetdiv );			// reset target
		y = document.getElementById ( targetlable );	
		//alert( targetlable);
			if (target.style.display == "none") {				// actual switch widget
					target.style.display = "";
					y.style.display = ""; 
				document.currentpic = targetdiv;
				document.currentlable = targetlable;
					
					} else {  target.style.display = "none";
					}
				}
		}
		
		
// open new window	

function openpopup(page) { window.open(page,"displayWindow"); }

var newwindow;

function openpopup(url) {
        newwindow=window.open(url,'name','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,height=600,width=358');
        if (window.focus) {newwindow.focus()}
		}


function pop(url) {
        newwindow=window.open(url,'name','height=600,width=590');
        if (window.focus) {newwindow.focus()}
		}



function pop2(url) {
        newwindow=window.open(url,'name','height=400,width=550');
        if (window.focus) {newwindow.focus()}
		}
		
		
		
// pop up values  - these strings don't valadate in the html


var camarillo_reserve  = "http://www.g5searchmarketing.com/socalselfstorage/free_quote.php?location_code=camarillo01";
var carson_directions  = "http://maps.google.com/maps?q=20501+Main+St,+Carson,+CA+90745&amp;spn=0.021805,0.062622&amp;iwloc=A&amp;hl=en";

var hollywood_reserve  = "http://www.g5searchmarketing.com/socalselfstorage/free_quote.php?location_code=hollywood01";
var gardena_directions  = "http://maps.google.com/maps?q=740+West+190th+Steet,+Gardena,+CA++90745&amp;spn=0.021801,0.062622&amp;iwloc=A&amp;hl=en";

var lomalinda_reserve  = "http://www.g5searchmarketing.com/socalselfstorage/free_quote.php?location_code=lomalinda01";
var longbeach_directions  = "http://maps.google.com/maps?q=2911+Redondo+Ave,+Long+Beach,+CA++90806&amp;spn=0.021814,0.062622&amp;iwloc=A&amp;hl=en";

var northridge_reserve  = "http://www.g5searchmarketing.com/socalselfstorage/free_quote.php?location_code=northridge01";
var hancock_directions  = "http://maps.google.com/maps?q=2150+Hancock+St.,+San+Diego,+CA++92110&amp;spn=0.022081,0.062622&amp;iwloc=A&amp;hl=en";

var pasadena_reserve  = "http://www.g5searchmarketing.com/socalselfstorage/free_quote.php?location_code=pasadena01";
var sherman_directions  = "http://maps.google.com/maps?q=1040+Sherman+St,+San+Diego,+CA++92110&amp;spn=0.022076,0.062622&amp;iwloc=A&amp;hl=en";

var ranchosantamargarita_reserve  = "http://www.g5searchmarketing.com/socalselfstorage/free_quote.php?location_code=ranchosantamargarita01";
var stanton_directions  = "http://maps.google.com/maps?q=10850+Beach+Blvd+Stanton,+CA++90680&amp;spn=0.021815,0.062622&amp;iwloc=A&amp;hl=en";

var shermanoaks_reserve  = "http://www.g5searchmarketing.com/socalselfstorage/free_quote.php?location_code=shermanoaks01";
var woodlandhills_directions  = "http://maps.google.com/maps?q=6030+Canoga+Avenue,+Woodland+Hills,+CA++91367&iwloc=A&hl=en";

var simivalley_reserve  = "http://www.g5searchmarketing.com/socalselfstorage/free_quote.php?location_code=simivalley01";
var torrance_directions  = "http://maps.google.com/maps?q=2545+West+190th+Street,+Torrance,+CA++90504&amp;iwloc=A&amp;hl=en";

var torrance_reserve  = "http://www.g5searchmarketing.com/socalselfstorage/free_quote.php?location_code=torrance01";

var westlakevillage01_reserve  = "http://www.g5searchmarketing.com/socalselfstorage/free_quote.php?location_code=westlakevillage01";
var westlakevillage02_reserve  = "http://www.g5searchmarketing.com/socalselfstorage/free_quote.php?location_code=westlakevillage02";
var westlakevillage03_reserve  = "http://www.g5searchmarketing.com/socalselfstorage/free_quote.php?location_code=westlakevillage03";

var westlosangeles_reserve  = "http://www.g5searchmarketing.com/socalselfstorage/free_quote.php?location_code=westlosangeles01";









