/*
	Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/

/*
	This is an optimized version of Dojo, built for deployment and not for
	development. To get sources and documentation, please visit:

		http://dojotoolkit.org
*/

dojo.provide("bma.layers.home");if(!dojo._hasResource["agi.flash.ufo"]){dojo._hasResource["agi.flash.ufo"]=true;dojo.provide("agi.flash.ufo");UFO={req:["movie","width","height","majorversion","build"],opt:["play","loop","menu","quality","scale","salign","wmode","bgcolor","base","flashvars","devicefont","allowscriptaccess","seamlesstabbing"],optAtt:["id","name","align"],optExc:["swliveconnect"],ximovie:"ufo.swf",xiwidth:"215",xiheight:"138",ua:navigator.userAgent.toLowerCase(),pluginType:"",fv:[0,0],foList:[],create:function(FO,id,_1){if(!UFO.uaHas("w3cdom")||UFO.uaHas("ieMac")){return;}UFO.getFlashVersion();UFO.foList[id]=UFO.updateFO(FO);if(typeof _1=="undefined"||_1!="true"){UFO.createCSS("#"+id,"visibility:hidden;");}UFO.domLoad(id,_1);},updateFO:function(FO){if(typeof FO.xi!="undefined"&&FO.xi=="true"){if(typeof FO.ximovie=="undefined"){FO.ximovie=UFO.ximovie;}if(typeof FO.xiwidth=="undefined"){FO.xiwidth=UFO.xiwidth;}if(typeof FO.xiheight=="undefined"){FO.xiheight=UFO.xiheight;}}FO.mainCalled=false;return FO;},domLoad:function(id,_2){if(typeof _2!="undefined"&&_2=="true"){UFO.main(id);}else{var _3=setInterval(function(){if((document.getElementsByTagName("body")[0]!=null||document.body!=null)&&document.getElementById(id)!=null){UFO.main(id);clearInterval(_3);}},250);if(typeof document.addEventListener!="undefined"){document.addEventListener("DOMContentLoaded",function(){UFO.main(id);clearInterval(_3);},null);}}},main:function(id){var _4=UFO.foList[id];if(_4.mainCalled){return;}UFO.foList[id].mainCalled=true;document.getElementById(id).style.visibility="hidden";if(UFO.hasRequired(id)){if(UFO.hasFlashVersion(parseInt(_4.majorversion,10),parseInt(_4.build,10))){if(typeof _4.setcontainercss!="undefined"&&_4.setcontainercss=="true"){UFO.setContainerCSS(id);}UFO.writeSWF(id);}else{if(_4.xi=="true"&&UFO.hasFlashVersion(6,65)){UFO.createDialog(id);}}}document.getElementById(id).style.visibility="visible";},createCSS:function(_5,_6){var _7=document.getElementsByTagName("head")[0];var _8=UFO.createElement("style");if(!UFO.uaHas("ieWin")){_8.appendChild(document.createTextNode(_5+" {"+_6+"}"));}_8.setAttribute("type","text/css");_8.setAttribute("media","screen");_7.appendChild(_8);if(UFO.uaHas("ieWin")&&document.styleSheets&&document.styleSheets.length>0){var _9=document.styleSheets[document.styleSheets.length-1];if(typeof _9.addRule=="object"){_9.addRule(_5,_6);}}},setContainerCSS:function(id){var _a=UFO.foList[id];var _b=/%/.test(_a.width)?"":"px";var _c=/%/.test(_a.height)?"":"px";UFO.createCSS("#"+id,"width:"+_a.width+_b+"; height:"+_a.height+_c+";");if(_a.width=="100%"){UFO.createCSS("body","margin-left:0; margin-right:0; padding-left:0; padding-right:0;");}if(_a.height=="100%"){UFO.createCSS("html","height:100%; overflow:hidden;");UFO.createCSS("body","margin-top:0; margin-bottom:0; padding-top:0; padding-bottom:0; height:100%;");}},createElement:function(el){return (UFO.uaHas("xml")&&typeof document.createElementNS!="undefined")?document.createElementNS("http://www.w3.org/1999/xhtml",el):document.createElement(el);},createObjParam:function(el,_d,_e){var _f=UFO.createElement("param");_f.setAttribute("name",_d);_f.setAttribute("value",_e);el.appendChild(_f);},uaHas:function(ft){var _10=UFO.ua;switch(ft){case "w3cdom":return (typeof document.getElementById!="undefined"&&typeof document.getElementsByTagName!="undefined"&&(typeof document.createElement!="undefined"||typeof document.createElementNS!="undefined"));case "xml":var _11=document.getElementsByTagName("meta");var _12=_11.length;for(var i=0;i<_12;i++){if(/content-type/i.test(_11[i].getAttribute("http-equiv"))&&/xml/i.test(_11[i].getAttribute("content"))){return true;}}return false;case "ieMac":return /msie/.test(_10)&&!/opera/.test(_10)&&/mac/.test(_10);case "ieWin":return /msie/.test(_10)&&!/opera/.test(_10)&&/win/.test(_10);case "gecko":return /gecko/.test(_10)&&!/applewebkit/.test(_10);case "opera":return /opera/.test(_10);case "safari":return /applewebkit/.test(_10);default:return false;}},getFlashVersion:function(){if(UFO.fv[0]!=0){return;}if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){UFO.pluginType="npapi";var _13=navigator.plugins["Shockwave Flash"].description;if(typeof _13!="undefined"){_13=_13.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var _14=parseInt(_13.replace(/^(.*)\..*$/,"$1"),10);var _15=/r/.test(_13)?parseInt(_13.replace(/^.*r(.*)$/,"$1"),10):0;UFO.fv=[_14,_15];}}else{if(window.ActiveXObject){UFO.pluginType="ax";try{var _16=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var _16=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");UFO.fv=[6,0];_16.AllowScriptAccess="always";}catch(e){if(UFO.fv[0]==6){return;}}try{var _16=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(typeof _16=="object"){var _13=_16.GetVariable("$version");if(typeof _13!="undefined"){_13=_13.replace(/^\S+\s+(.*)$/,"$1").split(",");UFO.fv=[parseInt(_13[0],10),parseInt(_13[2],10)];}}}}},hasRequired:function(id){var _17=UFO.req.length;for(var i=0;i<_17;i++){if(typeof UFO.foList[id][UFO.req[i]]=="undefined"){return false;}}return true;},hasFlashVersion:function(_18,_19){return (UFO.fv[0]>_18||(UFO.fv[0]==_18&&UFO.fv[1]>=_19))?true:false;},writeSWF:function(id){var _1a=UFO.foList[id];var _1b=document.getElementById(id);if(UFO.pluginType=="npapi"){if(UFO.uaHas("gecko")||UFO.uaHas("xml")){while(_1b.hasChildNodes()){_1b.removeChild(_1b.firstChild);}var _1c=UFO.createElement("object");_1c.setAttribute("type","application/x-shockwave-flash");_1c.setAttribute("data",_1a.movie);_1c.setAttribute("width",_1a.width);_1c.setAttribute("height",_1a.height);var _1d=UFO.optAtt.length;for(var i=0;i<_1d;i++){if(typeof _1a[UFO.optAtt[i]]!="undefined"){_1c.setAttribute(UFO.optAtt[i],_1a[UFO.optAtt[i]]);}}var _1e=UFO.opt.concat(UFO.optExc);var _1d=_1e.length;for(var i=0;i<_1d;i++){if(typeof _1a[_1e[i]]!="undefined"){UFO.createObjParam(_1c,_1e[i],_1a[_1e[i]]);}}_1b.appendChild(_1c);}else{var _1f="";var _1e=UFO.opt.concat(UFO.optAtt).concat(UFO.optExc);var _1d=_1e.length;for(var i=0;i<_1d;i++){if(typeof _1a[_1e[i]]!="undefined"){_1f+=" "+_1e[i]+"=\""+_1a[_1e[i]]+"\"";}}_1b.innerHTML="<embed type=\"application/x-shockwave-flash\" src=\""+_1a.movie+"\" width=\""+_1a.width+"\" height=\""+_1a.height+"\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\""+_1f+"></embed>";}}else{if(UFO.pluginType=="ax"){var _20="";var _1d=UFO.optAtt.length;for(var i=0;i<_1d;i++){if(typeof _1a[UFO.optAtt[i]]!="undefined"){_20+=" "+UFO.optAtt[i]+"=\""+_1a[UFO.optAtt[i]]+"\"";}}var _21="";var _1d=UFO.opt.length;for(var i=0;i<_1d;i++){if(typeof _1a[UFO.opt[i]]!="undefined"){_21+="<param name=\""+UFO.opt[i]+"\" value=\""+_1a[UFO.opt[i]]+"\" />";}}var _22=window.location.protocol=="https:"?"https:":"http:";_1b.innerHTML="<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\""+_20+" width=\""+_1a.width+"\" height=\""+_1a.height+"\" codebase=\""+_22+"//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+_1a.majorversion+",0,"+_1a.build+",0\"><param name=\"movie\" value=\""+_1a.movie+"\" />"+_21+"</object>";if(_1a["id"]){window[_1a["id"]]=document.getElementById(_1a["id"]);}}}},createDialog:function(id){var _23=UFO.foList[id];UFO.createCSS("html","height:100%; overflow:hidden;");UFO.createCSS("body","height:100%; overflow:hidden;");UFO.createCSS("#xi-con","position:absolute; left:0; top:0; z-index:1000; width:100%; height:100%; background-color:#fff; filter:alpha(opacity:75); opacity:0.75;");UFO.createCSS("#xi-dia","position:absolute; left:50%; top:50%; margin-left: -"+Math.round(parseInt(_23.xiwidth,10)/2)+"px; margin-top: -"+Math.round(parseInt(_23.xiheight,10)/2)+"px; width:"+_23.xiwidth+"px; height:"+_23.xiheight+"px;");var _24=document.getElementsByTagName("body")[0];var _25=UFO.createElement("div");_25.setAttribute("id","xi-con");var _26=UFO.createElement("div");_26.setAttribute("id","xi-dia");_25.appendChild(_26);_24.appendChild(_25);var _27=window.location;if(UFO.uaHas("xml")&&UFO.uaHas("safari")){var _28=document.getElementsByTagName("title")[0].firstChild.nodeValue=document.getElementsByTagName("title")[0].firstChild.nodeValue.slice(0,47)+" - Flash Player Installation";}else{var _28=document.title=document.title.slice(0,47)+" - Flash Player Installation";}var _29=UFO.pluginType=="ax"?"ActiveX":"PlugIn";var _2a=typeof _23.xiurlcancel!="undefined"?"&xiUrlCancel="+_23.xiurlcancel:"";var _2b=typeof _23.xiurlfailed!="undefined"?"&xiUrlFailed="+_23.xiurlfailed:"";UFO.foList["xi-dia"]={movie:_23.ximovie,width:_23.xiwidth,height:_23.xiheight,majorversion:"6",build:"65",flashvars:"MMredirectURL="+_27+"&MMplayerType="+_29+"&MMdoctitle="+_28+_2a+_2b};UFO.writeSWF("xi-dia");},expressInstallCallback:function(){var _2c=document.getElementsByTagName("body")[0];var _2d=document.getElementById("xi-con");_2c.removeChild(_2d);UFO.createCSS("body","height:auto; overflow:auto;");UFO.createCSS("html","height:auto; overflow:auto;");},cleanupIELeaks:function(){var _2e=document.getElementsByTagName("object");var _2f=_2e.length;for(var i=0;i<_2f;i++){_2e[i].style.display="none";for(var x in _2e[i]){if(typeof _2e[i][x]=="function"){_2e[i][x]=null;}}}}};if(typeof window.attachEvent!="undefined"&&UFO.uaHas("ieWin")){window.attachEvent("onunload",UFO.cleanupIELeaks);}}if(!dojo._hasResource["dojox.encoding.base64"]){dojo._hasResource["dojox.encoding.base64"]=true;dojo.provide("dojox.encoding.base64");(function(){var p="=";var tab="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var dxe=dojox.encoding;dxe.base64.encode=function(ba){var s=[],l=ba.length;var rm=l%3;var x=l-rm;for(var i=0;i<x;){var t=ba[i++]<<16|ba[i++]<<8|ba[i++];s.push(tab.charAt((t>>>18)&63));s.push(tab.charAt((t>>>12)&63));s.push(tab.charAt((t>>>6)&63));s.push(tab.charAt(t&63));}switch(rm){case 2:var t=ba[i++]<<16|ba[i++]<<8;s.push(tab.charAt((t>>>18)&63));s.push(tab.charAt((t>>>12)&63));s.push(tab.charAt((t>>>6)&63));s.push(p);break;case 1:var t=ba[i++]<<16;s.push(tab.charAt((t>>>18)&63));s.push(tab.charAt((t>>>12)&63));s.push(p);s.push(p);break;}return s.join("");};dxe.base64.decode=function(str){var s=str.split(""),out=[];var l=s.length;while(s[--l]==p){}for(var i=0;i<l;){var t=tab.indexOf(s[i++])<<18;if(i<=l){t|=tab.indexOf(s[i++])<<12;}if(i<=l){t|=tab.indexOf(s[i++])<<6;}if(i<=l){t|=tab.indexOf(s[i++]);}out.push((t>>>16)&255);out.push((t>>>8)&255);out.push(t&255);}while(out[out.length-1]==0){out.pop();}return out;};})();}if(!dojo._hasResource["agi.base64"]){dojo._hasResource["agi.base64"]=true;dojo.provide("agi.base64");agi.base64={encode:function(str){if(!str){return "";}return dojox.encoding.base64.encode(this.string_to_bytes(str));},decode:function(str){if(!str){return "";}return this.bytes_to_str(dojox.encoding.base64.decode(str));},string_to_bytes:function(str){var _30=[];for(var i=0;i<str.length;i++){_30.push(str.charCodeAt(i));}return _30;},bytes_to_str:function(_31){var str="";dojo.forEach(_31,function(_32){str+=String.fromCharCode(_32);});return str;}};}if(!dojo._hasResource["agi.cookie.NVP"]){dojo._hasResource["agi.cookie.NVP"]=true;dojo.provide("agi.cookie.NVP");agi.cookie.NVP.getValue=function(_33,_34,sep,_35){var _36,_37;_36=_33.indexOf(_35+_34+sep);if(-1==_36){_36=_33.indexOf(_34+sep);if(-1==_36){return null;}_36+=_34.length+sep.length;}else{_36+=_35.length+_34.length+sep.length;}_37=_33.indexOf(_35,_36);if(-1==_37){_37=_33.length;}return _33.substring(_36,_37);};agi.cookie.NVP.toMap=function(s,_38,sep){var map=[];var _39=s.toString().split(_38);for(var i=0;i<_39.length;i++){var _3a=_39[i];if(_3a){var _3b=_3a.split(sep);map[unescape(_3b[0])]=unescape(_3b[1]);}}return map;};agi.cookie.NVP.fromMap=function(map,_3c,sep){var s="";for(var _3d in map){if(typeof map[_3d]=="null"){continue;}else{if(typeof map[_3d]=="function"){continue;}else{s+=escape(_3d)+sep+escape(map[_3d])+_3c;}}}if(s){s=s.substr(0,s.length-1);}return s;};}if(!dojo._hasResource["agi.cookie.AGICookie"]){dojo._hasResource["agi.cookie.AGICookie"]=true;dojo.provide("agi.cookie.AGICookie");agi.cookie.AGICookie.toString=function(){return "AGICookie";};agi.cookie.AGICookie.SUBHOSTS=[[/\.yahoo\./,"_yh"],[/\.msn\./,"_msn"],[/\.aol\.|^aol\./,"_aol"],[/\.target\./,"_tg"]];agi.cookie.AGICookie.SUBPATHS=[[/\/birthday-calendar/,"_bcal"]];agi.cookie.AGICookie.getCookieDomain=function(){var _3e=window.location.hostname.split(".");var idx=_3e.length-2;var tld=_3e.slice(-1);if(tld!="com"&&tld!="net"&&tld!="org"){idx=_3e.length-3;}_3e=_3e.slice(idx);return "."+_3e.join(".");};agi.cookie.AGICookie.getCookieName=function(_3f){var _40=window.location.hostname.split(".");var _41=_3f;var hn="";if(_40.length<3){hn="www";}else{hn=_40[0];}dojo.forEach(agi.cookie.AGICookie.SUBHOSTS,function(_42){if(_42[0].test(window.location.hostname)){_3f+=_42[1];}});dojo.forEach(agi.cookie.AGICookie.SUBPATHS,function(_43){if(_43[0].test(window.location.pathname)){_3f+=_43[1];}});dojo.forEach(["dev","vanilla","work","stage"],function(pfx){if(hn.startswith(pfx)){_3f+="_"+pfx;}});return escape(_3f);};agi.cookie.AGICookie.getCookieValueRaw=function(_44,_45){var c=agi.cookie.AGICookie.getCookie(_44);if(typeof c=="null"){return null;}var v=agi.cookie.NVP.getValue(agi.base64.decode(c),_45,"=","&");if(v){return unescape(v);}return v;};agi.cookie.AGICookie.getCookie=function(_46){var c=agi.cookie.NVP.getValue(dojo.doc.cookie,agi.cookie.AGICookie.getCookieName(_46),"=",";");if(!c){return c;}c=unescape(c);while(c.indexOf("%0A")>-1||c.indexOf("%0a")>-1){c=c.replace(/\%0[aA]/,"");}c=unescape(c);return c;};agi.cookie.AGICookie.setCookie=function(_47,_48,_49,_4a){_47=agi.cookie.AGICookie.getCookieName(_47);var cki=_47+"="+escape(_48)+";";if(_4a){_49="Thursday, 31-Dec-2037 00:01:00 GMT";}if(_49){cki=cki+"expires="+_49+";";}cki=cki+"path=/;domain="+agi.cookie.AGICookie.getCookieDomain();dojo.doc.cookie=cki;};agi.cookie.AGICookie.expireCookie=function(_4b){agi.cookie.AGICookie.setCookie(_4b,"","Friday, 01-Jan-99 00:00:00 GMT");};agi.cookie.AGICookie.getCookieValue=function(_4c,_4d){var v=agi.cookie.AGICookie.getCookieValueRaw(_4c,_4d);if(!v&&_4c=="customer"&&_4d=="name"){v=agi.cookie.AGICookie.getCookieValueRaw(_4c,"email");}if(!v&&_4c=="customer"&&_4d=="name"){v="member";}return v;};agi.cookie.AGICookie.setCookieValue=function(_4e,_4f,_50,_51,_52){var map=null;var c=agi.cookie.AGICookie.getCookie(_4e);if(c){map=agi.cookie.NVP.toMap(agi.base64.decode(c),"&","=");}else{map=[];}map[_4f]=_50;agi.cookie.AGICookie.setCookie(_4e,agi.base64.encode(agi.cookie.NVP.fromMap(map,"&","=")),_51,_52);};}if(!dojo._hasResource["agi.cookie.MagicCookie"]){dojo._hasResource["agi.cookie.MagicCookie"]=true;dojo.provide("agi.cookie.MagicCookie");agi.cookie.MagicCookie.setCookieValue=function(_53,_54,_55){var _56=_55?"mc_p":"mc_s";return agi.cookie.AGICookie.setCookieValue(_56,_53,_54,null,_55);};agi.cookie.MagicCookie.getCookieValue=function(_57){var _58=agi.cookie.AGICookie.getCookieValue("mc_s",_57);if(!_58){_58=agi.cookie.AGICookie.getCookieValue("mc_p",_57);}return _58;};agi.cookie.MagicCookie.delCookieValue=function(_59,_5a){return agi.cookie.MagicCookie.setCookieValue(_59,null,_5a);};}if(!dojo._hasResource["agi.cookie._base"]){dojo._hasResource["agi.cookie._base"]=true;dojo.provide("agi.cookie._base");agi.cookie.toString=function(){return "AGICookie";};agi.cookie.getMemNum=function(){return agi.cookie.AGICookie.getCookieValue("customer","memnum");};agi.cookie.getMemName=function(){return agi.cookie.AGICookie.getCookieValue("customer","name");};agi.cookie.getCustomerEmail=function(){return agi.cookie.AGICookie.getCookieValue("customer","email");};agi.cookie.getCustomerAge=function(){try{var v=agi.cookie.AGICookie.getCookieValue("customer","age");if(!v){v="";}age=parseInt(v);if(age<18){v="";}else{if(age>65){v="65";}}return v;}catch(er){return "";}};agi.cookie.getCustomerGender=function(){try{var v=agi.cookie.AGICookie.getCookieValue("customer","gender");if(!v){v="";}return v.toLowerCase();}catch(er){return "";}};}if(!dojo._hasResource["agi.cookie"]){dojo._hasResource["agi.cookie"]=true;dojo.provide("agi.cookie");}if(!dojo._hasResource["agi.flash.util"]){dojo._hasResource["agi.flash.util"]=true;dojo.provide("agi.flash.util");getCUCustomerStatus=function(){return getCustomerStatus();};getCUCustomerPrevStatus=function(){return getCustomerPrevStatus();};getCUCustomerNumber=function(){var num=getCustomerNumber();if(num=="Unknown"||num=="undefined"){return 0;}else{return num;}};readBillboardFromCookie=function(){try{if(v=agi.cookie.MagicCookie.getCookieValue("bboard")){return v;}else{return setBillboardToCookie(0);}}catch(er){return 0;}};setBillboardToCookie=function(_5b){try{agi.cookie.MagicCookie.setCookieValue("bboard",_5b,"mc_p");return _5b;}catch(er){return 0;}};readOfferStateFromCookie=function(){try{if(v=agi.cookie.MagicCookie.getCookieValue("offerState")){return v;}else{return setOfferStateToCookie(0);}}catch(er){return 0;}};setOfferStateToCookie=function(_5c){try{agi.cookie.MagicCookie.setCookieValue("offerState",_5c);return _5c;}catch(er){return 0;}};readReminderStateFromCookie=function(){try{if(v=agi.cookie.MagicCookie.getCookieValue("reminderState")){return v;}else{return setReminderStateToCookie(0);}}catch(er){return 0;}};setReminderStateToCookie=function(_5d){try{agi.cookie.MagicCookie.setCookieValue("reminderState",_5d);return _5d;}catch(er){return 0;}};setVisitToCookie=function(){try{var _5e=getVisitFromCookie();agi.cookie.MagicCookie.setCookieValue("visit",++_5e);}catch(er){return 0;}};clearVisitFromCookie=function(){agi.cookie.MagicCookie.setCookieValue("visit",0);};getVisitFromCookie=function(){try{if(v=agi.cookie.MagicCookie.getCookieValue("visit")){return v;}else{return 1;}}catch(er){return 1;}};getCustomerSegmentFromCookie=function(){var _5f=getCustomerStatus();var _60=getCustomerPrevStatus();switch(_5f){case "1":return 1;break;case "2":return 1;break;case "3":return 3;break;case "4":return 3;break;case "5":return 5;break;default:return 1;}};getEnv=function(){var env=window.location.hostname.split(".")[0];env=env.replace("1","");env=env.replace("2","");if((env!="dev")&&(env!="work")&&(env!="stage")){env="www";}return env;};cleanupFP9IELeaks=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};};if(dojo.isIE){dojo.addOnUnload(cleanupFP9IELeaks);}dojo.addOnLoad(setVisitToCookie);}if(!dojo._hasResource["dijit._base.manager"]){dojo._hasResource["dijit._base.manager"]=true;dojo.provide("dijit._base.manager");dojo.declare("dijit.WidgetSet",null,{constructor:function(){this._hash={};this.length=0;},add:function(_61){if(this._hash[_61.id]){throw new Error("Tried to register widget with id=="+_61.id+" but that id is already registered");}this._hash[_61.id]=_61;this.length++;},remove:function(id){if(this._hash[id]){delete this._hash[id];this.length--;}},forEach:function(_62,_63){_63=_63||dojo.global;var i=0,id;for(id in this._hash){_62.call(_63,this._hash[id],i++,this._hash);}return this;},filter:function(_64,_65){_65=_65||dojo.global;var res=new dijit.WidgetSet(),i=0,id;for(id in this._hash){var w=this._hash[id];if(_64.call(_65,w,i++,this._hash)){res.add(w);}}return res;},byId:function(id){return this._hash[id];},byClass:function(cls){var res=new dijit.WidgetSet(),id,_66;for(id in this._hash){_66=this._hash[id];if(_66.declaredClass==cls){res.add(_66);}}return res;},toArray:function(){var ar=[];for(var id in this._hash){ar.push(this._hash[id]);}return ar;},map:function(_67,_68){return dojo.map(this.toArray(),_67,_68);},every:function(_69,_6a){_6a=_6a||dojo.global;var x=0,i;for(i in this._hash){if(!_69.call(_6a,this._hash[i],x++,this._hash)){return false;}}return true;},some:function(_6b,_6c){_6c=_6c||dojo.global;var x=0,i;for(i in this._hash){if(_6b.call(_6c,this._hash[i],x++,this._hash)){return true;}}return false;}});(function(){dijit.registry=new dijit.WidgetSet();var _6d=dijit.registry._hash,_6e=dojo.attr,_6f=dojo.hasAttr,_70=dojo.style;dijit.byId=function(id){return typeof id=="string"?_6d[id]:id;};var _71={};dijit.getUniqueId=function(_72){var id;do{id=_72+"_"+(_72 in _71?++_71[_72]:_71[_72]=0);}while(_6d[id]);return dijit._scopeName=="dijit"?id:dijit._scopeName+"_"+id;};dijit.findWidgets=function(_73){var _74=[];function _75(_76){for(var _77=_76.firstChild;_77;_77=_77.nextSibling){if(_77.nodeType==1){var _78=_77.getAttribute("widgetId");if(_78){_74.push(_6d[_78]);}else{_75(_77);}}}};_75(_73);return _74;};dijit._destroyAll=function(){dijit._curFocus=null;dijit._prevFocus=null;dijit._activeStack=[];dojo.forEach(dijit.findWidgets(dojo.body()),function(_79){if(!_79._destroyed){if(_79.destroyRecursive){_79.destroyRecursive();}else{if(_79.destroy){_79.destroy();}}}});};if(dojo.isIE){dojo.addOnWindowUnload(function(){dijit._destroyAll();});}dijit.byNode=function(_7a){return _6d[_7a.getAttribute("widgetId")];};dijit.getEnclosingWidget=function(_7b){while(_7b){var id=_7b.getAttribute&&_7b.getAttribute("widgetId");if(id){return _6d[id];}_7b=_7b.parentNode;}return null;};var _7c=(dijit._isElementShown=function(_7d){var s=_70(_7d);return (s.visibility!="hidden")&&(s.visibility!="collapsed")&&(s.display!="none")&&(_6e(_7d,"type")!="hidden");});dijit.hasDefaultTabStop=function(_7e){switch(_7e.nodeName.toLowerCase()){case "a":return _6f(_7e,"href");case "area":case "button":case "input":case "object":case "select":case "textarea":return true;case "iframe":if(dojo.isMoz){try{return _7e.contentDocument.designMode=="on";}catch(err){return false;}}else{if(dojo.isWebKit){var doc=_7e.contentDocument,_7f=doc&&doc.body;return _7f&&_7f.contentEditable=="true";}else{try{doc=_7e.contentWindow.document;_7f=doc&&doc.body;return _7f&&_7f.firstChild&&_7f.firstChild.contentEditable=="true";}catch(e){return false;}}}default:return _7e.contentEditable=="true";}};var _80=(dijit.isTabNavigable=function(_81){if(_6e(_81,"disabled")){return false;}else{if(_6f(_81,"tabIndex")){return _6e(_81,"tabIndex")>=0;}else{return dijit.hasDefaultTabStop(_81);}}});dijit._getTabNavigable=function(_82){var _83,_84,_85,_86,_87,_88;var _89=function(_8a){dojo.query("> *",_8a).forEach(function(_8b){if((dojo.isIE&&_8b.scopeName!=="HTML")||!_7c(_8b)){return;}if(_80(_8b)){var _8c=_6e(_8b,"tabIndex");if(!_6f(_8b,"tabIndex")||_8c==0){if(!_83){_83=_8b;}_84=_8b;}else{if(_8c>0){if(!_85||_8c<_86){_86=_8c;_85=_8b;}if(!_87||_8c>=_88){_88=_8c;_87=_8b;}}}}if(_8b.nodeName.toUpperCase()!="SELECT"){_89(_8b);}});};if(_7c(_82)){_89(_82);}return {first:_83,last:_84,lowest:_85,highest:_87};};dijit.getFirstInTabbingOrder=function(_8d){var _8e=dijit._getTabNavigable(dojo.byId(_8d));return _8e.lowest?_8e.lowest:_8e.first;};dijit.getLastInTabbingOrder=function(_8f){var _90=dijit._getTabNavigable(dojo.byId(_8f));return _90.last?_90.last:_90.highest;};dijit.defaultDuration=dojo.config["defaultDuration"]||200;})();}if(!dojo._hasResource["agi._base"]){dojo._hasResource["agi._base"]=true;dojo.provide("agi._base");dojo.provide("agi.registry");agi.registry=new dijit.WidgetSet();agi.byId=function(id){return agi.registry.byId(id);};agi.listAll=function(){var cd=["r","i","d",".","e","l","o","s","n","o","c"];var _91=["l","a","v","e"];cd.reverse();_91.reverse();dojo[_91.join("")](cd.join(""))(agi.registry._hash);};agi._loadedResources={};agi._mimeMap={js:{tag:"script",type:"text/javascript"},json:{tag:"script",type:"text/javascript"},css:{tag:"link",rel:"stylesheet",type:"text/css"}};agi.requireJs=function(_92,_93){return agi.require("js."+_92,"js",_93);};agi.requireCss=function(_94,_95){return agi.require("css."+_94,"css",_95);};agi.require=function(_96,_97,_98){var _99=agi._loadedResources[_96];if(_99&&!_98){return _99;}_97=_97||"js";var _9a=agx.currentPage.imghost;var _9b=[_96.split(".").join("/"),_97].join(".");if(_9b.charAt(0)=="/"){_9b=_9b.substring(1);}var uri=[_9a,_9b].join("/");var tag=dojo.doc.createElement(agi._mimeMap[_97].tag);if(_97=="css"){tagi.rel=agi._mimeMap.css.rel;tagi.href=uri;}else{tagi.src=uri;tagi.type=agi._mimeMap[_97].type;}dojo.query("head")[0].appendChild(tag);agi._loadedResources[_96]=tag;return tag;};}if(!dojo._hasResource["agi.classes._base"]){dojo._hasResource["agi.classes._base"]=true;dojo.provide("agi.classes._base");agi.classes.toString=function(){return "AGBase";};agi.classes._idInc=0;agi.classes._idGen=function(){agi.classes._idInc++;return agi.classes._idInc;};}if(!dojo._hasResource["agi.types"]){dojo._hasResource["agi.types"]=true;dojo.provide("agi.types");dojo.provide("agi.types.ExtArray");(function(){var t=agi.types;var d=dojo;t.toString=function(){return "AGTypes";};d.declare("agi.types.ExtArray",[Array],{toString:function(){return this.declaredClass.split(".")[2]+"("+this._arrayMembers().join(", ")+")";},forEach:function(_9c,_9d){d.forEach(this._arrayMembers(),_9c,_9d);return this;},_arrayMembers:function(){var ret=[];for(var i=0;i<this.length;i++){ret.push(this[i]);}return ret;},every:function(_9e,_9f){return d.every(this._arrayMembers(),_9e,_9f);},some:function(_a0,_a1){return d.some(this._arrayMembers(),_a0,_a1);},map:function(_a2,obj){return d.map(this._arrayMembers(),_a2,obj,t.ExtArray);}});d.declare("agi.types.Dict",[],{toString:function(){return this.declaredClass.split(".")[2]+"("+this.keys().join(", ")+")";},fromObject:function(obj){for(m in obj){if(!Object.prototype[m]){this[m]=obj[m];}}},keys:function(){var ret=new t.ExtArray();for(m in this){if(d.isString(m)&&!t.Dict.prototype[m]&&m!="declaredClass"&&m!="preamble"){ret.push(m);}}ret.sort();return ret;},values:function(){var ret=new t.ExtArray();this.keys().forEach(d.hitch(this,function(i){ret.push(this[i]);}));return ret;},items:function(){var _a3=new t.ExtArray();this.keys().forEach(d.hitch(this,function(i){_a3.push([i,this[i]]);}));return _a3;}});})();}if(!dojo._hasResource["agi.util"]){dojo._hasResource["agi.util"]=true;dojo.provide("agi.util");if(typeof $=="undefined"){$=function(i){return dojo.byId(i);};}(function(){var u=agi.util;var t=agi.types;var d=dojo;u.toString=function(){return "AGUtil";};u.dir=function(_a4){ret=[];if(d.isArray(_a4)){for(x in _a4){if(!Array.prototype[x]){ret.push([x,_a4[x]]);}}}else{if(d.isString(_a4)){for(x in _a4){if(!String.prototype[x]){ret.push([x,_a4[x]]);}}}else{d.forEach(_a4,function(x){ret.push([x,_a4[x]]);});}}return ret;};u.getClassName=function(_a5){if(!_a5.declaredClass){if(d.isString(_a5)){return "String";}else{if(d.isArray(_a5)||d.isArrayLike(_a5)){return "Array";}else{if(d.isFunction(_a5)){return "function";}else{if(d.isObject(_a5)){return "Object";}}}}}else{var _a6=_a5.declaredClass.split(".");return _a6[_a6.length-1];}};u.capitalize=function(str){return str.charAt(0).toUpperCase()+str.substring(1);};u.randInt=function(max){return parseInt((parseInt(max,10)*Math.random())/Math.random(),10);};u.escapeQuotAmp=function(_a7){return _a7.toString().replace(/"/g,"&quot;").replace(/&/g,"&amp;");};u.toPx=function(num){return num.toString()+"px";};u.posToString=function(_a8){var _a9=[];var _aa=["x","y","z","t","l","h","w","m","n","top","left","right","height","width","length","breadth","max","min","high","low","zIndex"];var _ab=function(pos,s){if(pos[s]){_a9.push(s+": "+pos[s]);}return;};for(i=0;i<_aa.length;i++){_ab(_a8,_aa[i]);}return "{"+_a9.join(", ")+"}";};u._debounce_waiting=false;u._setDebounceWaitingFalse=function(){u._debounce_waiting=false;};u.debounce=function(x,_ac,_ad){var _ae=3000;if(_ad){_ae=_ad*1000;}if(window.setDoPopAway){setDoPopAway(false);}if(u._debounce_waiting){if(_ac){alert("Please wait while we process your request.");}return false;}else{u._debounce_waiting=true;setTimeout(u._setDebounceWaitingFalse,_ae);return true;}};u.collection_as_array=u.collectionToArray=function(_af){var ret=[];d.forEach(_af,function(i){ret.push(i);});return ret;};u.extend_array=u.extendArray=function(_b0,_b1){d.forEach(_b1,function(i){_b0.push(i);});};u.product_id=u.getProdId=function(_b2){return "productw-"+_b2;};u.isUndef=function(_b3){return (_b3===undefined);};u.isDef=function(_b4){if(_b4){return true;}else{if(_b4===""||_b4===0){return true;}else{return false;}}};u.isNull=function(_b5){return (_b5===null);};u.queryOne=function(_b6,_b7){ret=d.query(_b6,_b7);if(ret.length<=0){return null;}else{return ret[0];}};u.query_one=u.q1=u.queryOne;u.getQueryVariable=function(_b8,_b9){var wv;if(webvars){wv=webvars;}if(_b9){wv=d.queryToObject(_b9);}else{if(!_b9&&!wv){wv=d.queryToQbect(window.location.search.substring(1));}}return wv[_b8];};u.get_query_variable=u.getQv=u.getQueryVariable;u.truncate=function(_ba,_bb,_bc){_bc=_bc?_bc.toLowerCase():"left";if(_ba.length>_bb){var _bd=0;var ret=_ba;if(_bc=="right"){ret=_ba.substring(_ba.length-_bb);ret="..."+ret;}else{if(_bc=="left"){ret=_ba.substring(_bd,_ba.indexOf(" ",_bb));ret+="...";}}}else{ret=_ba;}return ret;};u.trunc=u.truncate;u.get_friendly_path=u.getFriendlyPath=function(){return d.doc.location.pathname.split(".pd")[1];};u.set_options=u.setOptions=function(_be,_bf){_be.options.length=0;var _c0=agi.html._buildOptions(_bf);var i=0;var o;for(o=0;o<_c0.length;o++){_be.options[i]=_c0[o];i++;}};u._build_options=u._buildOptions=function(_c1){var _c2=[];var _c3=0;var t;for(t=0;t<_c1.length;t++){var _c4=_c1[t][1];var _c5=_c1[t][0];var o=new Option(_c5,_c4);_c2[_c2.length]=o;_c3++;}if(_c3>1){_c2.unshift(new Option("",""));}return _c2;};u.show=function(_c6,_c7){d.style(_c6,{display:_c7?_c7:"block"});};u.hide=function(_c8){d.style(_c8,{display:"none"});};u.toggleDisplay=function(_c9){if(d.style(_c9,"display")=="none"){d.style(_c9,{display:"block"});}else{d.style(_c9,{display:"none"});}};u.toggle_block=function(_ca,_cb,_cc,_cd){if(_cc&&_cd){var _ce=_ca.className;if(_ce.indexOf(_cc)>-1){d.removeClass(_ca,_cc);d.addClass(_ca,_cd);}else{d.removeClass(_ca,_cd);d.addClass(_ca,_cc);}}u.toggleDisplay(_cb);};u.toggleBlock=u.toggle_block;u.get_position=u.getPosition=function(_cf){return d.coords(_cf,true);};u.getAbsolutePosition=function(_d0){return d._abs(_d0,true);};u.isUndefined=function(it){return ((typeof (it)=="undefined")&&(it===undefined));};u.getNameInObj=function(ns,_d1){if(!ns){ns=d.global;}for(var x in ns){if(ns[x]===_d1){return x.toString();}}return null;};u.forward=function(_d2){return function(){return this[_d2].apply(this,arguments);};};u.shallowCopy=function(obj,_d3){var i,ret;if(obj===null){return null;}if(d.isObject(obj)){ret=new obj.constructor();for(i in obj){if(u.isUndefined(ret[i])){ret[i]=_d3?u.shallowCopy(obj[i],_d3):obj[i];}}}else{if(d.lang.isArray(obj)){ret=[];for(i=0;i<obj.length;i++){ret[i]=_d3?u.shallowCopy(obj[i],_d3):obj[i];}}else{ret=obj;}}return ret;};u.errorToString=function(_d4){if(!typeof _d4.message=="undefined"){return _d4.message;}else{if(!typeof _d4.description=="undefined"){return _d4.description;}else{return _d4;}}};u.raise=function(_d5,_d6){if(_d6){_d5=_d5+": "+u.errorToString(_d6);}else{_d5=u.errorToString(_d5);}throw _d6||new Error(_d5);};u.keyList=function(obj){var ret=new t.ExtArray();for(k in obj){if(d.isString(k)){ret.push(k);}}ret.sort();return ret;};u.enumerate=function(arr){var ret=new t.ExtArray();for(var i=0;i<arr.length;i++){ret.push([i,arr[i]]);}return ret;};u.objToDict=function(obj){var ret=new t.Dict();ret.fromObject(obj);return ret;};})();(function(){var arr=Array.prototype;var d=dojo;arr.indexOf=function(obj){for(var i=0;i<this.length;i++){if(this[i]==obj){return i;}}return -1;};arr.contains=function(obj){return this.indexOf(obj)>-1;};arr.remove=function(idx){return this.splice(idx,1);};arr.append=function(_d7){return this.push(_d7);};arr.extend=function(_d8){d.forEach(_d8,d.hitch(this,function(i){this.push(i);}));};})();(function(){var str=String.prototype;str.startswith=function(_d9){return this.match("^"+_d9)==_d9;};str.endswith=function(_da){return this.match(_da+"$")==_da;};str.contains=function(_db){return this.match(_db)!=null;};str.isdigit=function(_dc){if(this=="0"){return true;}else{var _dd=_dc||10;var val=parseInt(this,_dd);if((val===0)||(val.toString()=="NaN")){return false;}else{return true;}}};})();}if(!dojo._hasResource["agi.classes.Named"]){dojo._hasResource["agi.classes.Named"]=true;dojo.provide("agi.classes.Named");dojo.declare("agi.classes.Named",null,{toString:function(){var _de=this.id||"<NO ID>";return ["[",agi.util.getClassName(this),", id=",(this.id||"<NO ID>"),"]"].join("");}});}if(!dojo._hasResource["agi.classes.Identified"]){dojo._hasResource["agi.classes.Identified"]=true;dojo.provide("agi.classes.Identified");dojo.declare("agi.classes.Identified",[agi.classes.Named],{constructor:function(){this._getId();},_getId:function(){if(!this._isIdentified){this.id=agi.classes._idGen();agi.registry.add(this);this._isIdentified=true;}}});}if(!dojo._hasResource["agi.classes.Adopter"]){dojo._hasResource["agi.classes.Adopter"]=true;dojo.provide("agi.classes.Adopter");dojo.declare("agi.classes.Adopter",[agi.classes.Identified],{constructor:function(_df){if(dojo.isObject(_df)){dojo.mixin(this,_df);this.postMixInProperties();}},postMixInProperties:function(){return;}});}if(!dojo._hasResource["agi.classes.Controller"]){dojo._hasResource["agi.classes.Controller"]=true;dojo.provide("agi.classes.Controller");dojo.declare("agi.classes.Controller",[agi.classes.Adopter],function(){var _e0={};dojo.mixin(_e0,{__culprit__:"$Author: dbuch $"});return _e0;}());}if(!dojo._hasResource["agi.classes._Mixin"]){dojo._hasResource["agi.classes._Mixin"]=true;dojo.provide("agi.classes._Mixin");dojo.declare("agi.classes._Mixin",[agi.classes.Controller],{__culprit__:"$Author: dbuch $"});}if(!dojo._hasResource["agi.flash.HomepageMixin"]){dojo._hasResource["agi.flash.HomepageMixin"]=true;dojo.provide("agi.flash.HomepageMixin");dojo.declare("agi.flash.HomepageMixin",[agi.classes._Mixin],{__culprit__:"$Author$",constructor:function(){this.initCorpAd();},initCorpAd:function(){if(!dojo.byId("agi-ad3")){return;}var fo3={movie:imghost+"/agbeta/ecards/"+flashCorpAd,id:"flash_admodule",name:"flash_admodule",width:"300",height:"128",swliveconnect:"true",majorversion:"8",build:"0",allowscriptaccess:"always",wmode:"opaque"};UFO.create(fo3,"agi-ad3","true");}});}if(!dojo._hasResource["agi.livechat"]){dojo._hasResource["agi.livechat"]=true;dojo.provide("agi.livechat");dojo.declare("agi.livechat.KanaLiveChat",[agi.classes.Identified],{gIChannelID:"Default",gServer:"responselive03.kanaondemand.com",gAttachedData:"<Sample Test>",bEnterOnQueuePage:false,prefillValues:{CUSTOMER_NAME:"",CUSTOMER_QUERY:"",CUSTOMFIELD1:""},agentOnlyValues:{PAGE_URL:"Page URL",PAGE_TITLE:"Page Title",CUSTOMER_ID:"Customer"},HBUsePageContents:false,gUseDynamicStartPage:true,gDSPLauncherPageName:"./responseLiveLauncher.html",gChatWindowWidth:400,gChatWindowHeight:500,gChatWindowProperties:"width="+400+",height="+500+",menubar=no,location=no,directories=no,status=no,toolbar=no,scrollbars=auto,resizable=yes,screenX=10,screenY=10,left=10,top=10",gHTTP:"http://",gHTTPS:"https://",constructor:function(_e1){dojo.mixin(this,_e1);if(_e1.prefill){for(var k in _e1.prefill){if(_e1.prefill[k]){this.prefillValues[k]=_e1.prefill[k];}}}if(_e1.agentOnly){for(var k in _e1.agentOnly){if(_e1.agentOnly[k]){this.agentOnlyValues[k]=_e1.agentOnly[k];}}}},startChat:function(){this._startChat(this.gIChannelID,this.gServer,this.gAttachedData,this.prefillValues,this.agentOnlyValues,this.bEnterOnQueuePage);},startChatAndCobrowse:function(){this._startChatAndCobrowse(this.gIChannelID,this.gServer,this.gAttachedData,this.prefillValues,this.agentOnlyValues,this.bEnterOnQueuePage);},startChatWithEscalation:function(){this._startChatWithEscalation(this.gIChannelID,this.gServer,this.gAttachedData,this.prefillValues,this.agentOnlyValues,this.bEnterOnQueuePage);},_startChat:function(_e2,_e3,_e4,_e5,_e6,_e7){var _e8="CHAT_ONLY";this.launchChat(_e2,_e3,_e4,_e5,_e6,_e7,_e8);},_startChatAndCobrowse:function(_e9,_ea,_eb,_ec,_ed,_ee){var _ef="COBROWSE";this.launchChat(_e9,_ea,_eb,_ec,_ed,_ee,_ef);},_startChatWithEscalation:function(_f0,_f1,_f2,_f3,_f4,_f5){var _f6="COBROWSE_ESCALATION";this.launchChat(_f0,_f1,_f2,_f3,_f4,_f5,_f6);},launchChat:function(_f7,_f8,_f9,_fa,_fb,_fc,_fd){this.openInitialWindow();this.finishLaunchingChat(_f7,_f8,_f9,_fa,_fb,_fc,_fd);},finishLaunchingChat:function(_fe,_ff,_100,_101,_102,_103,_104){var _105=this.getChatWindow();this.saveChatParameters(_105,_fe,_ff,_100,_101,_102,_103,_104);if(this.alreadyConavigating()){this.handleRecursiveLaunch(_fe,_ff,_105);return;}if(this.browserDoesNotSupportDOM2()||this.isIEonMac()){this.handleUnsupportedBrowser(_fe,_ff,_105);return;}if(!this.areCookiesEnabled()){this.handleDisabledCookies(_fe,_ff,_105);return;}if(window.location.protocol=="https:"){this.createAndSubmitForm();}else{this.checkSSLEnabledAndSubmit(_fe,_ff);}},createAndSubmitForm:function(){var _106=this.getChatWindow();var _107=this.createForm(_106.serverName,_106);if(typeof (this.gUseDynamicStartPage)!="undefined"&&this.gUseDynamicStartPage){this.addFormField(_107,_106,"DSP_LAUNCHER_PAGE_NAME",this.gDSPLauncherPageName);}this.addFormField(_107,_106,"CHAT_WINDOW_WIDTH",this.gChatWindowWidth);this.addFormField(_107,_106,"CHAT_WINDOW_PROPERTIES",this.gChatWindowProperties);this.addFormField(_107,_106,"ICHANNEL_ID",_106.iChannel);this.addFormField(_107,_106,"ATTACHED_DATA",_106.attachedData);this.addFormField(_107,_106,"ENTER_ON_QUEUE_PAGE",_106.enterOnQueuePage);this.addFormField(_107,_106,"CHAT_LAUNCH_MODE",_106.chatLaunchMode);this.addFormField(_107,_106,"AGENT_VISIBLE_DATA",this.createAgentVisibleDataString(_106.agentOnlyValues));this.addFormField(_107,_106,"REFERRER_URL",window.location.href);var _108=_106.prefillValues;for(prefillItem in _108){this.addFormField(_107,_106,prefillItem,_108[prefillItem]);}_107.submit();},openInitialWindow:function(){var _109=window.open("",this.getChatWindowName(),this.getWinProperties());_109.document.write("<html><body></body></html>");_109.document.close();this.setChatWindow(_109);this.origChatWindow=_109;},createForm:function(_10a,win){var _10b=win.document.createElement("form");_10b.method="post";_10b.target="_self";_10b.action=this.gHTTPS+_10a+"/CONAV/CHAT/ChatPreLaunch";win.document.body.appendChild(_10b);return _10b;},DATA_SEPARATOR:"_HB_",createAgentVisibleDataString:function(_10c){var _10d="";for(agentItem in _10c){if(this.isNonEmptyString(_10d)){_10d+=this.DATA_SEPARATOR;}_10d+=agentItem+this.DATA_SEPARATOR+_10c[agentItem];}return _10d;},addFormField:function(_10e,win,name,_10f){if(!this.isNonEmptyString(name)||!this.isNonEmptyString(_10f)){return;}var _110=win.document.createElement("input");_110.type="hidden";_110.name=name;_110.value=_10f;_10e.appendChild(_110);},alreadyConavigating:function(){return (typeof (isHipboneSharedWindow)!="undefined");},handleRecursiveLaunch:function(_111,_112,win){win.location.href=this.gHTTPS+_112+"/CONAV/chat/errorpages/recursiveConav.jsp?ICHANNEL_ID="+_111;},browserDoesNotSupportDOM2:function(){return (null==document.getElementById);},handleUnsupportedBrowser:function(_113,_114,win){win.location.href=this.gHTTPS+_114+"/CONAV/CHAT/ChatPreLaunch?ICHANNEL_ID="+_113;},areCookiesEnabled:function(){var time=(new Date()).getTime();this.setTestCookie(time);if(this.theCookieIsSet(time)){this.removeTestCookie(time);return true;}return false;},setTestCookie:function(_115){document.cookie="hbcookietest="+_115;},theCookieIsSet:function(_116){var _117=document.cookie;return (this.isNonEmptyString(_117)&&_117.indexOf(_116)>-1);},removeTestCookie:function(_118){document.cookie="hbcookietest="+_118+"; expires=Fri, 02-Jan-1970 00:00:00 GMT";},handleDisabledCookies:function(_119,_11a,win){win.location.href=this.gHTTP+_11a+"/CONAV/chat/errorpages/cookiesDisabled.jsp?ICHANNEL_ID="+_119;},checkSSLEnabledAndSubmit:function(_11b,_11c){this.createAndSubmitForm();var _11d=new Image(1,1);_11d.onerror=dojo.hitch(this,function(){this.handleChatNoSSL(_11b,_11c);});_11d.src=this.gHTTPS+_11c+"/CONAV/HTD/Default/shared/images/blank.gif?time="+(new Date()).getTime();},handleChatNoSSL:function(_11e,_11f){var link=this.gHTTP+_11f+"/CONAV/chat/errorpages/sslDisabled.jsp?ICHANNEL_ID="+_11e;window.open(link,this.getChatWindowName(),this.getWinProperties());this.getChatWindow().close();},saveChatParameters:function(_120,_121,_122,_123,_124,_125,_126,_127){_120.iChannel=_121;_120.serverName=_122;_120.attachedData=_123;_120.prefillValues=_124;_120.agentOnlyValues=_125;_120.enterOnQueuePage=_126;_120.chatLaunchMode=_127;},setAOLChatWindow:function(_128){this.setChatWindow(_128);this.finishLaunchingChat(iChannel,serverName,attachedData,prefillValues,agentOnlyValues,enterOnQueuePage,chatLaunchMode);},gChatLaunchWindow:null,setChatWindow:function(_129){window.gChatLaunchWindow=_129;},getChatWindow:function(){return window.gChatLaunchWindow;},getChatWindowName:function(){return "_blank";},getWinProperties:function(){return this.gChatWindowProperties;},isAOL:function(){return (navigator.appVersion.toLowerCase().indexOf("aol")!=-1);},isInternetExplorer:function(){return (navigator.userAgent.toLowerCase().indexOf("msie")!=-1);},isMacKana:function(){return (navigator.userAgent.toLowerCase().indexOf("mac")!=-1);},isIEonMac:function(){return (this.isInternetExplorer()&&this.isMacKana());},isNonEmptyString:function(str){if(null==str||str==""){return false;}return true;},goToAfterLaunchUrl:function(){if(typeof (window.gAfterLaunchURL)=="undefined"){return;}window.location.href=window.gAfterLaunchURL;}});}if(!dojo._hasResource["bma.livechat"]){dojo._hasResource["bma.livechat"]=true;dojo.provide("bma.livechat");bma.livechat.url="chat.imgag.com";bma.livechat.channels={"help":"EN74Ay5078495"};bma.livechat.getChannel=function(){return bma.livechat.channels["help"];};dojo.declare("bma.livechat.KanaLiveChat",[agi.livechat.KanaLiveChat],{agentOnlyValues:{PAGE_URL:"www.bluemountain.com",PAGE_TITLE:"BlueMountain.com",CUSTOMER_ID:"Blue Mountain Customer"}});}if(!dojo._hasResource["agi.go.popup"]){dojo._hasResource["agi.go.popup"]=true;dojo.provide("agi.go.popup");var glbStdFeatures="width=400,height=320,resizable=yes,scrollbars=yes,toolbar=no";var glbStdFeaturesExcSize="resizable=yes,scrollbars=yes,toolbar=no";OpenNewWindow=function(url,_12a,_12b,bar){var _12c=window.open(url,"descr","toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,copyhistory=no,width="+_12a+",height="+_12b+",scrollbars="+bar);};agi.go.popup.open=function(_12d){var _12e={url:"/",name:"agipopup",toolbar:"no",location:"no",directories:"no",status:"no",menubar:"no",resizable:"no",copyhistory:"no",width:300,height:300,scrollbars:"no"};dojo.mixin(_12e,_12d);var _12f=window.open(_12e.url,_12e.name,"toolbar="+_12e.toolbar+","+"location="+_12e.location+","+"status="+_12e.status+","+"resizable="+_12e.resizable+","+"copyhistory="+_12e.copyhistory+","+"width="+_12e.width+","+"height="+_12e.height+","+"scrollbars="+_12e.scrollbars);return _12f;};agi.go.popup.closeAndGo=function(url){window.opener.location.href=url;window.close();};openAddressPop=function(){var _130=window.open(addURL,"AddressBook",glbStdFeatures);_130.focus();};openFavoritesPop=function(){var _131=window.open(favLink,"AddFavorite",glbStdFeatures);_131.focus();};openScrapbookPop=function(){var _132=window.open(scrapLink,"SaveScrap",glbStdFeatures);_132.focus();};openPrintPop=function(_133){var _134=window.open(ahost+"/printpopup.pd?productNumber="+prodNumber,"Print","toolbar=no,scrollbar=no,width=400,height=400,resizable");};openViewPhotoPop=function(_135){var _136=window.open(ahost+"/viewphoto.pd?"+photoVars,"ViewPhoto","toolbar=no,scrollbar=no,width=400,height=400,resizable");};openInvVcsPop=function(){var _137=window.open("addtocalendar.pd?e="+eventNum+"&i="+itemNum+"&m="+memberNum,"Instructions","width=430,height=440,top=25,left=25,resizable=1,scrollbars=1");_137.focus();};function openAddressPop(){aWindow=window.open(addURL,"AddressBook",glbStdFeatures);aWindow.focus();};openAddressPop2=function(w,h){if(!w){w=562;}if(!h){h=460;}var _138="width="+w+",height="+h+",resizable=yes,scrollbars=yes,toolbar=no";aWindow=window.open(addURL,"AddressBook",_138);aWindow.focus();};openMessagePop=function(){aWindow=window.open(ahost+"/share/message.pd?path="+pathNumber,"SuggestedMessages",glbStdFeatures);aWindow.focus();};openMessagePop2=function(){aWindow=window.open(ahost+"/suggest/popup.pd?"+nav,"SuggestedMessages",glbStdFeatures);aWindow.focus();};openRecipePop=function(){rWindow=window.open(ahost+"/share/recipe.pd?path="+pathNumber+"&prodnum="+productNumber,"RecipeGreeting",glbStdFeatures);rWindow.focus();};openGiftPop=function(){giftWindow=window.open(partnerUrl,"GiftPickup",config="width=540,height=320,dependent=1,scrollbars=yes,resizable=yes");giftWindow.focus();};addAllFromQuickList=function(){intQLLength=document.orderForm.quicklist.length;for(i=0;i<intQLLength;i++){document.orderForm.quicklist.options[i].selected=true;}};}if(!dojo._hasResource["bma.go.popup"]){dojo._hasResource["bma.go.popup"]=true;dojo.provide("bma.go.popup");bma.go.popup=agi.go.popup;bma.go.popup.open=function(_139){var _13a={url:"/",name:"bmapopup",toolbar:"no",location:"no",directories:"no",status:"no",menubar:"no",resizable:"no",copyhistory:"no",width:300,height:300,scrollbars:"no"};dojo.mixin(_13a,_139);var _13b=window.open(_13a.url,_13a.name,"toolbar="+_13a.toolbar+","+"location="+_13a.location+","+"status="+_13a.status+","+"resizable="+_13a.resizable+","+"copyhistory="+_13a.copyhistory+","+"width="+_13a.width+","+"height="+_13a.height+","+"scrollbars="+_13a.scrollbars);return _13b;};bma.go.popup.livechat=function(){dojo.publish("bma/livechat/show");return false;};bma.go.popup.closeAndGo=function(url){window.opener.location.href=url;window.close();};}if(!dojo._hasResource["bma.controllers.KanaLiveChat"]){dojo._hasResource["bma.controllers.KanaLiveChat"]=true;dojo.provide("bma.controllers.KanaLiveChat");dojo.declare("bma.controllers.KanaLiveChat",[agi.classes.Identified],{constructor:function(){dojo.subscribe("bma/livechat/show",dojo.hitch(this,this.openChat));},openChat:function(){this.startChat();},startChat:function(_13c){var _13d={};_13d.gIChannelID=bma.livechat.getChannel();_13d.gServer=bma.livechat.url;var _13e=agi.cookie.AGICookie.getCookieValue("customer","email");var name=agi.cookie.AGICookie.getCookieValue("customer","name");var _13f=agi.cookie.AGICookie.getCookieValue("customer","guest");if(_13e&&!_13f){_13d.prefill={"CUSTOMER_NAME":name,"CUSTOMER_EMAIL":_13e};}_13d.agentOnly={"CUSTOMER_ID":_13e,"PAGE_URL":window.location,"PAGE_TITLE":document.title};this.chat=new bma.livechat.KanaLiveChat(_13d);this.chat.startChatWithEscalation();}});}if(!dojo._hasResource["bma.controllers.StandardPage"]){dojo._hasResource["bma.controllers.StandardPage"]=true;dojo.provide("bma.controllers.StandardPage");dojo.declare("bma.controllers.StandardPage",[agi.classes.Controller],{constructor:function(){this.livechat=new bma.controllers.KanaLiveChat();}});}if(!dojo._hasResource["agi.widget.Carousel"]){dojo._hasResource["agi.widget.Carousel"]=true;dojo.provide("agi.widget.Carousel");dojo.declare("agi.widget.Carousel",[agi.classes.Identified],{items:[],width:0,container_width:0,node:null,position:0,min_left:0,left_button:null,right_button:null,wrap:false,flip_count:1,view_count:3,row_count:1,page:1,pages:1,class_base:null,moving:false,hide_buttons:false,right_button_always_on:false,fade_buttons:true,ANIMATION_DURATION:700,constructor:function(_140){if(typeof _140=="object"){dojo.mixin(this,_140);}else{this.legacy_args.apply(this,arguments);}var _141=dojo.query("."+this.class_base+"-container");if(_141.length==1){this.node=_141[0];}else{return;}try{this.left_button=dojo.query("."+this.class_base+"-left")[0];if(this.fade_buttons){dojo._setOpacity(this.left_button,0.5);}dojo.style(this.left_button,{cursor:"default"});}catch(e){}try{this.right_button=dojo.query("."+this.class_base+"-right")[0];}catch(e){}if(this.left_button){dojo.style(this.left_button,{cursor:"pointer"});dojo.connect(this.left_button,"onclick",this,this.scroll_left);}if(this.right_button){dojo.style(this.right_button,{cursor:"pointer"});dojo.connect(this.right_button,"onclick",this,this.scroll_right);}this.position_items();},position_items:function(){this.items=dojo.query("> li",this.node);this.pages=Math.ceil((this.items.length/this.row_count)/this.flip_count);this.width=dojo.marginBox(this.items[0]).w;if(dojo.isSafari){var css=dojo.getComputedStyle(this.items[0]);var _142=dojo._toPixelValue(this.items[0],css.marginRight);var _143=dojo._toPixelValue(this.items[0],css.marginLeft);this.width+=_142-_143;}if(this.width==0){var _144=dojo.style(this.items[0]);this.width=this.make_int(_144.width)+this.make_int(_144.marginLeft)+this.make_int(_144.marginRight)+this.make_int(_144.paddingLeft)+this.make_int(_144.paddingRight);}if(this.items.length<=this.view_count&&this.hide_buttons){dojo.style(this.left_button,{visibility:"hidden"});dojo.style(this.right_button,{visibility:"hidden"});}else{dojo.style(this.left_button,{visibility:"visible"});dojo.style(this.right_button,{visibility:"visible"});}this.min_left=-1*this.width*(this.items.length/this.row_count-this.view_count);this.min_left=(Math.min(this.min_left,0));var _145=(this.width*this.items.length+50)/this.row_count;dojo.style(this.node,{width:_145+"px"});this.container_width=_145;var _146=this.items.length%this.view_count;var _147=0;if(_146>0){_147=this.view_count-_146;}for(var i=0;i<_147;i++){dojo.create("li",{className:this.items[0].className,style:"visibility: hidden;"},this.node);_145+=this.width;this.min_left-=this.width;}if(this.wrap&&this.items.length>this.view_count){for(var i=0;i<this.view_count;i++){var _148=dojo.clone(this.items[i]);dojo.place(_148,this.node);_145+=this.width;this.min_left-=this.width;}}dojo.style(this.node,{width:_145+"px"});this.reset();},legacy_args:function(_149,_14a,_14b,wrap,_14c,_14d){if(!_14a){this.view_count=3;}else{this.view_count=_14a;}if(!_14b){this.flip_count=this.view_count;}else{this.flip_count=_14b;}if(!wrap){this.wrap=false;}else{this.wrap=wrap;}if(!_14c){this.hide_buttons=false;}else{this.hide_buttons=_14c;}if(!_14d){this.row_count=1;}else{this.row_count=_14d;}this.class_base=_149;},make_int:function(str){return str.replace(/\D/g,"")*1;},scroll_left:function(evt){if(evt!=null){dojo.stopEvent(evt);}if(this.moving||this.items.length<=this.view_count){return;}if(this.wrap&&this.position==0){this.position=this.min_left;dojo.style(this.node,{left:this.position+"px"});}if(this.position<0){this.scroll_animation(Math.min(0,this.position+(this.width*this.flip_count)));this.fix_pages(this.page-1);}},scroll_right:function(evt){if(evt!=null){dojo.stopEvent(evt);}if(this.moving||this.items.length<=this.view_count){return;}if(this.position>=this.min_left){this.scroll_animation(Math.max(this.min_left,this.position-(this.width*this.flip_count)));this.fix_pages(this.page+1);}},scroll_animation:function(_14e,wrap){if(!wrap){wrap=false;}this.position=_14e;this.fix_buttons();if(this.wrap&&(this.position==this.min_left)){on_end=dojo.hitch(this,this.reset);}else{on_end=dojo.hitch(this,function(){this.moving=false;});}dojo.anim(this.node,{left:_14e},this.ANIMATION_DURATION,null,on_end);this.moving=true;},fix_buttons:function(){if(!this.wrap&&this.position==0){dojo.style(this.left_button,{cursor:"default"});if(this.fade_buttons){dojo._setOpacity(this.left_button,0.5);}}else{dojo.style(this.left_button,{cursor:"pointer"});if(this.fade_buttons){dojo._setOpacity(this.left_button,1);}}if(!this.wrap&&this.position==this.min_left){dojo.style(this.right_button,{cursor:"default"});if(this.fade_buttons){dojo._setOpacity(this.right_button,0.5);}}else{dojo.style(this.right_button,{cursor:"pointer"});if(this.fade_buttons){dojo._setOpacity(this.right_button,1);}}if(this.right_button_always_on==true){dojo.style(this.right_button,{cursor:"pointer"});if(this.fade_buttons){dojo._setOpacity(this.right_button,1);}}},fix_pages:function(page){this.page=Math.max(0,Math.min(page,this.pages));var _14f=this.class_base+"-pages";var _150=dojo.query("li",_14f);_150.removeClass("agi-scroll-on");_150.addClass("agi-scroll-off");this.on_id="#agi-scroll-page-"+(this.page-1);this.on_node=dojo.query("#"+this.class_base+"-page-"+(this.page),_14f);this.on_node.addClass("agi-scroll-on");this.on_node.removeClass("agi-scroll-off");},reset:function(){this.moving=false;this.node.style.left="0px";this.position=0;this.fix_pages(1);this.fix_buttons();}});}if(!dojo._hasResource["bma.controllers.FacebookBirthday"]){dojo._hasResource["bma.controllers.FacebookBirthday"]=true;dojo.provide("bma.controllers.FacebookBirthday");dojo.declare("bma.controllers.FacebookBirthday",[bma.controllers.StandardPage],{fb_reminders:null,constructor:function(){dojo.subscribe("agi/facebook/reminders/show",dojo.hitch(this,this.facebook_carousel));},facebook_carousel:function(){var _151={class_base:"agi-fb-birthday",view_count:4,flip_count:4,wrap:false,hide_buttons:false,row_count:1};if(agx.currentPage.facebookBirthdaySettings){dojo.mixin(_151,agx.currentPage.facebookBirthdaySettings);}if(dojo.query(".agi-fb-birthday-container").length>0){this.fb_reminders=new agi.widget.Carousel(_151);}}});}if(!dojo._hasResource["bma.controllers.Home"]){dojo._hasResource["bma.controllers.Home"]=true;dojo.provide("bma.controllers.Home");dojo.declare("bma.controllers.Home",[bma.controllers.FacebookBirthday],{newsletter:null,signup:null,newsletter_open:false,ANIMATION_DURATION:250,constructor:function(){}});}dojo.publish("/bma.layers.home/loaded/");

