//<!-- 
// browser = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )));

// Wrap the frameset around this page if opened by itself  
if (window.top.location == self.location) {
	sPage = location.href ;
	// find out what 'store' subfolder they are in so we can select the Store automatically
	if (sPage.indexOf ("vancouver") >= 0 ) {
		sStore = "&store=vancouver" ;
	}
	else if (sPage.indexOf ("seattle") >= 0 ) {
		sStore = "&store=seattle" ;
	}
	else {
		sStore = "" ;
	}
	sPage = sPage.substring (sPage.lastIndexOf ("/") + 1) ;		
	sPage = sPage.substring (0, sPage.length - 4) ;
	// Doesn't work in the dynamic page - only built pages
	if(sPage != "catalog_nav3") {      
		sPage = sPage.substring (0, sPage.length - 5) ;
		self.location.replace ("../?pg=" + sPage + sStore ) ;
	}
}
	
function AutoRun () {
	// Not used at this time
}

function goStore (StoreName) {
	if (StoreName == "victoria" ) {
		top.location = "http://www.pedersens.ca";
	}
	else {
		top.location = "http://"+ StoreName +".pedersens.com";
	}
}

function goPage (PageName) {
		top.location = "./?pg=" + PageName ;
}

function GoSection (section) {
	parent.ped_body.GoBookmark (section);
}

function AddToOrder () {
	parent.ped_body.document.Catalog.btnSubmit.click();
}
	
// -->

