// global vars
var popupWin;
var scrnwidth=screen.width;
var scrnheight=screen.height;


// "only 1 open at a time" popup function //
function openPop(url,width,height,addloptions){
	var xspot=Math.round((scrnwidth/2)-(width/2));
	var yspot=Math.round((scrnheight/2)-(height/2)-30);
	features = "height="+height+",width="+width+",top="+yspot+",screenY="+yspot+",left="+xspot+",screenX="+xspot;
	if (addloptions && addloptions!="") { features += ","+addloptions; }
	if (!popupWin || popupWin.closed){
		popupWin = window.open(url, '', features);
	}
	else {
		window.popupWin.close();
		popupWin = window.open(url, '', features);
	}
}

function closepopups(){
	if (popupWin && popupWin.open){
		window.popupWin.close();
	}
}





var exceptions = new Array();
var i = 0;
exceptions[i++] = "postsaleservice";
exceptions[i++] = "consumerspot";
exceptions[i++] = "aftermind";
exceptions[i++] = "geapplianceparts";
exceptions[i++] = "genet2";
exceptions[i++] = "genet";
exceptions[i++] = "millstone";
exceptions[i++] = "products";
exceptions[i++] = "monogram";
exceptions[i++] = "ap1lnx";
exceptions[i++] = "answers";
exceptions[i++] = "prodcontent";

var Base_Href = window.location.protocol +"//www.geappliances.com";
var UnSecure_Base_Href = "http://www.geappliances.com";
if (window.location.host.indexOf('team') != -1)
{
	var Base_Href = window.location.protocol +"//"+ window.location.host;
	var UnSecure_Base_Href = "http://"+ window.location.host;
	for (count = 0; count < exceptions.length; count++)
	{
		if (window.location.host.indexOf(exceptions[count]) != -1)
		{
			var Base_Href = window.location.protocol +"//www.geappliances.com";
			var UnSecure_Base_Href = "http://www.geappliances.com";
		}//Close if
	}//Close for
}//Close if
var FooterImage, HeaderImage, TargetLocationDefinition, DaughterWindowClose;
if (!DaughterWindowClose){DaughterWindowClose = false;}

function openurllist(customhref)
{
	var trgtLoc = "document.";
	if(TargetLocationDefinition)
		trgtLoc = TargetLocationDefinition + ".";
	var locationSite = trgtLoc + "location.href";
	if(customhref.indexOf('http')!=-1)
		var locationAddress = customhref;
	else	
		var locationAddress = UnSecure_Base_Href + customhref;
		
	if(TargetLocationDefinition)
	{
		if(eval(TargetLocationDefinition + ".closed"))
			eval("window.open(\"" + locationAddress + "\")");
		else
		{
			eval(TargetLocationDefinition + ".focus()");
			eval(locationSite + " = \"" + locationAddress + "\"");
		}
	}
	else
		eval(locationSite + " = \"" + locationAddress + "\"");
	if (DaughterWindowClose)
	{
		var winCloseStr = DaughterWindowStr + ".close();";
		eval(winCloseStr);
	}
}


/* This function is here for legacy. */
/* Use one of the other functions if you need a popup. */
function openNewWindow(url, width, height) {
          windowName  = "new_window";
          params      = "toolbar=0,";
          params     += "location=0,";
          params     += "directories=0,";
          params     += "status=0,";
          params     += "menubar=0,";
          params     += "scrollbars=1,";
          params     += "resizable=0,";
          params += "width="+width+",";
          params += "height="+height;
          win = window.open(url, windowName, params);
          win.opener.name = "opener";
}


// SAH 10/6/05
// These URL variables are being used less and less as time goes on.



//GEAC Links
var GEAnswerCenter = "/service_and_support/";
	var AskOurTeamofExperts = GEAnswerCenter +"search.htm";
	var ContactUs = GEAnswerCenter +"contact/";
		var GEACContactUs = ContactUs +"contact/";
		var PartsContactUs = ContactUs +"contact/";
	var DonateAppliance = GEAnswerCenter +"donation.htm";
	var FAQs = GEAnswerCenter +"faqs/";
	var Innovation = GEAnswerCenter +"innvtn/";
	var InstallationInformation = GEAnswerCenter +"literature/";
		var OwnersManuals = InstallationInformation;
	var RegisterProduct = GEAnswerCenter +"register/";
	var Servicer = GEAnswerCenter +"service/";
		var SolveItYourselfFrameset = "/errors/404.htm";
	var TechnicalAssistance = GEAnswerCenter;
	var ValueCalculator = "/errors/404.htm";
	var VerifyServiceFrameset = Servicer+"check_status.htm";
	
//Other Site Links
var ApplianceCatalogs = "/keyword/stores/publication.htm"; //which redirects to 404 on purpose to nail gates shut (8/4/05)
var B2B = "/b2b/";
	var B2BContactUs = B2B +"contact/";
	var B2BPrivacyPolicy = B2B +"bwge_pp/";
var BuildWithGE = "/buildwithge/";
var Camco = "http://www.camco.ca";
var ContentAgreement = "/plcy/agreement.htm";
var CustomerNet = "https://customernet.geappliances.com/CustomerNet/";
var DonateRedirect = "http://www.giftsinkind.org/donate/default.asp";
var EPAWater = "http://www.epa.gov/safewater/dwinfo.htm";
var Europe = "/plcy/appliances_worldwide.htm";
var GEHome = "http://www.ge.com";
var GETermsandConditions = "/plcy/tandc.htm";
var HotpointHome = "http://www.hotpoint.com";
var HouseFolder = "/errors/404.htm";
var Housewares = "/housewares/";
	var SmallAppliances = Housewares;
var IntlCustomerNet = "/keyword/brands/intlcustomernet.htm"; //https://international.geappliances.com
var LiveManualsHome = "/keyword/stores/livemanuals/livemhome.htm"; //www.livemanuals.com
var Meetings = "/meetings/";
	var MeetingsContactUs = Meetings +"contact.htm";
var NewsletterSignup = "/plcy/newsletter/newsletter_signup.htm";
var Pressroom = "http://www.geconsumerproducts.com/pressroom/";
	var EuropeanPressroom = Pressroom;
	var EuropeanEnglish = Pressroom;
	var EuropeanFrench = Pressroom;
	var EuropeanGerman = Pressroom;
	var EuropeanSpanish = Pressroom;
	var PressroomContactUs = Pressroom;
	var CommunityContactUs = Pressroom;
var PricingInfo = "http://genet.geappliances.com/ServiceNet/Dispatcher?REQUEST=CONSUMERFIRSTREQUEST&JSPID=SVCPRICEINFO";
var PrivacyOptions = "/plcy/privacy/privacy.htm"
var PrivacyPolicy = "/plcy/privacy/privacy.htm";
	var GEAPrivacyPolicy = PrivacyPolicy;
var ProductPages = "/products/";
var ProfessionalProducts = "http://www.monogram.com/";
var Recall = "/products/recall/";
	var DishRecall = "/products/recall/";
	var DehumidRecall = "/products/recall/";
var RequestService = "http://genet.geappliances.com/ServiceNet/Dispatcher?REQUEST=CONSUMERFIRSTREQUEST&JSPID=SCHEDULE";
var RLDSVirtualKitchen = "/error/404.htm"; 
var SiteMap = "/plcy/stmp.htm";
var SmartOrder = "/keyword/stores/smartorder.htm";
var SolveItYourself = "/service_and_support/";
var StartShopping = "/products/";
	var BrandCollections = StartShopping +"brands/";
		var BrandInformation = BrandCollections;
		var GEProductLine = BrandCollections +"ge.htm";
		var GEProfile = BrandCollections +"profile.htm";
			var GEProfilePerformance = GEProfile;		
	var DesignCenter = "/design_center/";
		var RealLifeDesignAssistance = DesignCenter;
		var RLDSApplianceQuest = DesignCenter +"appliance_questionnaire.htm";
		var RLDSDesignQuest = DesignCenter +"design_questionnaire.htm";
		var RLDSEstimator = DesignCenter;
		var RLDSFaqs = DesignCenter;
		var RLDSFind = DesignCenter;
			var Remodeler = DesignCenter;
		var RLDSIdeas = DesignCenter;
		var RLDSNewKitchen = DesignCenter;
		var RLDSPhotoGallery = DesignCenter +"kitchen_gallery/";
		var RLDSResource = DesignCenter;
		var RLDSUniversal = DesignCenter +"universal_design/";
		var RLDSUniversalKitchen = RLDSUniversal;
	var ExtendedWarranties = "/service_and_support/warranty/";
		var Covered = ExtendedWarranties + "covered.htm";
		var FAQ =  ExtendedWarranties +"terms.htm";
		var OnlineSolicit = "https://genet.geappliances.com/Solicits/Dispatcher" ;
			var CTAC = OnlineSolicit;
			var NoFinChrg = OnlineSolicit;
			var RefHelp = OnlineSolicit;
		var Savings = ExtendedWarranties + "savings.htm";
	var Financing = StartShopping +"fnncng/";
	var PartsAccessories = "/service_and_support/parts/";
	var RebatesSpecialOffers = "/promos/";
	var StainlessPortfolio = DesignCenter +"stainless/";
var SupplierNet = "/suppliernet/";
var TermsConditions = "/plcy/tandc.htm";
var VerifyService = "https://genet.geappliances.com/ServiceNet/Dispatcher?REQUEST=CONSUMERFIRSTREQUEST&JSPID=RESCHEDULE";
var WhatsHot = "/products/introductions/";
var WhereToBuy = "/buy/";
	var IntlWhereToBuy = WhereToBuy +"index_wrld.htm";
var Worldwide = "/plcy/appliances_worldwide.htm";
var Y2K = "/errors/404.htm";

//Product Info and NPI Site Links
var WallOvens = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0068&SITEID=GEA";
var Advantium = "/advantium/";
	var BuiltInAdvantium="http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0076&FILTERS=FT0004:Advantium&SITEID=GEA";
	var OvertheRangeAdvantium="http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0074&FILTERS=FT0004:Advantium&SITEID=GEA";

var Arctica = "/arctica/";
var Dishwashers = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=COMMERCIALCATEGORIES&CATEGORY=CA0026&SITEID=GEA";
var ProfileDish = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0026&FILTERS=FT0070:Profile&SITEID=GEA";
	var BuiltInDishwasher = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0086&SITEID=GEA";
	var Compactors = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0027&SITEID=GEA";
	var Disposers = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0028&SITEID=GEA";
	var PortableDishwasher = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0087&SITEID=GEA";
	var SpacemakerDishwasher = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0086&FILTERS=FT0072:YES&SITEID=GEA";
var DualFuel = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0078&SITEID=GEA";
var ElectricCookingProducts = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=COMMERCIALCATEGORIES&CATEGORY=CA0014&SITEID=GEA";
	var FreeStandingDualFuelRange ="http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0078&SITEID=GEA"; 
	var SlideInDualFuelRange = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0079&SITEID=GEA"; 
	var DoubleElectricWallOven = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0068&FILTERS=FT0009:Double&SITEID=GEA";
	var SingleElectricWallOven = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0068&FILTERS=FT0009:Single&SITEID=GEA";
	var FreeStandingElectricConvectionOven = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0069&FILTERS=FT0004:Convection&SITEID=GEA";
	var FreeStandingElectricRange = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0069&SITEID=GEA";
	var SlideInElectricRange = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0066&SITEID=GEA";
	var DropInElectricRange = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0071&SITEID=GEA";
	var ElectricCooktop = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0070&SITEID=GEA";
	var WarmingDrawer = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0065&SITEID=GEA";
var CookingRatings = "/products/top_rated/";
var EnergySaver = "/products/energy/";
var GasCookingProducts = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=COMMERCIALCATEGORIES&CATEGORY=CA0018&SITEID=GEA";
	var FreeStandingGasRange = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0084&SITEID=GEA";
	var GasWallOven = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0083&SITEID=GEA";
	var SingleGasWallOven = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0083&SITEID=GEA";
	var SlideInGasRange = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0085&SITEID=GEA";
	var GasCooktop = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0081&SITEID=GEA";
var Microwaves = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=COMMERCIALCATEGORIES&CATEGORY=CA0016&SITEID=GEA";
	var OverTheRangeMicrowaveOven = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0074&SITEID=GEA";
	var CountertopMicrowaveOven = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0077&SITEID=GEA";
	var ConvectionMicrowaveWallOven = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0076&FILTERS=FT0004:Convection&SITEID=GEA";
var OutdoorCooking = "http://www.monogram.com/selectionguide/index.htm";
var Refrigeration = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=SUBCATEGORY&CATEGORY=CA0000&SITEID=GEA";
var Refrigerators = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=COMMERCIALCATEGORIES&CATEGORY=CA0011&SITEID=GEA";
	var ProfileBottomFreezer = "/products/introductions/bottom_freezers/";
	var BuiltIn42Inch = Refrigerators;
	var BottomFreezer = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0058&SITEID=GEA";
	var Compact = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0056&SITEID=GEA";
	var ContourDoor = Refrigerators;
	var CustomStyle = Refrigerators;
	var Freezers = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=COMMERCIALCATEGORIES&CATEGORY=CA0012&SITEID=GEA";
	var PartialManualDefrost = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0054&SITEID=GEA";
	var SidebySide = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0057&SITEID=GEA";
	var TopFreezer = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0053&SITEID=GEA";
	var UprightFreezer = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0064&SITEID=GEA";
	var ChestFreezer = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0063&SITEID=GEA";
	var WineChiller = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0052&SITEID=GEA";
var RoomAirConditioners = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=SUBCATEGORY&CATEGORY=CA0006&SITEID=GEA";
	var Dehumidifiers = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0007&SITEID=GEA";
	var TwentySixInchAirConditioners = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0034&SITEID=GEA";
	var WindowAirConditioners = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0030&SITEID=GEA";
var SlideIn = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=SUBCATEGORY&CATEGORY=CA0001&SITEID=GEA";
var Spacemaker= Microwaves;
var Spacemaker2="/errors/404.htm";
var SpeedcookOvens = "/advantium/";
	var AdvantiumSpecs = SpeedcookOvens;
	var AdvantiumWow = SpeedcookOvens;
	var AdvantiumModels = SpeedcookOvens +"models/";
	var AdvantiumAbout = SpeedcookOvens +"about/";
	var AdvantiumFAQ = SpeedcookOvens +"faq/";
var SpeedcookOvenDemo = "/errors/404.htm";
var Triton = Dishwashers;
var VentHoodsSystems = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=SUBCATEGORY&CATEGORY=CA0004&SITEID=GEA";
	var DesignerHoods = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0049&SITEID=GEA";
	var StandardHoods = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0048&SITEID=GEA";
	var TelescopicHoods = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0046&SITEID=GEA";
	var SlideOutHoods = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0045&SITEID=GEA";
var Laundry = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=SUBCATEGORY&CATEGORY=CA0002&SITEID=GEA";
var Washers = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=COMMERCIALCATEGORIES&CATEGORY=CA0102&SITEID=GEA";
	var CommercialWasher = "/commercial_laundry/";
	var CommercialDryer = "/commercial_laundry/";
	var CommercialLaundry = "/commercial_laundry/";
	var Dryers = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=COMMERCIALCATEGORIES&CATEGORY=CA0101&SITEID=GEA";
	var WasherDryer = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=SUBCATEGORY&CATEGORY=CA0002&SITEID=GEA";
	var FrontLoadWasher = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0096&SITEID=GEA";
	var TopLoadWasher = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0095&SITEID=GEA";
	var PortableStationaryWasher = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0094&SITEID=GEA";
	var PortableStationaryDryer = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0091&SITEID=GEA";
	var UnitizedWasher = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0020&SITEID=GEA";
	var ElectricDryer = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0089&SITEID=GEA";
	var GasDryer = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0090&SITEID=GEA";
	var FrontLoadDryer = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0101&SITEID=GEA";
	var HighEfficiencyWasher = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0096&CATEGORY=CA0095&FILTERS=FT0014:YES&SITEID=GEA ";

//Profile Washers and Dryers
var ProfileWasher = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0102&FILTERS=FT0070:Profile&SITEID=GEA";

var Harmony = "/harmony/";
var WaterSystems = "/smartwater/";
var Zoneline = "/zoneline/";
var Trivection = "/trivection/";
var TrivectionDouble = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0068&FILTERS=FT0009:Double&FILTERS=FT0004:Trivection&reg;&SITEID=GEA";
var TrivectionSingle = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0068&FILTERS=FT0009:Double&FILTERS=FT0004:Trivection&reg;&SITEID=GEA";
var TrivectionSlidein = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0066&FILTERS=FT0004:Trivection&reg;&SITEID=GEA";
var Innovection = "/trivection/";  // In case an "Innovection" was missed and is still being used somewhere
var CustomStyle = "http://products.geappliances.com/ApplProducts/Dispatcher?REQUEST=RESULTSPAGE&CATEGORY=CA0057&FILTERS=FT0037:YES&SITEID=GEA";

//Monogram Products
var MonogramRefrigerators =	"http://www.monogram.com/selectionguide/index.htm";
var MonogramCookingProducts = "http://www.monogram.com/selectionguide/index.htm";
var MonogramMicrowaves =	"http://www.monogram.com/selectionguide/cooking/microwave.htm";
var MonogramDishwasher = "http://www.monogram.com/selectionguide/dishwashercompactor/dishwasher.htm";
var MonogramChefWasher = "http://www.monogram.com/selectionguide/dishwashercompactor/dishwasher.htm";
var MonogramFreezer = "http://www.monogram.com/selectionguide/refrigerator/refrigeratorfrzall.htm";
var MonogramCompactor =	"http://www.monogram.com/selectionguide/dishwashercompactor/compactor.htm";
var MonogramVentingSystem =	"http://www.monogram.com/selectionguide/index.htm";

/*	Function to encode special characters, as well as anything that's not
	printable ASCII, as HTML entities for safe inclusion in generated HTML.
	
	Usage example:

		document.write('<a href="' + encodeEntities(url) + '">moo</a>\n');
*/
function encodeEntities (s) {
	s = s.replace(/&/g, "&amp;");
	s = s.replace(/</g, "&lt;");
	s = s.replace(/>/g, "&gt;");
	s = s.replace(/\x22/g, "&quot;"); /* double quotation mark */
	s = s.replace(/\x27/g, "&#39;"); /* ASCII apostrophe - &apos; is not universal yet */
	s = s.replace(/[^\x20-\x7e]/g,
		function (ch) {
			return "&#" + ch.charCodeAt(0) + ";";
		}
	); /* escape anything other than ASCII printable */
	return s;
}

/*	based on openLarger() from http://www.gelighting.com/na/scripts/global.js

	One usage example is needed for onclick events, other on events, and
	href="javascript:..." attributes.  Another is needed for <script> elements
	and .js files.

	Usage example --- onclick event (also applies for href="javascript:..."):

		<a target="_blank" href="images/foo.jpg"
			onclick="openNakedImagePopup('images/foo.jpg', 640, 480, 'GE Profile(TM) Washers and Dryers'); return false;">
				view larger photo
		</a>

		Got &, <, >, ', ", or other special characters?

		<a target="_blank" href="images/foo.jpg?foo=1&amp;bar=2"
			onclick="openNakedImagePopup('images/foo.jpg?foo=1&amp;bar=2', 640, 480, 'GE Profile&trade; Washers &amp; Dryers'); return false;">
				view larger photo
		</a>
		
		REMEMBER:
		While this function runs encodeEntities on the imageURL and altText,
		you still need to escape <, >, &, ', and " characters in onclick events
		or any other HTML attribute value (the browser unescapes them, then
		openNakedImagePopup re-escapes them).
		While most browsers are lenient, XHTML validation tools will issue
		warnings or error messages if you do not do this.

	Usage example --- <script> element (also applies for .js files):

		<script type="text/javascript">
			function openPopup () {
				openNakedImagePopup('images/foo.jpg', 640, 480, 'GE Profile(TM) Washers and Dryers');
				// Got special characters?
				openNakedImagePopup('images/foo.jpg?foo=1&bar=2', 640, 480, 'GE Profile\u2122 Washers & Dryers'); // [1] one way
				openNakedImagePopup('images/foo.jpg?foo=1&bar=2', 640, 480, 'GE Profile&trade; Washers &amp; Dryers', true); // [2] another way
				// notice lack of entity escaping here --^ in the URLs.
				// you don't need to entity-escape the URLs in <script>
				// elements or .js files.
			}
		</script>
		<a target="_blank" href="images/foo.jpg" onclick="openPopup(); return false;">
			view larger photo
		</a>

		Got &, <, >, ', ", or other special characters?

		REMEMBER:
		Since browsers do NOT unescape entities in <script> elements like they
		do in HTML attribute values, you do NOT need to do HTML entity escaping
		here.  \ escaping still applies.  See [1] above.
	
		If you don't like looking up Unicode hex values, you can use HTML
		entity escaping instead.  However, within <script> elements and .js
		files, you MUST pass an optional fifth argument of true.  In other
		contexts, such as onclick attributes and javascript: hrefs, you
		MUST NOT pass the optional fifth argument.  (The browser unescapes
		entities in onclick/href attributes, but not in script elements or
		.js files; the optional fifth argument tells openNakedImagePopup
		to *not* perform entity-escaping on the alt text.)
	
*/
var nakedImagePopupWindow;
function openNakedImagePopup(imageURL, width, height, altText, isEscaped) {
	var screenX = Math.round((screen.width - width) / 2);
	var screenY = Math.round((screen.height - height - 60) / 2); /* assume 60px for titlebar, toolbars, other vertical real-estate */
	var features = ( /* parenthesis for multiline expression */
		"width=" + width
		+ ",height=" + height
		+ ",screenX=" + screenX + ",screenY=" + screenY /* Netscape */
		+ ",left=" + screenX + ",top=" + screenY /* IE */
	);
	if (nakedImagePopupWindow && !(nakedImagePopupWindow.closed)) {
		nakedImagePopupWindow.close();
	}
	nakedImagePopupWindow = window.open(null, null, features);
	if (altText != null && !isEscaped) {
		altText = encodeEntities(altText);
	}
	var html = ( /* parenthesis for multiline expression */
		'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n'
		+ '<html>\n'
		+ '<head>\n'
		+ '<title>'
		+ ((altText != null) ? altText : 'Photo')
		+ '</title>\n'
		+ '<style type="text/css">\n'
		+ 'html, body { margin: 0; padding: 0; background-color: white; color: black; }\n'
		+ '</style>\n'
		+ '</head>\n'
		+ '<body>\n'
		+ '<img src="' + encodeEntities(imageURL) + '"\n'
		+ ' width="' + width + '"'
		+ ' height="' + height + '"'
		+ ((altText != null) ? (' alt="' + altText + '"') : "")
		+ ' border="0"'
		+ ' />\n'
		+ '</body>\n'
		+ '</html>\n'
	);
	nakedImagePopupWindow.document.open();
	nakedImagePopupWindow.document.write(html);
	nakedImagePopupWindow.document.close();
}

function openNakedImagePopupLong(imageURL, width, height,imgwidth,imgheight, altText, isEscaped) {
	var screenX = Math.round((screen.width - width) / 2);
	var screenY = Math.round((screen.height - height - 60) / 2); /* assume 60px for titlebar, toolbars, other vertical real-estate */
	var features = ( /* parenthesis for multiline expression */
		"scrollbars = yes, resizable=yes,"
		+ "width=" + width
		+ ",height=" + height
		+ ",screenX=" + screenX + ",screenY=" + screenY /* Netscape */
		+ ",left=" + screenX + ",top=" + screenY /* IE */
	);
	if (nakedImagePopupWindow && !(nakedImagePopupWindow.closed)) {
		nakedImagePopupWindow.close();
	}
	nakedImagePopupWindow = window.open(null, null, features);
	if (altText != null && !isEscaped) {
		altText = encodeEntities(altText);
	}
	var html = ( /* parenthesis for multiline expression */
		'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n'
		+ '<html>\n'
		+ '<head>\n'
		+ '<title>'
		+ ((altText != null) ? altText : 'Photo')
		+ '</title>\n'
		+ '<style type="text/css">\n'
		+ 'html, body { margin: 0; padding: 0; background-color: white; color: black; }\n'
		+ '</style>\n'
		+ '</head>\n'
		+ '<body>\n'
		+ '<img src="' + encodeEntities(imageURL) + '"\n'
		+ ' width="' + imgwidth + '"'
		+ ' height="' + imgheight + '"'
		+ ((altText != null) ? (' alt="' + altText + '"') : "")
		+ ' border="0"'
		+ ' />\n'
		+ '</body>\n'
		+ '</html>\n'
	);
	nakedImagePopupWindow.document.open();
	nakedImagePopupWindow.document.write(html);
	nakedImagePopupWindow.document.close();
}

// stop hiding -->
