if(!a10){var a10={};
}var param="";
a10.ajax={};
a10.anim={};
a10.browser={};
a10.event={};
a10.util={};
a10.array={};
a10.simulate={};
a10.element={};
a10.form={};
a10.logToNativeConsole=false;
a10.logToDebugPane=false;
a10.debugPaneId="_ask_debug";
function $(A){return(typeof A=="string")?document.getElementById(A):A;
}function $F(B){var A=document.getElementsByName(B);
if(A&&A.length>0){return A[0].value;
}return"";
}a10.initDebugPane=function(){if((typeof (window)!="undefined"&&window.console&&window.console.log)||(typeof (opera)!="undefined"&&opera.postError)){a10.printToNativeConsole=true;
}var A="document.getElementById('"+a10.debugPaneId+"').style.display='none'";
if(a10.browser.isIE6()){document.write('<div id="'+a10.debugPaneId+'" style="position:absolute;left:0px;bottom:0px;width:100%;z-index:10;height:130px;color:green;overflow:auto;background-color:#FFF;border-top:solid 5px #000"><input type="button" name="close" value="Close" style="right:0px;top:0px;position:absolute;width:100px" onclick="'+A+'"></div>');
}else{document.write('<div id="'+a10.debugPaneId+'" style="position:fixed;bottom:0px;left:0px;width:100%;height:130px;color:green;overflow:auto;background-color:#FFF;border-top:solid 5px #000"><input type="button" name="close" value="Close" style="right:0px;top:0px;position:absolute;width:100px" onclick="'+A+'"></div>');
}a10.logToDebugPane=true;
};
a10.debug=function(B){if(a10.logToDebugPane){var A=document.createElement("span");
A.innerHTML="DEBUG: "+B;
$(a10.debugPaneId).appendChild(A);
$(a10.debugPaneId).appendChild(document.createElement("br"));
}if(a10.printToNativeConsole){B="DEBUG: "+B;
if(typeof (window)!="undefined"&&window.console&&window.console.log){window.console.log(B.replace(/%/g,"\uFF05"));
}else{if(typeof (opera)!="undefined"&&opera.postError){opera.postError(B);
}}}};
a10.anim.fadeIn=function(D,C,B){var A=$(D);
if(A){a10.anim.fadeLoop(A,0,1,C,B);
}};
a10.anim.fadeOut=function(D,C,B){var A=$(D);
if(A){a10.anim.fadeLoop(A,1,0,C,B);
}};
a10.anim.fadeOutToOpacity=function(E,D,A,C){var B=$(E);
if(B){a10.anim.fadeLoop(B,1,A,D,C);
}};
a10.anim.fadeLoop=function(C,G,B,F,E){var D=(F/4)*1000;
var A=((B-G)/4);
a10.element.setOpacity(C,G);
if(C.style.display=="none"&&A>0){C.style.display="";
}a10.anim.fadeLoop.step(C,A,B,D,E);
};
a10.anim.fadeLoop.step=function(C,A,B,E,F){var D=a10.element.getOpacity(C);
if((A>0&&D>=B)||(A<0&&D<=B)){a10.element.setOpacity(C,B);
if(B==0){C.style.display="none";
}if(F){F();
}}else{a10.element.setOpacity(C,(D+A));
setTimeout(function(){a10.anim.fadeLoop.step(C,A,B,E,F);
},E);
}};
a10.anim.slideX=function(E,D,B,C){var A=$(E);
if(A){a10.anim.slideLoop(A,parseInt(A.style.left),B,D,C);
}};
a10.anim.slideLoop=function(C,G,B,F,E){var D=(F/10)*1000;
var A=((B-G)/10);
a10.anim.slideLoop.step(C,A,B,D,E);
};
a10.anim.slideLoop.step=function(C,A,B,E,F){var D=parseInt(C.style.left);
if((A>0&&D>=B)||(A<0&&D<=B)){C.style.left=B+"px";
if(F){F();
}}else{if(A>0){C.style.left=Math.ceil(D+A)+"px";
}else{C.style.left=Math.floor(D+A)+"px";
}setTimeout(function(){a10.anim.slideLoop.step(C,A,B,E,F);
},E);
}};
a10.anim.slideY=function(E,D,B,C){var A=$(E);
if(A){a10.anim.slideLoopY(A,parseInt(A.style.top),B,D,C);
}};
a10.anim.slideLoopY=function(C,G,B,F,E){var D=(F/10)*1000;
var A=((B-G)/10);
a10.anim.slideLoopY.step(C,A,B,D,E);
};
a10.anim.slideLoopY.step=function(C,A,B,E,F){var D=parseInt(C.style.top);
if((A>0&&D>=B)||(A<0&&D<=B)){C.style.top=B+"px";
if(F){F();
}}else{C.style.top=(D+A)+"px";
setTimeout(function(){a10.anim.slideLoopY.step(C,A,B,E,F);
},E);
}};
a10.anim.shake=function(G,B,F,E){var A=$(G);
if(A){var C=parseInt(A.style.left);
var D=(F/25)*1000;
a10.anim.shake.step(A,B,isNaN(C)?0:C,D,E);
}};
a10.anim.shake.step=function(B,A,F,D,E){var C=parseInt(B.style.left);
C=isNaN(C)?0:C;
if(A==0){B.style.left=F+"px";
if(E){E();
}}else{if(C==F){B.style.left=(C+A)+"px";
}else{B.style.left=(C+A*2)+"px";
}if(A>0){A=A*-1;
}else{A=(A*-1)-5;
}setTimeout(function(){a10.anim.shake.step(B,A,F,D,E);
},D);
}};
a10.ajax.getRequestObj=function(){if(window.XMLHttpRequest){return new XMLHttpRequest();
}else{if(window.ActiveXObject){try{return new ActiveXObject("Msxml2.XMLHTTP");
}catch(B){try{return new ActiveXObject("Microsoft.XMLHTTP");
}catch(A){return null;
}}}else{return null;
}}};
a10.ajax.get=function(C,B,A){a10.debug("[a10.ajax.get()]:"+C);
var D=a10.ajax.getRequestObj();
if(D){D.onreadystatechange=function(){if(D.readyState==4){if(D.status==200&&typeof (B)=="function"){B(D);
}else{if(typeof (A)=="function"){A(D);
}}try{delete D["onreadystatechange"];
}catch(E){}}};
if(param!=""){if(C.indexOf("?")!=-1){C=C+"&"+param;
}else{C=C+"?"+param;
}}param="";
D.open("GET",C,true,"","");
D.send(null);
return D;
}else{if(A){A("Error creating XHR");
}else{a10.debug("Error creating XHR");
}return null;
}};
a10.ajax.post=function(C,E,B,A){a10.debug("[a10.ajax.post()]:"+C);
var D=a10.ajax.getRequestObj();
if(D){D.onreadystatechange=function(){if(D.readyState==4){if(D.status==200&&typeof (B)=="function"){B(D);
}else{if(typeof (A)=="function"){A(D);
}}try{delete D["onreadystatechange"];
}catch(F){}}};
D.open("POST",C,true,"","");
D.setRequestHeader("Content-type","application/x-www-form-urlencoded");
D.setRequestHeader("Content-length",E.length);
D.send(E);
return D;
}else{if(A){A("Error creating XHR");
}else{a10.debug("Error creating XHR");
}return null;
}};
a10.ajax.abort=function(A){if(A){A.abort();
}};
a10.browser.buildParamString=function(E){var D="";
if(!(typeof (E)=="undefined"||E===null)){var C=a10.util.sortProperties(E);
var B=true;
for(prop in C){var A=encodeURIComponent(C[prop]);
A=A.replace(/'/g,"%27");
if(A!=null&&A!=""){if(!B){D+="&";
}else{B=false;
}D+=prop+"="+A;
}}}return D;
};
a10.browser.isIE=function(){return navigator.userAgent.toLowerCase().indexOf("msie")!=-1;
};
a10.browser.isIE6=function(){return navigator.userAgent.toLowerCase().indexOf("msie 6.")!=-1;
};
a10.browser.isIE7=function(){return navigator.userAgent.toLowerCase().indexOf("msie 7.")!=-1;
};
a10.browser.isIE8=function(){return navigator.userAgent.toLowerCase().indexOf("msie 8.")!=-1;
};
a10.browser.isOpera=function(){return navigator.userAgent.toLowerCase().indexOf("opera")!=-1;
};
a10.browser.version=function(){if(!a10.browser._version){if(a10.browser.isIE()){a10.browser._version=a10.browser.parseVersionStr("msie");
}if(a10.browser.isFirefox()){a10.browser._version=a10.browser.parseVersionStr("firefox");
}if(a10.browser.isNetscape()){a10.browser._version=a10.browser.parseVersionStr("netscape");
}if(a10.browser.isOpera()){a10.browser._version=a10.browser.parseVersionStr("opera");
}if(a10.browser.isSafari()){var A=a10.browser.parseVersionStr("safari");
if(A>521){A=3;
}else{if(A>412){A=2;
}else{A=1;
}}a10.browser._version=A;
}}return a10.browser._version;
};
a10.browser.isFirefox=function(){return navigator.userAgent.toLowerCase().indexOf("firefox")!=-1;
};
a10.browser.isFirefox35=function(){return navigator.userAgent.toLowerCase().indexOf("firefox/3.5")!=-1;
};
a10.browser.isNetscape=function(){return navigator.userAgent.toLowerCase().indexOf("netscape")!=-1;
};
a10.browser.isSafari=function(){return navigator.userAgent.toLowerCase().indexOf("safari")!=-1;
};
a10.browser.parseVersionStr=function(G,A){var D="";
if(G||A){var I=navigator.userAgent.toLowerCase();
var C=(!A)?(I.indexOf(G)+G.length+1):A;
if(C>=0){var H=I.substring(C);
for(var E=0;
E<H.length;
E++){var F=H.substring(E,E+1);
if(!isNaN(F)&&F!=" "){D+=F;
}else{if(F=="."){D+=F;
}else{break;
}}}}}var B=D.indexOf(".");
if(B!=-1){var J=D.indexOf(".",B+1);
if(J!=-1){D=D.substring(0,J);
}}return D;
};
a10.browser.innerDimension=function(){var A,B;
if(self.innerHeight){A=self.innerWidth;
B=self.innerHeight;
}else{if(document.documentElement&&document.documentElement.clientHeight){A=document.documentElement.clientWidth;
B=document.documentElement.clientHeight;
}else{if(document.body){A=document.body.clientWidth;
B=document.body.clientHeight;
}}}return[A,B];
};
a10.util.sortProperties=function(F){var G=[];
var E;
for(var H in F){var B;
try{B=F[H];
}catch(E){continue;
}G.push([H,B]);
}var A={};
var D=[];
G.sort();
for(var C=0;
C<G.length;
C++){D=G[C];
A[D[0]]=D[1];
}return A;
};
a10.util.findPos=function(A){var B=curtop=0;
if(A&&A.offsetParent){B=A.offsetLeft;
curtop=A.offsetTop;
while(A=A.offsetParent){B+=A.offsetLeft;
curtop+=A.offsetTop;
}}return[B,curtop];
};
a10.util.scrollLeft=function(){return window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0;
};
a10.util.scrollTop=function(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;
};
a10.util.trim=function(A){return A.replace(/^\s+/g,"").replace(/\s+$/g,"");
};
a10.util.htmlEncode=function(A){return A.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");
};
a10.util.isEmpty=function(A){if(A){return A.match(/^\s*$/)!=null;
}else{return true;
}};
a10.util.ie6PNGSpriteHack=function(H){if(a10.browser.isIE6()){var G=H.style.backgroundImage.substr(4,H.style.backgroundImage.length-5);
var B=H.style.backgroundPosition.split(" ");
var F=B.length>=1?parseInt(B[0]):0;
var C=B.length>=2?parseInt(B[1]):0;
F=isNaN(F)?0:F;
C=isNaN(C)?0:C;
var E=parseInt(H.style.width);
var A=parseInt(H.style.height);
E=isNaN(E)?0:E;
A=isNaN(A)?0:A;
H.style.backgroundImage="none";
H.style.overflow="hidden";
var D=document.createElement("div");
D.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+G+"', sizingMethod='crop')";
D.style.position="relative";
D.style.left=F+"px";
D.style.top=C+"px";
D.style.width=-F+E+"px";
D.style.height=-C+A+"px";
H.appendChild(D);
}};
a10.util.truncate=function(B,C){if(B==null){return null;
}C=C||30;
var A="...";
return B.length>C?B.slice(0,C-A.length)+A:B;
};
if(!!document.evaluate){a10.util._getElementsByXPath=function(F,A){var C=[];
var E=document.evaluate(F,$(A)||document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);
for(var B=0,D=E.snapshotLength;
B<D;
B++){C.push(E.snapshotItem(B));
}return C;
};
a10.util.getElementsByClassName=function(B,A){var C=".//*[contains(concat(' ', @class, ' '), ' "+B+" ')]";
return a10.util._getElementsByXPath(C,A);
};
}else{a10.util.getElementsByClassName=function(G,I){var D=($(I)||document.body).getElementsByTagName("*");
var A=[],B,F=new RegExp("(^|\\s)"+G+"(\\s|$)");
for(var E=0,C=D.length;
E<C;
E++){B=D[E];
var H=B.className;
if(H.length==0){continue;
}if(H==G||H.match(F)){A.push(B);
}}return A;
};
}a10.util.extend=function(A,C){for(var B in C){A[B]=C[B];
}return A;
};
a10.util.subclass=function(C,A){function B(){}B.prototype=A.prototype;
C.prototype=new B();
C.prototype.constructor=C;
C.baseConstructor=A;
C.superClass=A.prototype;
};
a10.util.getComputedStyle=function(A){A=$(A);
return A.currentStyle||document.defaultView.getComputedStyle(A,null)||window.getComputedStyle(A,null);
};
a10.util.generatePagingStrip=function(G,F,T,K,V,N,U){var P=1;
var M=10;
var I="";
var Q=1;
var C="";
var S="";
var L=1;
var O=10;
var R=0;
var H=Math.ceil(K/T);
var W=(T>F)?0:(F%T);
P=(W==0)?Math.round((F+T)/T):Math.ceil(F/T);
if(H==1&&F!=0){H+=1;
P=H;
}else{if((F+T)>=K){if(P<H){H=P;
}}}var D=F+((H-P)*T);
if(D>=K){D=K-1;
}if(((F%T)!=0)&&((D+T)<K)){H+=1;
}if(H>10){L=P-5;
O=P+4;
if(L<1){R=Math.abs(L)+1;
L=L+R;
O=O+R;
}if(O>H){R=O-H;
L=L-R;
O=O-R;
}}else{if(H<O){O=H;
}}var A;
if(typeof (_psDefStyles)=="undefined"){A=new Object();
A.curStyle="margin:0px 15px 0px "+(P>1?15:0)+"px";
A.curCls="plc b plsel";
A.curInCls="pl";
A.numCls="plc";
A.numInCls="pl b";
A.nextStyle="";
}else{A=_psDefStyles;
}var B=$("ps");
if(B){if(O==1){I="";
}else{if(P>1){C="&pstart="+(F-T);
S="&page="+(P-1);
I+='<div style="float:left;'+A.nextStyle+'"><a class="L4" style="text-decoration:none" href="'+G+C+S+'">'+V+"</a></div>";
}else{if(!U){I+='&#160;&#160;<span class="disabled">'+V+"</span>";
}}I+='<div style="float:left;display:inline;padding:0;'+A.curStyle+';">';
for(Q=L;
Q<=O;
Q++){if(Q==P){I+='<div id="cur" class="'+A.curCls+'"><div class="'+A.curInCls+'">&#160;&#160;'+Q+"&#160;&#160;</div></div>";
}else{var J=Q-P;
var E=(F+(J*T));
if(E<0){E=0;
}if(E>K){E=K-1;
}C="&pstart="+E;
S="&page="+(P+J);
I+='<div class="'+A.numCls+'"><a class="'+A.numInCls+'" style="text-decoration:none" href="'+G+C+S+'">&#160;&#160;'+Q+"&#160;&#160;</a></div>";
}}I+="</div>";
if(P!=H){C="&pstart="+(F+T);
S="&page="+(P+1);
I+='<div style="float:left;'+A.nextStyle+'"><a class="L4" style="text-decoration:none" href="'+G+C+S+'">'+N+"</a></div>";
}else{if(!U){I+='<span class="disabled">'+N+"</span>";
}}}B.innerHTML=I;
}};
a10.util.uniqueID=(function(){var A=0;
return function(){return A++;
};
})();
a10.util.insertStyleSheet=function(B,D){if(a10.browser.isIE()){try{if(document.styleSheets.length>0){document.styleSheets[document.styleSheets.length-1].addImport(B);
}else{document.createStyleSheet(B);
}}catch(E){a10.debug("Insert style sheets error: "+B+". Error message: "+E.message);
}}else{var C=document.getElementsByTagName("head")[0];
var A=document.createElement("link");
A.type="text/css";
A.rel="stylesheet";
A.href=B;
A.media="screen";
A.className=D;
C.appendChild(A);
}};
a10.util.insertScript=function(B,D){var C=document.getElementsByTagName("head")[0];
var A=document.createElement("script");
A.type="text/javascript";
A.src=B;
A.className=D;
C.appendChild(A);
};
a10.util.removeElementsWithClass=function(C){var B=document.getElementsByTagName("head")[0];
var D=a10.util.getElementsByClassName(C,B);
D=D.concat(a10.util.getElementsByClassName(C,document.body));
for(var A=0;
A<D.length;
A++){var E=D[A];
E.parentNode.removeChild(E);
}};
a10.util.getMyStuffTitle=function(D,E,B,A){var C=D;
var F=B+"'s Stuff";
if(B!=""){if(A=="en_US"||A=="en_GB"||A=="nl_NL"){if(B.toLowerCase().charAt(B.length)=="s"||B.toLowerCase().charAt(B.length)=="z"){C=E;
}}else{if(A=="fr_FR"){if(B.toLowerCase().charAt(0)=="a"||B.toLowerCase().charAt(0)=="e"||B.toLowerCase().charAt(0)=="i"||B.toLowerCase().charAt(0)=="o"||B.toLowerCase().charAt(0)=="u"||B.toLowerCase().charAt(0)=="y"||B.toLowerCase().charAt(0)=="h"){C=E;
}}}if(C.indexOf("{0}")!=-1){F=C.replace("{0}",B);
}}return F;
};
a10.array.removeElementAtIndex=function(A,B){if(A<0||A>=B.length){return null;
}return B.splice(A,1)[0];
};
a10.array.indexOf=function(A,C){for(var B=0;
B<C.length;
B++){if(C[B]==A){return B;
}}return -1;
};
a10.simulate.click=function(A){this._mouseEvent(A,"click");
};
a10.simulate.mousedown=function(A){this._mouseEvent(A,"mousedown");
};
a10.simulate._mouseEvent=function(C,B){C=$(C);
if(document.createEvent){var A=document.createEvent("MouseEvents");
A.initEvent(B,true,true);
C.dispatchEvent(A);
}else{if(document.createEventObject){var A=document.createEventObject();
C.fireEvent("on"+B,A);
}}};
a10.event.addListener=function(D,B,A){D=$(D);
if(D){if(D.addEventListener){D.addEventListener(B,A,false);
}else{if(D.attachEvent){if(!A["_addListenerID"]){A["_addListenerID"]=a10.util.uniqueID();
}var C=B+A["_addListenerID"];
if(D[C]){return ;
}D["fn"+C]=A;
D[C]=function(){D["fn"+C](window.event);
};
D.attachEvent("on"+B,D[C]);
}}}};
a10.event.removeListener=function(D,B,A){D=$(D);
if(D.removeEventListener){D.removeEventListener(B,A,false);
}else{if(D.detachEvent){var C=B+A["_addListenerID"];
D.detachEvent("on"+B,D[C]);
D[C]=null;
D["fn"+C]=null;
}}};
a10.event.element=function(A){return A.target||A.srcElement;
};
a10.event.cancelDefaultAction=function(A){if(A.preventDefault){A.preventDefault();
}else{A.returnValue=false;
}};
a10.element.visible=function(B){var A=$(B);
if(A){return A.style.display!="none";
}return false;
};
a10.element.toggle=function(A){A=$(A);
a10.element[a10.element.visible(A)?"hide":"show"](A);
return A;
};
a10.element.hide=function(B){var A=$(B);
if(A&&A.style){A.style.display="none";
}return B;
};
a10.element.show=function(B){var A=$(B);
if(A){A.style.display="";
}return B;
};
a10.element.containsPoint=function(C,A,E,B){if(C){var D=a10.util.findPos(C);
if(B){D[1]-=a10.util.scrollTop();
}else{if(a10.browser.isIE6()){D[0]-=document.body.scrollLeft;
D[1]-=document.body.scrollTop;
}}return A>=D[0]&&A<(D[0]+C.offsetWidth)&&E>=D[1]&&E<(D[1]+C.offsetHeight);
}};
a10.element.setOpacity=function(A,D){A=$(A);
if(!A){return ;
}if(a10.browser.isIE()){var C=A.style.filter;
var B=A.style;
if(D==1||D===""){B.filter=C.replace(/alpha\([^\)]*\)/gi,"");
return ;
}else{if(D<0.00001){D=0;
}}B.filter=C.replace(/alpha\([^\)]*\)/gi,"")+"alpha(opacity="+(D*100)+")";
}else{A.style.opacity=(D==1||D==="")?"":(D<0.00001)?0:D;
}};
a10.element.getOpacity=function(A){A=$(A);
if(A){if(a10.browser.isIE()){var B=(A.style.filter||"").match(/alpha\(opacity=(.*)\)/);
if(B&&B[1]){return parseFloat(B[1])/100;
}else{return 1;
}}else{var B=A.style.opacity;
return B?parseFloat(B):1;
}}return null;
};
a10.element.getHeight=function(A){return this.getDimensions(A).height;
};
a10.element.getWidth=function(A){return this.getDimensions(A).width;
};
a10.element.getDimensions=function(C){C=$(C);
if(!C){return{width:null,height:null};
}var B=C.style;
var F=B.visibility;
var D=B.position;
var A=B.display;
B.visibility="hidden";
B.position="absolute";
B.display="block";
var G=C.offsetWidth;
var E=C.clientHeight;
B.display=A;
B.position=D;
B.visibility=F;
return{width:G,height:E};
};
a10.IFrameCover=function(A,B){this.element=$(A);
this.iframe=null;
if(B){this.leftOffset=B.left||0;
this.topOffset=B.top||0;
this.widthOffset=B.width||0;
this.heightOffset=B.height||0;
}else{this.leftOffset=this.topOffset=this.widthOffset=this.heightOffset=0;
}};
a10.IFrameCover.prototype={show:function(){this.iframe=document.createElement("iframe");
this.iframe.src="about:blank";
this.iframe.scrolling="no";
this.iframe.frameBorder=0;
this.iframe.style.position="absolute";
this.iframe.style.zIndex=0;
this.iframe.id=this.element.id+"_IFrameCover";
document.body.appendChild(this.iframe);
this.reposition();
},hide:function(){if(this.iframe==null){return ;
}document.body.removeChild(this.iframe);
this.iframe=null;
},reposition:function(){if(this.iframe==null){return ;
}var B=a10.util.findPos(this.element);
var A=a10.element.getDimensions(this.element);
this.iframe.style.left=B[0]+this.leftOffset+"px";
this.iframe.style.top=B[1]+this.topOffset+"px";
this.iframe.style.width=A.width+this.widthOffset+"px";
this.iframe.style.height=A.height+this.heightOffset+"px";
}};
a10.form.serialize=function(A){return this.serializeElements(this.getElements(A));
};
a10.form.getElements=function(C){var D=[];
var B=$(C).getElementsByTagName("*");
for(var A=0;
A<B.length;
A++){if(this.serializers[B[A].tagName.toLowerCase()]){D.push(B[A]);
}}return D;
};
a10.form.serializeElements=function(F){var A="";
for(var C=0;
C<F.length;
C++){var G=F[C];
if(!G.disabled&&G.name){var B=G.name;
var E=this.getValue(G);
if(E!=undefined){var D=B+"="+encodeURIComponent(E);
if(A==""){A=D;
}else{A+="&"+D;
}}}}return A;
};
a10.form.getValue=function(A){A=$(A);
var B=A.tagName.toLowerCase();
return this.serializers[B](A);
};
a10.form.serializers={input:function(A){switch(A.type.toLowerCase()){case"checkbox":case"radio":return this.inputSelector(A);
default:return this.textarea(A);
}},inputSelector:function(A){return A.checked?A.value:null;
},textarea:function(A){return A.value;
},select:function(A){return this[A.type=="select-one"?"selectOne":"selectMany"](A);
},selectOne:function(B){var A=B.selectedIndex;
return A>=0?this.optionValue(B.options[A]):null;
},selectMany:function(D){var A,E=D.length;
if(!E){return null;
}for(var C=0,A=[];
C<E;
C++){var B=D.options[C];
if(B.selected){A.push(this.optionValue(B));
}}return A;
},optionValue:function(A){return A.value;
}};
a10.flash={FlashDetect:new function(){var A=this;
A.installed=false;
var B=[{"name":"ShockwaveFlash.ShockwaveFlash.7"},{"name":"ShockwaveFlash.ShockwaveFlash.6"},{"name":"ShockwaveFlash.ShockwaveFlash"}];
var C=function(D){var F=-1;
try{F=new ActiveXObject(D);
}catch(E){}return F;
};
A.FlashDetect=function(){if(navigator.plugins&&navigator.plugins.length>0){var F="application/x-shockwave-flash";
var E=navigator.mimeTypes;
if(E&&E[F]&&E[F].enabledPlugin&&E[F].enabledPlugin.description){A.installed=true;
}}else{if(navigator.appVersion.indexOf("Mac")==-1&&window.execScript){for(var D=0;
D<B.length&&!A.installed;
D++){var G=C(B[D].name);
if(typeof G=="object"){A.installed=true;
}}}}}();
}};
a10.flash.FlashDetect.release="1.0.3";
a10.flash.isEnabled=function(){return this.FlashDetect.installed;
};

function _RP(B){if(WZInfo.pickRedirectPrefix!=""){return WZInfo.pickRedirectPrefix+pob(B);
}else{var A=WZInfo.pickRedirectDefault.replace("c=a&","c=anc&");
A=A.replace("q=&","q=default&");
return A+pob(B);
}}function _SP(B){if(WZInfo.pickPrefix!=""){return WZInfo.pickPrefix+pob(B);
}else{var A=WZInfo.pickPrefix.replace("c=a&","c=anc&");
A=A.replace("q=&","q=default&");
return A+pob(B);
}}function ptxt(A){var B="";
if(A.innerHTML){B=A.innerHTML;
B=B.replace(/<\/?[^>]+>/ig,"");
B=B.replace(/&amp;/g,"&");
}return B;
}function pk(A,D,C){if(A&&A.href){if(A.wzup){return true;
}if(!D.u){D.u=A.href;
}if(document.all&&navigator.userAgent.indexOf("MSIE")!=-1){D.u=enc(D.u);
}var B=(C)?obj(C):A;
if(!D.pt){switch(D.en.toLowerCase()){case"js":case"is":D.pt=D.en.toUpperCase()+" thumbnail";
break;
default:D.pt=ptxt(B);
}}A.href=_RP(D);
A.wzup=1;
}return true;
}function nopk(A,C,B){return true;
}function spk(A,E,D,C){if(A&&A.href&&E){if(!E.u){if(C){E.u=C;
}else{E.u=A.href;
}}if(!E.pt){var B=(D)?obj(D):A;
E.pt=ptxt(B);
}}return(new Image()).src=_SP(E);
}function noct(A,B){return true;
}function ct(A,C){if(A&&A.href&&C){if(!A.oUrl){A.oUrl=A.href;
}var B=A.innerHTML;
A.href=WZInfo.ctRedirectPrefix(C,A.oUrl);
if(navigator.userAgent.toLowerCase().indexOf("msie")!=-1&&A.innerHTML!=B){A.innerHTML=B;
}}return true;
}function nosct(E,A,B){if(E){var C="";
if(A){C=((A.href)?A.href:A);
}var D=C;
return D;
}}function sct(F,A,B){if(F){var D="";
if(A){D=((A.href)?A.href:A);
}var E=WZInfo.ctPrefix(F,D);
E=E+"&rnd="+Math.random().toString();
var C=new Image();
if(B){setTimeout(function(){C.src=E;
},100);
}else{C.src=E;
}return E;
}}function wzr(C,A){if(C&&A){var B=WZInfo.ctRedirectPrefix(C,A);
if(B){return B;
}}}function enc(A){return(typeof encodeURIComponent!="undefined")?encodeURIComponent(A):escape(A);
}function obj(C,B){if(!B){B=document;
}var A=B.getElementById(C);
return A;
}function pob(A){A=A||{};
return WZInfo.pickObjConversion(A);
}function h(A){return(A!=null&&A!="undefined")?A:"";
}function cspk(A,E,F,C){var B="co";
if(E=="ahdict"){B="ah";
}if(E=="roget"){B="ro";
}if(E=="wiki"){B="wk";
}if(E=="col"){B="cb";
}if(E=="hmwh"){B="h0";
}if(E=="hmff"){B="h1";
}if(E=="wordnet"){B="wn";
}if(E=="wordnetuk"){B="wn";
}var D={};
D.en=B;
D.b="sa";
D.tp="d";
D.ec="1";
D.io=F;
if(C){spk(A,D);
}else{pk(A,D);
}return true;
}function fp(O,C,F,I,D,E){if(O.href){var M=O.href.match(WZInfo.framedPickDomainRE);
if(M){var P,N,B,G,H,J,A;
G=M[1];
B=M[2];
H=WZInfo.framedPickSearchDomain;
J=WZInfo.framedPickAdvLang;
A=WZInfo.framedPickAdvCtry;
N=WZInfo.framedPickUrlPrefix;
if(H){N+="&dm="+H+"&advl="+J+"&advc="+A;
}G+="u="+B+"&bu="+enc(N)+WZInfo.framedPickUrlPrefix2;
if(H){G+="&dm="+H;
}if(D){G+="&ou="+enc(E);
}if(F=="true"){var K=_mb(I);
var L;
if(D){P=WZInfo.framedPickTitle+E;
L=WZInfo.framedPickAbstract+D;
}else{L=_ma(I);
}G+="&ma="+enc(L)+"&mt="+enc(P)+"&mb="+K;
}C.url=(E)?E:O.href;
C.u=G;
}pk(O,C);
}return true;
}function InitClickLog(){var D=function(){return sct(this.getAttribute("ask_clicklogid"),this);
};
var A=document.getElementsByTagName("A");
for(var B=A.length-1;
B>=0;
B--){var C=A[B].getAttribute("ask_clicklogid");
if(C){ask.util.Events.addListener(A[B],"mousedown",D);
}}A=document.getElementsByName("ask_clicklog");
for(var B=A.length-1;
B>=0;
B--){var C=A[B].getAttribute("ask_clicklogid");
if(C){ask.util.Events.addListener(A[B],"mousedown",D);
}}}
JSONscriptRequest.scriptCounter=1;
JSONscriptRequest.idPrefix="JscriptId";
function JSONscriptRequest(A){this.fullUrl=A;
this.noCacheIE="&noCacheIE="+(new Date()).getTime();
this.headLoc=document.getElementsByTagName("head").item(0);
this.scriptId=JSONscriptRequest.idPrefix+JSONscriptRequest.scriptCounter++;
}JSONscriptRequest.prototype.makeRequest=function(){this.scriptObj=document.createElement("script");
this.scriptObj.setAttribute("type","text/javascript");
this.scriptObj.setAttribute("charset","utf-8");
this.scriptObj.setAttribute("id",this.scriptId);
if(this.fullUrl.indexOf("?")==-1){this.scriptObj.setAttribute("src",this.fullUrl+"?"+this.noCacheIE);
}else{this.scriptObj.setAttribute("src",this.fullUrl+this.noCacheIE);
}a10.debug("Making Json request: "+this.fullUrl);
this.headLoc.appendChild(this.scriptObj);
};
JSONscriptRequest.prototype.removeScriptTag=function(){this.headLoc.removeChild(this.scriptObj);
};
JSONscriptRequest.removeAllScriptTags=function(){var C=document.getElementsByTagName("head").item(0);
var B;
if(C){var A=C.childNodes;
for(B=0;
B<A.length;
B++){if(A[B].nodeType==1&&A[B].tagName=="SCRIPT"&&A[B].id.indexOf(JSONscriptRequest.idPrefix)==0){C.removeChild(A[B]);
}}}};

var Cookie={};
Cookie.isEnabled=function(){return window.navigator.cookieEnabled;
};
Cookie.getCookie=function(D,C){var E=document.cookie;
var F=E.indexOf(D+"=");
var A=F+D.length+1;
if((!F)&&(D!=E.substring(0,D.length))){return null;
}if(F==-1){return null;
}var B=E.indexOf(";",A);
if(B==-1){B=E.length;
}return C?E.substring(A,B):unescape(E.substring(A,B));
};
Cookie.deleteCookie=function(A,C,B){if(Cookie.getCookie(A)){document.cookie=A+"="+((C)?"; path="+C:"")+((B)?"; domain="+B:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT";
}};
Cookie.setCookie=function(B,D,A,F,C,E){document.cookie=B+"="+escape(D)+((A)?"; expires="+A.toGMTString():"")+((F)?"; path="+F:"")+((C)?"; domain="+C:"")+((E)?"; secure":"");
};

if(!a10){var a10={};
}a10.ss={};
a10.ss2={};
a10.ss.lastSuccessfulQuery=null;
a10.ss.currentQuery=null;
a10.ss.currentResults=new Array();
a10.ss.pauseTimeoutID=null;
a10.ss.selectedIndex=-1;
a10.ss.pageHasMadeRequest=false;
a10.ss.formSubmitted=false;
a10.ss.hidden=true;
a10.ss.PAUSE_PERIOD=201;
a10.ss.FADE_SPEED=0.07;
a10.ss.skipNextArrowKeyEvent=false;
a10.ss.inputId="";
a10.ss.uiId="";
a10.ss.uiBodyId="";
a10.ss.uiSuggestlistId="";
a10.ss.uiDisabledivId="";
a10.ss.offsetLeft=10;
a10.ss.ssQsrcDefault="2352";
a10.ss.ssQsrcHP="178";
a10.ss.qsrc=a10.ss.ssQsrcDefault;
a10.ss.prevQsrc="";
a10.ss.popupIE6Cover="";
a10.ss.popupIE6CoverTarget="";
a10.ss.symUKDomain="";
a10.ss.init=function(D,A,B,C){a10.ss.inputId=D;
a10.ss.uiId=A;
a10.ss.uiBodyId=B;
a10.ss.uiSuggestlistId=_suggestlistId;
a10.ss.uiDisabledivId=_sgDisabledivId;
if("event" in a10){a10.event.addListener(document.getElementById(D),"keyup",a10.ss.searchSuggestion);
a10.event.addListener(document.documentElement,"click",a10.ss.closePopup);
}if(C){a10.ss.PAUSE_PERIOD=C;
}};
a10.ss.closePopup=function(){var A=$(a10.ss.uiId);
if(A){A.style.display="none";
}if(a10.browser.isIE6()&&a10.ss.popupIE6Cover){a10.ss.popupIE6Cover.hide();
}};
a10.ss.searchSuggestion=function(B){var A=Cookie.getCookie("gset");
if(a10.ss.hp=="true"){a10.ss.qsrc=a10.ss.ssQsrcHP;
}if((!A)||(A.indexOf("ss=0")==-1)){if(!B){B=window.event;
}switch(B.keyCode){case 38:if((navigator.userAgent.indexOf("AppleWebKit")!=-1)&&(navigator.appVersion.indexOf("Version/")==-1)){if(a10.ss.skipNextArrowKeyEvent){a10.ss.skipNextArrowKeyEvent=false;
return ;
}else{a10.ss.skipNextArrowKeyEvent=true;
}}a10.ss.handleKey(38);
return ;
case 40:if((navigator.userAgent.indexOf("AppleWebKit")!=-1)&&(navigator.appVersion.indexOf("Version/")==-1)){if(a10.ss.skipNextArrowKeyEvent){a10.ss.skipNextArrowKeyEvent=false;
return ;
}else{a10.ss.skipNextArrowKeyEvent=true;
}}a10.ss.handleKey(40);
return ;
case 13:a10.ss.formSubmitted=true;
a10.ss.closePopup();
return ;
case 9:case 18:return ;
default:if($(a10.ss.inputId).value==""){a10.ss.handleClearOut();
}}if(a10.ss.currentQuery==$(a10.ss.inputId).value){return ;
}a10.ss.currentQuery=$(a10.ss.inputId).value;
if(a10.ss.pauseTimeoutID){clearTimeout(a10.ss.pauseTimeoutID);
a10.ss.pauseTimeoutID=null;
}a10.ss.pauseTimeoutID=setTimeout(function(){a10.ss.pauseTimeoutID=null;
a10.ss.searchSuggestHandler();
},a10.ss.PAUSE_PERIOD);
}};
a10.ss.updateQsrc=function(A){if(_uiSS2){a10.ss2.updateQsrc(A);
}else{if(a10.ss.selectedIndex!=-1){var B=document.getElementById("qsrc");
if(B){B.value=a10.ss.qsrc;
}}}};
a10.ss.handleClearOut=function(){if(_uiSS2){a10.ss2.handleClearOut();
}};
a10.ss.select=function(C){var A=a10.ss.currentResults.length;
function D(E){if(E>=0&&E<A){el=a10.ss.currentResults[E];
el.className="";
}}D(a10.ss.selectedIndex);
var B=a10.ss.lastSuccessfulQuery;
if(C>=0&&C<A){el=a10.ss.currentResults[C];
links=el.getElementsByTagName("a");
if(links.length==0){return 0;
}el.className="selected";
}else{a10.ss.setValue($(a10.ss.inputId),B);
}if(a10.browser.isIE()){$(a10.ss.uiId).style.display="none";
$(a10.ss.uiId).style.display="";
}a10.ss.selectedIndex=C;
return 1;
};
a10.ss.handleKey=function(F){var B=38;
var C=40;
var A=a10.ss.currentResults.length;
function D(G){if(G<-1){return A-1;
}else{if(G>=A){return -1;
}else{return G;
}}}if($(a10.ss.uiId).style.display!="none"&&A>0){var E=a10.ss.selectedIndex;
if(F==B){delta=-1;
}else{if(F==C){delta=+1;
}}E+=delta;
E=D(E);
if(!a10.ss.select(E)){E+=delta;
E=D(E);
a10.ss.select(E);
}a10.ss.copyToInput(E);
a10.ss.updateQsrc(F);
}};
a10.ss.copyToInput=function(A){if(A<0){return ;
}el=a10.ss.currentResults[A];
link=el.getElementsByTagName("a")[0];
query=link.innerText||link.textContent;
a10.ss.setValue($(a10.ss.inputId),query);
a10.ss.currentQuery=query;
};
a10.ss.searchSuggestHandler=function(){function D(I,H){for(var G=0;
G<H.length;
G++){if(H[G].innerHTML.toLowerCase().indexOf(I.toLowerCase())!=0){return false;
}}return true;
}var C=$(a10.ss.inputId).value;
var B;
if(a10.ss.currentResults.length>0&&((C==a10.ss.lastSuccessfulQuery)||(C.length>a10.ss.lastSuccessfulQuery.length&&D(C,a10.ss.currentResults)))){return ;
}var A=a10.ss.lastSuccessfulQuery?a10.ss.lastSuccessfulQuery.toLowerCase():null;
if(a10.ss.currentResults.length==0&&C.toLowerCase().indexOf(A)==0){return ;
}var F=1;
try{if(_iacapn){F=0;
}}catch(E){F=1;
}if(C.length>F){a10.ss.pageHasMadeRequest=true;
a10.ss.execute(C,_country,_language);
}else{a10.ss.lastSuccessfulQuery=null;
a10.ss.currentResults=new Array();
if($(a10.ss.uiId)!=null&&$(a10.ss.uiId).style.display!="none"){a10.ss.transitionSuggestion(true);
}}};
a10.ss.execute=function(C,D,E){if(_backendSS2){a10.ss2.execute(C,D,E);
}else{var B="http://"+_ssDomain+"/query?fn=suggestCallBack&q="+encodeURIComponent(C).toLowerCase()+"&cn="+D+"&ln="+E+"&ss=reply";
var A=new JSONscriptRequest(B);
A.makeRequest();
}};
function suggestCallBack(C){if(a10.ss.formSubmitted){return ;
}if(!a10.ss.pageHasMadeRequest){return ;
}var E=a10.ss.getQuery(C);
if(E!=$(a10.ss.inputId).value.toLowerCase()){return ;
}a10.ss.selectedIndex=-1;
a10.ss.lastSuccessfulQuery=E;
var A=a10.ss.getSuggestions(C);
if(A.length>0){var D="";
_origin=$F("o");
if(_origin==""){_origin=0;
}_partnerID=$F("l");
if(_partnerID==""){_partnerID="dir";
}_siteID=$F("siteid");
if(_siteID==""){_siteID="";
}else{_siteID="&siteid="+$F("siteid");
}_vps=$F("vps");
if(!_vps||_vps==""){_vps="";
}else{_vps="&vps="+$F("vps");
}if(typeof (_currentChannel)!="undefined"){if(_currentChannel=="shopping"){_vps="&shoppingPgType=search";
}if(_currentChannel=="deals"&&_path!="web"){_vps="&dealsPgType=search";
}if(_currentChannel=="deals2"&&_path!="web"){_vps="&dealsPgType=search";
}}D+=a10.ss.createSuggestions(A,a10.ss.qsrc,_origin,_partnerID,_siteID,a10.ss.getCountry(),_vps);
if(typeof _disableSSApplicable=="undefined"){_disableSSApplicable=true;
}if(_disableSSApplicable){if(GlobalNav.Variables._isEraser||GlobalNav.Variables._isEraserOptOutEligible){D+="<div id='"+a10.ss.uiDisabledivId+"'><a id='ssdisable' href='#' onclick='askerasersuppressDialog.show();return false;' class='L3'>"+_disableSSMsg+"</a></div>";
}else{var B=Cookie.getCookie("gset");
if((!B)||(B.indexOf("ss=0")==-1)){D+="<div id='"+a10.ss.uiDisabledivId+"'><a id='ssdisable' href='#'  onclick='a10.ss.turnOffSS()' class='L3'>"+_disableSSMsg+"</a></div>";
}}}$(a10.ss.uiBodyId).innerHTML=D;
a10.ss.currentResults=$(a10.ss.uiSuggestlistId).getElementsByTagName("li");
if($(a10.ss.uiId).style.display=="none"){a10.ss.transitionSuggestion(false);
}}else{a10.ss.clearSuggestions();
}a10.ss.postRender();
}a10.ss.createSuggestions=function(I,J,M,A,G,B,L){var H='<ul id="'+a10.ss.uiSuggestlistId+'">';
function C(T,V,Z,O,U,Q,a,X){if(_uiSS2){return a10.ss2.createSuggestionList(T,V,Z,O,U,Q,a,X);
}else{var S=_highlightSS;
if(S=="true"){var W=a10.ss.lastSuccessfulQuery;
var b=new RegExp("^"+W);
T=T.replace(b,"<span class='suggest'>"+W+"</span>");
}var Y=T.replace(/(<([^>]+)>)/ig,"");
var P=$F("symnfilter");
var R=$F("alwb");
if(!(R=="")){if(!_escapeQuerySS){return"<li onmouseover='a10.ss.select("+(a)+");'><a href='"+_path+"?qsrc="+V+"&o="+Z+"&l="+O+U+"&dm="+Q+"&q="+Y+_vps+"&alwb="+R+"' class='L1'>"+T+"</a></li>";
}else{return"<li onmouseover='a10.ss.select("+(a)+");'><a href='"+_path+"?qsrc="+V+"&o="+Z+"&l="+O+U+"&dm="+Q+"&q="+escape(Y)+_vps+"&alwb="+R+"' class='L1'>"+T+"</a></li>";
}}else{if(P=="on"){if(!_escapeQuerySS){return"<li onmouseover='a10.ss.select("+(a)+");'><a href='"+_path+"?qsrc="+V+"&o="+Z+"&l="+O+U+"&dm="+Q+"&q="+Y+_vps+"&symnfilter=on' class='L1'>"+T+"</a></li>";
}else{return"<li onmouseover='a10.ss.select("+(a)+");'><a href='"+_path+"?qsrc="+V+"&o="+Z+"&l="+O+U+"&dm="+Q+"&q="+escape(Y)+_vps+"&symnfilter=on' class='L1'>"+T+"</a></li>";
}}else{if(!_escapeQuerySS){return"<li onmouseover='a10.ss.select("+(a)+");'><a href='"+_path+"?qsrc="+V+"&o="+Z+"&l="+O+U+"&dm="+Q+"&q="+Y+_vps+"' class='L1'>"+T+"</a></li>";
}else{return"<li onmouseover='a10.ss.select("+(a)+");'><a href='"+_path+"?qsrc="+V+"&o="+Z+"&l="+O+U+"&dm="+Q+"&q="+escape(Y)+_vps+"' class='L1'>"+T+"</a></li>";
}}}}}var K=_separateSS;
var F=[];
var N=[];
if(K=="true"){for(var E=0;
E<I.length;
E++){suggestion=I[E];
if(suggestion.substring(0,1)=="<"){F.push(suggestion);
}else{N.push(suggestion);
}}}else{N=I;
}var D=0;
for(var E=0;
E<F.length;
E++){if(_maxItems>0&&D>=_maxItems){break;
}H+=C(F[E],J,M,A,G,B,D++);
}if(F.length&&N.length){if(_maxItems>0&&D<_maxItems){H+='<li class="separator"></li>';
D++;
}}for(var E=0;
E<N.length;
E++){if(_maxItems>0&&D>=_maxItems){break;
}H+=C(N[E],J,M,A,G,B,D++);
}H+="</ul>";
return H;
};
a10.ss.getQuery=function(A){if(_backendSS2){return a10.ss2.getQuery(A);
}return A["Query"];
};
a10.ss.getSuggestions=function(A){if(_backendSS2){return a10.ss2.getSuggestions(A);
}return A["Suggestions"];
};
a10.ss.postRender=function(){if(_uiSS2){a10.ss2.postRender();
}else{var A=220;
if(a10.ss.bubble){a10.ss.bubble.redraw();
}else{a10.ss.bubble=new a10.Bubble($(a10.ss.uiId),$(a10.ss.uiBodyId),A,0,"up",false,null,35);
}var B=$(a10.ss.popupIE6CoverTarget);
if(a10.browser.isIE6()&&B&&!a10.ss.popupIE6Cover){var C=a10.util.findPos($(a10.ss.uiId));
a10.ss.popupIE6Cover=new a10.IFrameCover(B);
a10.ss.popupIE6Cover.ssCoverLeft=C[0]+a10.bubble.TRANSPARENCY_BORDER["left"];
a10.ss.popupIE6Cover.ssCoverWidth=a10.bubble.BORDER_WIDTH+A-a10.bubble.TRANSPARENCY_BORDER["left"]-a10.bubble.TRANSPARENCY_BORDER["right"];
}if(a10.ss.popupIE6Cover&&$(a10.ss.uiId).style.display!="none"){a10.ss.popupIE6Cover.hide();
a10.ss.popupIE6Cover.show();
a10.ss.popupIE6Cover.iframe.style.left=a10.ss.popupIE6Cover.ssCoverLeft+"px";
a10.ss.popupIE6Cover.iframe.style.width=a10.ss.popupIE6Cover.ssCoverWidth+"px";
}}};
a10.ss.getCountry=function(){var B=$("alltop")||$("all");
var A=$("ctrytop")||$("ctry");
var D=$("langtop")||$("lang");
if(!B&&!A&&!D){return"";
}var C="all";
if(B&&B.checked){C="all";
}else{if(A&&A.checked){C="ctry";
}else{if(D&&D.checked){C="lang";
}}}return C;
};
a10.ss.clearSuggestions=function(){a10.ss.currentResults=new Array();
$(a10.ss.uiBodyId).innerHTML='<div class="lh18"><span style="color:gray;padding-left:6px;">'+_noSSFoundMsg+"</span></div>";
};
a10.ss.reset=function(){a10.ss.currentResults=new Array();
if(a10.ss.pauseTimeoutID){clearTimeout(a10.ss.pauseTimeoutID);
a10.ss.pauseTimeoutID=null;
}a10.ss.pageHasMadeRequest=false;
a10.ss.lastSuccessfulQuery=null;
a10.ss.hidden=true;
};
a10.ss.transitionSuggestion=function(A){a10.ss.hidden=A;
if(A){a10.ss.closePopup();
a10.ss.transitionSuggestionDone();
}else{a10.ss.transitionSuggestionDone();
}};
a10.ss.setValue=function(A,B){A.value=B;
if(navigator.userAgent.indexOf("AppleWebKit")&&A.setSelectionRange){A.setSelectionRange(A.value.length,A.value.length);
}};
a10.ss.transitionSuggestionDone=function(){if(!a10.ss.hidden){$(a10.ss.uiId).style.display="";
}};
a10.ss.turnOffSS=function(){var C=Cookie.getCookie("gset");
var A=new Date();
A.setFullYear(A.getFullYear()+2);
var E="ss=0";
if((C)){if(C.indexOf("&ss=1")!=-1){var B=C.split("&ss=1");
E=B.join("");
}else{if(C.indexOf("&ss=0")!=-1){var B=C.split("&ss=0");
E=B.join("");
}}E+="&ss=0";
}Cookie.deleteCookie("gset","/");
document.cookie="gset="+E+"; expires="+A.toGMTString()+"; path=/; domain=.ask.com";
var D=$("q");
if(D){D.focus();
}};
a10.ss2.getSuggestions=function(A){return A[1];
};
a10.ss2.getQuery=function(A){return A[0];
};
a10.ss2.execute=function(I,B,F){if(a10.ss.symUKDomain){_ssDomain=a10.ss.symUKDomain;
}var A="http://"+_ssDomain+"/query?fn=suggestCallBack&q=";
var E=A+encodeURIComponent(I).toLowerCase();
var D=$F("alwb");
if(!(D=="")){var E=A+encodeURIComponent(I).toLowerCase()+"&alwb="+D;
}var C=$F("symnfilter");
if(C=="on"){var E=A+encodeURIComponent(I).toLowerCase()+"&symnfilter=on";
}var H=_modeSS2;
if(H=="prefix"){E+="&sstype=prefix";
}if(typeof _ssMonetize!="undefined"&&_ssMonetize!=""){E=E+"&fi="+_ssMonetize;
}var G=new JSONscriptRequest(E);
G.makeRequest();
};
a10.ss2.postRender=function(){if(window["_disableSSIframeCover"]){return ;
}if(a10.browser.isIE6()&&!a10.ss.popupIE6Cover){a10.ss.popupIE6Cover=new a10.IFrameCover($(a10.ss.uiId),{height:2});
}if(a10.ss.popupIE6Cover&&$(a10.ss.uiId).style.display!="none"){a10.ss.popupIE6Cover.hide();
a10.ss.popupIE6Cover.show();
}};
a10.ss2.createSuggestionList=function(F,H,L,A,G,C,M,J){var E=_highlightSS;
if(E=="true"){var I=a10.ss.lastSuccessfulQuery;
I=I.replace(/./g,"\\.");
var N=new RegExp("^"+I);
F=F.replace(N,"<span class='suggest'>"+I+"</span>");
}var K=F.replace(/(<([^>]+)>)/ig,"");
var B=$F("symnfilter");
var D=$F("alwb");
if(!(D=="")){if(!_escapeQuerySS){return"<li onmouseover='a10.ss.select("+(M)+");'><a href='"+_path+"?qsrc="+H+"&o="+L+"&l="+A+G+"&dm="+C+"&q="+K+_vps+"&alwb="+D+"' class='L1'><span class='sugline'>"+F+"</span></a></li>";
}else{return"<li onmouseover='a10.ss.select("+(M)+");'><a href='"+_path+"?qsrc="+H+"&o="+L+"&l="+A+G+"&dm="+C+"&q="+escape(K)+_vps+"&alwb="+D+"' class='L1'><span class='sugline'>"+F+"</span></a></li>";
}}else{if(B=="on"){if(!_escapeQuerySS){return"<li onmouseover='a10.ss.select("+(M)+");'><a href='"+_path+"?qsrc="+H+"&o="+L+"&l="+A+G+"&dm="+C+"&q="+K+_vps+"&symnfilter=on' class='L1'><span class='sugline'>"+F+"</span></a></li>";
}else{return"<li onmouseover='a10.ss.select("+(M)+");'><a href='"+_path+"?qsrc="+H+"&o="+L+"&l="+A+G+"&dm="+C+"&q="+escape(K)+_vps+"&symnfilter=on' class='L1'><span class='sugline'>"+F+"</span></a></li>";
}}else{if(!_escapeQuerySS){return"<li onmouseover='a10.ss.select("+(M)+");'><a href='"+_path+"?qsrc="+H+"&o="+L+"&l="+A+G+"&dm="+C+"&q="+K+_vps+"' class='L1'><span class='sugline'>"+F+"</span></a></li>";
}else{return"<li onmouseover='a10.ss.select("+(M)+");'><a href='"+_path+"?qsrc="+H+"&o="+L+"&l="+A+G+"&dm="+C+"&q="+escape(K)+_vps+"' class='L1'><span class='sugline'>"+F+"</span></a></li>";
}}}};
a10.ss2.updateQsrc=function(A){var B=38;
var D=40;
if(a10.ss.selectedIndex!=-1&&(A==B||A==D)){var C=document.getElementById("qsrc");
if(C){if(C.value!=a10.ss.qsrc){a10.ss.prevQsrc=C.value;
}C.value=a10.ss.qsrc;
}}};
a10.ss2.handleClearOut=function(){var A=document.getElementById("qsrc");
if(A&&a10.ss.prevQsrc){A.value=a10.ss.prevQsrc;
}};
if(typeof ssloaded!="undefined"){ssloaded();
}
if(!a10){var a10={};
}a10.zoom={};
a10.zoom.windowHeight=-1;
a10.zoom.items=[];
a10.zoom.selectedIndex=-1;
a10.zoom.skipNextArrowKeyEvent=false;
a10.zoom.bubble=null;
a10.zoom.bubbleWasClicked=false;
a10.zoom.divIds=null;
a10.zoom.TYPES={NONE:0,NARROW:1,EXPAND:2,RELATED:3,NEWS_RELATED:4,NEWS_CAT:5,NEWS_FILTER:6,RR_ZOOM:7,VROOM:8,divId:["","narrow","expand","relatedNames","newsRelatedNames","newsCat","biasFilter","rrZoom","vroom"],ovDivId:["","narrowOverflow","expandOverflow","relatedOverflow","newsRelatedNamesOverflow","newsCatOverflow","biasFilterOverflow","rrZoomOverflow","vroomOverflow"],moreDivId:["","narrowMore","expandMore","relatedMore","newsRelatedNamesMore","newsCatMore","biasFilterMore","rrZoomMore","vroomMore"]};
a10.zoom.activeBubble=a10.zoom.TYPES.NONE;
a10.zoom.safariKeyPressed=function(B){if(a10.zoom.bubble){var A=$("zoomBubbleBody");
if(A.scrollHeight>A.clientHeight){if(B.keyCode==63232||B.keyCode==63233){if(B.keyCode==63232){A.scrollTop-=35;
}else{A.scrollTop+=35;
}B.preventDefault();
return false;
}}}return true;
};
if(a10.browser.isSafari()){a10.event.addListener(window,"keypress",a10.zoom.safariKeyPressed);
}a10.zoom.keyup=function(A){if(!A){A=window.event;
}switch(A.keyCode){case 38:if(navigator.userAgent.indexOf("AppleWebKit")!=-1){if(a10.zoom.skipNextArrowKeyEvent){a10.zoom.skipNextArrowKeyEvent=false;
return ;
}else{a10.zoom.skipNextArrowKeyEvent=true;
}}a10.zoom.handleUpKey();
return ;
case 40:if(navigator.userAgent.indexOf("AppleWebKit")!=-1){if(a10.zoom.skipNextArrowKeyEvent){a10.zoom.skipNextArrowKeyEvent=false;
return ;
}else{a10.zoom.skipNextArrowKeyEvent=true;
}}a10.zoom.handleDownKey();
return ;
case 13:a10.ss.formSubmitted=true;
return ;
}};
a10.zoom.handleUpKey=function(){if($(Const.SEARCH_SUGGESTION_PANE).style.display=="none"){if(a10.zoom.items.length>0){if(a10.zoom.selectedIndex==-1){originalQuery=$("q").value;
}if(a10.zoom.selectedIndex!=-1){a10.zoom.items[a10.zoom.selectedIndex].style.borderBottom="none";
}if(a10.zoom.selectedIndex==0){a10.zoom.selectedIndex=-1;
setValue($("q"),originalQuery);
}else{if(a10.zoom.selectedIndex!=-1){a10.zoom.selectedIndex--;
}else{a10.zoom.selectedIndex=a10.zoom.items.length-1;
}var A=a10.zoom.items[a10.zoom.selectedIndex].style;
A.borderBottom="1px solid #CC0000";
if(a10.browser.isIE6()){A.zoom="1";
}setValue($("q"),a10.zoom.items[a10.zoom.selectedIndex].innerText||a10.zoom.items[a10.zoom.selectedIndex].textContent);
}a10.zoom.operaRedraw();
}}};
a10.zoom.handleDownKey=function(){if($(Const.SEARCH_SUGGESTION_PANE).style.display=="none"){if(a10.zoom.items.length>0){if(a10.zoom.selectedIndex==-1){originalQuery=$("q").value;
}if(a10.zoom.selectedIndex!=-1){a10.zoom.items[a10.zoom.selectedIndex].style.borderBottom="none";
}if(a10.zoom.selectedIndex==a10.zoom.items.length-1){a10.zoom.selectedIndex=-1;
setValue($("q"),originalQuery);
}else{a10.zoom.selectedIndex++;
var A=a10.zoom.items[a10.zoom.selectedIndex].style;
A.borderBottom="1px solid #CC0000";
if(a10.browser.isIE6()){A.zoom="1";
}setValue($("q"),a10.zoom.items[a10.zoom.selectedIndex].innerText||a10.zoom.items[a10.zoom.selectedIndex].textContent);
}a10.zoom.operaRedraw();
}}};
a10.zoom.operaRedraw=function(){if(a10.browser.isOpera()){$("zmpad").style.display="none";
$("zmpad").style.display="";
}};
a10.zoom.toggle=function(A,Q){var N;
var B=181;
var G=40;
var L=20;
var D=30;
var P=28;
var C=228;
var K=-30;
if(a10.zoom.bubble){if(a10.zoom.bubble.parentNode){a10.zoom.bubble.parentNode.removeChild(a10.zoom.bubble);
}a10.zoom.bubble=null;
if(a10.browser.isIE6()&&a10.zoom.cover){a10.zoom.cover.hide();
a10.zoom.cover=null;
}}if(Q==a10.zoom.activeBubble){a10.zoom.activeBubble=a10.zoom.TYPES.NONE;
return ;
}a10.nb.close();
a10.zoom.activeBubble=Q;
var M=A.target||A.srcElement;
if(M.tagName.toLowerCase()!="a"){M=M.parentNode;
}var I=a10.util.findPos(M);
a10.zoom.bubble=document.createElement("div");
a10.zoom.bubble.style.zIndex=12;
document.body.appendChild(a10.zoom.bubble);
var J=document.createElement("div");
J.id="zoomBubbleBody";
J.className="lh18";
J.style.position="absolute";
J.style.left=L+"px";
J.style.top=40+"px";
J.style.width=C+"px";
J.style.borderTop="1px solid #D3D3D3";
J.style.zIndex="1";
J.style.backgroundColor="white";
var E;
if(Q==a10.zoom.TYPES.NARROW){E=$(a10.zoom.TYPES.ovDivId[a10.zoom.TYPES.NARROW]);
}else{if(Q==a10.zoom.TYPES.EXPAND){E=$(a10.zoom.TYPES.ovDivId[a10.zoom.TYPES.EXPAND]);
}else{if(Q==a10.zoom.TYPES.RELATED){E=$(a10.zoom.TYPES.ovDivId[a10.zoom.TYPES.RELATED]);
}else{if(Q==a10.zoom.TYPES.NEWS_RELATED){E=$(a10.zoom.TYPES.ovDivId[a10.zoom.TYPES.NEWS_RELATED]);
}else{if(Q==a10.zoom.TYPES.NEWS_CAT){E=$(a10.zoom.TYPES.ovDivId[a10.zoom.TYPES.NEWS_CAT]);
}else{if(Q==a10.zoom.TYPES.NEWS_FILTER){E=$(a10.zoom.TYPES.ovDivId[a10.zoom.TYPES.NEWS_FILTER]);
}}}}}}J.innerHTML='<a id="focusAnchor" href="javascript:void(null)" style="cursor: default"></a>'+E.innerHTML;
a10.zoom.bubble.appendChild(J);
N=J.offsetHeight;
if(N>=G&&N<=B){J.style.height=(N+2)+"px";
}else{J.style.height=((N>B)?B:G)+"px";
}var O=(I[1]-parseInt(J.style.height)-10);
if(a10.browser.isOpera()){O-=document.documentElement.scrollTop;
}if(a10.browser.isIE6()){a10.zoom.bubble.style.position="absolute";
a10.zoom.bubble.style.setExpression("top","eval(document.body.scrollTop + "+(O-document.body.scrollTop)+")");
}else{a10.zoom.bubble.style.position="fixed";
a10.zoom.bubble.style.top=O+"px";
}a10.zoom.bubble.style.left=(I[0]+55)+"px";
J.style.overflow="auto";
J.style.overflowX="hidden";
var H=document.createElement("div");
H.className="T2 b";
H.style.position="absolute";
H.style.left="20px";
H.style.backgroundColor="#fff";
H.style.top="20px";
H.style.width=C+"px";
H.style.height="20px";
H.style.zIndex="1";
H.innerHTML=(a10.zoom.TYPES.title[Q]);
a10.zoom.bubble.appendChild(H);
bubble=new a10.Bubble(a10.zoom.bubble,J,C+15,parseInt(J.style.height),"left",true,a10.zoom.closeBubble,20);
$("focusAnchor").focus();
function F(){a10.zoom.bubbleWasClicked=true;
}a10.zoom.bubbleWasClicked=true;
if(a10.browser.isIE6()){a10.zoom.cover=bubble.cover;
a10.zoom.cover.show();
a10.zoom.cover.iframe.style.setExpression("top","eval(document.body.scrollTop + "+(O-document.body.scrollTop+15)+")");
}};
a10.zoom.closeBubble=function(){if(a10.zoom.bubble){if(a10.zoom.bubble.parentNode){a10.zoom.bubble.parentNode.removeChild(a10.zoom.bubble);
}a10.zoom.bubble=null;
a10.zoom.activeBubble=a10.zoom.TYPES.NONE;
}if(a10.browser.isIE6()&&a10.zoom.cover){a10.zoom.cover.hide();
a10.zoom.cover=null;
}};
a10.zoom.resize=function(){var K=20;
var E=a10.browser.innerDimension()[1];
var L=150;
if(a10.zoom.windowHeight==E){return ;
}a10.zoom.closeBubble();
a10.zoom.windowHeight=E;
for(var I=1;
I<a10.zoom.TYPES.divId.length;
I++){var C=$(a10.zoom.TYPES.divId[I]);
if(C){L+=20;
if($(a10.zoom.TYPES.moreDivId[I])){L+=18;
}L+=20;
var G=C.getElementsByTagName("div");
for(var H=0;
H<G.length;
H++){L+=G[H].offsetHeight;
}}}L+=20;
if($("rightRail")){var F;
if($("askmodHeader")){F=E-L-100;
}else{F=E-L;
}var J=Math.abs(F/K);
if(J>0){if(F>0){J=Math.floor(J);
J-=a10.zoom.expandDiv(J,a10.zoom.TYPES.divId[a10.zoom.TYPES.NEWS_CAT],a10.zoom.TYPES.ovDivId[a10.zoom.TYPES.NEWS_CAT],a10.zoom.TYPES.moreDivId[a10.zoom.TYPES.NEWS_CAT]);
J-=a10.zoom.expandDiv(J,a10.zoom.TYPES.divId[a10.zoom.TYPES.NEWS_RELATED],a10.zoom.TYPES.ovDivId[a10.zoom.TYPES.NEWS_RELATED],a10.zoom.TYPES.moreDivId[a10.zoom.TYPES.NEWS_RELATED]);
J-=a10.zoom.expandDiv(J,a10.zoom.TYPES.divId[a10.zoom.TYPES.NEWS_FILTER],a10.zoom.TYPES.ovDivId[a10.zoom.TYPES.NEWS_FILTER],a10.zoom.TYPES.moreDivId[a10.zoom.TYPES.NEWS_FILTER]);
J-=a10.zoom.expandDiv(Math.ceil(J/2),a10.zoom.TYPES.divId[a10.zoom.TYPES.NARROW],a10.zoom.TYPES.ovDivId[a10.zoom.TYPES.NARROW],a10.zoom.TYPES.moreDivId[a10.zoom.TYPES.NARROW]);
J-=a10.zoom.expandDiv(Math.ceil(J/2),a10.zoom.TYPES.divId[a10.zoom.TYPES.EXPAND],a10.zoom.TYPES.ovDivId[a10.zoom.TYPES.EXPAND],a10.zoom.TYPES.moreDivId[a10.zoom.TYPES.EXPAND]);
J-=a10.zoom.expandDiv(Math.ceil(J/2),a10.zoom.TYPES.divId[a10.zoom.TYPES.RR_ZOOM],a10.zoom.TYPES.ovDivId[a10.zoom.TYPES.RR_ZOOM],a10.zoom.TYPES.moreDivId[a10.zoom.TYPES.RR_ZOOM]);
J-=a10.zoom.expandDiv(J,a10.zoom.TYPES.divId[a10.zoom.TYPES.VROOM],a10.zoom.TYPES.ovDivId[a10.zoom.TYPES.VROOM],a10.zoom.TYPES.moreDivId[a10.zoom.TYPES.VROOM]);
J-=a10.zoom.expandDiv(J,a10.zoom.TYPES.divId[a10.zoom.TYPES.RELATED],a10.zoom.TYPES.ovDivId[a10.zoom.TYPES.RELATED],a10.zoom.TYPES.moreDivId[a10.zoom.TYPES.RELATED]);
}if(F<0){J=Math.round(J);
var D=J;
J-=a10.zoom.contractDiv(Math.ceil(J/2),a10.zoom.TYPES.divId[a10.zoom.TYPES.VROOM],a10.zoom.TYPES.ovDivId[a10.zoom.TYPES.VROOM],a10.zoom.TYPES.moreDivId[a10.zoom.TYPES.VROOM],1);
J-=a10.zoom.contractDiv(J,a10.zoom.TYPES.divId[a10.zoom.TYPES.RR_ZOOM],a10.zoom.TYPES.ovDivId[a10.zoom.TYPES.RR_ZOOM],a10.zoom.TYPES.moreDivId[a10.zoom.TYPES.RR_ZOOM],1);
J-=a10.zoom.contractDiv(Math.floor(J/2),a10.zoom.TYPES.divId[a10.zoom.TYPES.RELATED],a10.zoom.TYPES.ovDivId[a10.zoom.TYPES.RELATED],a10.zoom.TYPES.moreDivId[a10.zoom.TYPES.RELATED],1);
J-=a10.zoom.contractDiv(Math.ceil(J/2),a10.zoom.TYPES.divId[a10.zoom.TYPES.EXPAND],a10.zoom.TYPES.ovDivId[a10.zoom.TYPES.EXPAND],a10.zoom.TYPES.moreDivId[a10.zoom.TYPES.EXPAND],1);
if(D==J){J-=a10.zoom.contractDiv(Math.ceil(J/2),a10.zoom.TYPES.divId[a10.zoom.TYPES.RELATED],a10.zoom.TYPES.ovDivId[a10.zoom.TYPES.RELATED],a10.zoom.TYPES.moreDivId[a10.zoom.TYPES.RELATED],1);
}J-=a10.zoom.contractDiv(J,a10.zoom.TYPES.divId[a10.zoom.TYPES.NARROW],a10.zoom.TYPES.ovDivId[a10.zoom.TYPES.NARROW],a10.zoom.TYPES.moreDivId[a10.zoom.TYPES.NARROW],1);
J-=a10.zoom.contractDiv(J,a10.zoom.TYPES.divId[a10.zoom.TYPES.NEWS_RELATED],a10.zoom.TYPES.ovDivId[a10.zoom.TYPES.NEWS_RELATED],a10.zoom.TYPES.moreDivId[a10.zoom.TYPES.NEWS_RELATED],4);
J-=a10.zoom.contractDiv(J,a10.zoom.TYPES.divId[a10.zoom.TYPES.NEWS_CAT],a10.zoom.TYPES.ovDivId[a10.zoom.TYPES.NEWS_CAT],a10.zoom.TYPES.moreDivId[a10.zoom.TYPES.NEWS_CAT],4);
J-=a10.zoom.contractDiv(J,a10.zoom.TYPES.divId[a10.zoom.TYPES.NEWS_FILTER],a10.zoom.TYPES.ovDivId[a10.zoom.TYPES.NEWS_FILTER],a10.zoom.TYPES.moreDivId[a10.zoom.TYPES.NEWS_FILTER],4);
}}}a10.zoom.items=new Array();
if(typeof a10.zoom.divIds!="undefined"&&a10.zoom.divIds){for(var I=0;
I<a10.zoom.divIds.length;
I++){var B=$(a10.zoom.divIds[I]);
if(B){var A=B.getElementsByTagName("a");
for(var H=0;
H<A.length;
H++){a10.zoom.items.push(A[H]);
}}}}};
a10.zoom.expandDiv=function(H,A,F,B){a10.debug("expand: "+H+" "+A+" "+F+" "+B);
var I=0;
var E=$(F);
if(H>0&&$(A)){var G=(E?E.getElementsByTagName("div").length:0);
var D=$(A).getElementsByTagName("div").length;
if(D<13&&G>0){var C=Math.min(G,Math.min(13-D,H));
a10.zoom.shiftAnchors(F,A,C,true);
I=C;
}}if(E&&$(B)){if(E.getElementsByTagName("div").length==0){$(B).style.display="none";
}else{$(B).style.display="";
}}return I;
};
a10.zoom.contractDiv=function(H,A,G,B,C){a10.debug("contract: "+H+" "+A+" "+G+" "+B+" "+C);
var I=0;
var F=$(G);
if(H>0&&$(A)){var E=$(A).getElementsByTagName("div").length-C;
if(E>0){var D=Math.min(E,H);
a10.zoom.shiftAnchors(A,G,D,false);
I=D;
}}if(F&&$(B)){if(F.getElementsByTagName("div").length>0){$(B).style.display="";
}else{$(B).style.display="none";
}}return I;
};
a10.zoom.shiftAnchors=function(F,D,H,I){var E=$(F);
var C=E.getElementsByTagName("div");
if(I){for(var G=0;
G<H;
G++){var B=C[0];
E.removeChild(B);
$(D).appendChild(B);
}}else{for(var G=0;
G<H;
G++){var B=C[C.length-1];
E.removeChild(B);
var A=$(D);
if(A.childNodes&&A.childNodes.length>0){A.insertBefore(B,A.childNodes[0]);
}else{A.appendChild(B);
}}}};

if(!a10){var a10={};
}a10.nb={};
a10.nb.navBubble=null;
a10.nb.clicked=false;
a10.nb.srcElement=null;
a10.nb.offsetTop=20;
a10.nb.offsetLeft=-15;
a10.nb.position="fixed";
a10.nb.bodyWidth="";
a10.nb.repositionBubble=function(){if(a10.nb.srcElement&&a10.nb.navBubble&&a10.nb.navBubble.style.display!="none"){var A=a10.util.findPos(a10.nb.srcElement);
a10.nb.navBubble.style.top=(A[1]+a10.nb.offsetTop)+"px";
a10.nb.navBubble.style.left=(A[0]+a10.nb.offsetLeft)+"px";
}};
a10.nb.md=function(H,G){var B=-1;
var A=($F("bizWhatFld")=="")?$F("a"):$F("bizWhatFld");
var I=null;
var E=H.href.indexOf("siteid=");
if(E!=-1){I=H.href.substr(E+7,H.href.length);
}var F=null;
var C=H.href.indexOf("dm=");
if(C!=-1){var D=H.href.indexOf("&",C+1);
if(D!=-1){F=H.href.substr(C+3,D-(C+3));
}else{F=H.href.substr(C+3);
}}if(A==""){A=$F("q");
}if(H.md){return true;
}if(G){H.href=G.replace("{0}",enc(A));
}else{if(H.href.indexOf("&q")>0){B=H.href.indexOf("&q");
H.href=H.href.substr(0,B+3)+enc(A);
}else{H.href=H.href+"&q="+enc(A);
}}if(F){H.href=H.href+"&dm="+F;
}if(I!=null){H.href=H.href+"&siteid="+I;
}if(H.href.indexOf("&o=")==-1&&$F("o")!=""){H.href=H.href+"&o="+enc($F("o"));
}if(H.href.indexOf("&l=")==-1&&$F("l")!=""){H.href=H.href+"&l="+enc($F("l"));
}if(H.href.indexOf("&dm=")==-1&&$F("dm")!=""){H.href=H.href+"&dm="+enc($F("dm"));
}if(H.href.indexOf("&siteid=")==-1&&$F("siteid")!=""){H.href=H.href+"&siteid="+enc($F("siteid"));
}H.md=1;
};
a10.nb.mde=function(A,D,C){var B=$F("q");
if(B){B=B.replace(/^\s+/g,"").replace(/\s+$/g,"");
if(B==""){A.href=C;
}else{a10.nb.md(A,D);
}}};
a10.nb.toggle=function(A){if(!A){A=window.event;
}var K;
var B=181;
var G=40;
var F=20;
var C=23;
var D=a10.nb.bodyWidth!=""?a10.nb.bodyWidth:190;
if(a10.nb.navBubble){if(a10.nb.navBubble.style.display==""){a10.nb.navBubble.style.display="none";
}else{var H=a10.util.findPos(a10.nb.srcElement);
a10.nb.navBubble.style.top=(H[1]+a10.nb.offsetTop)+"px";
a10.nb.navBubble.style.left=(H[0]+a10.nb.offsetLeft)+"px";
a10.nb.navBubble.style.display="";
a10.nb.clicked=true;
}return ;
}var J=A.target||A.srcElement;
if(J.tagName.toLowerCase()!="a"){J=J.parentNode;
}a10.nb.srcElement=J;
var H=a10.util.findPos(J);
a10.nb.navBubble=document.createElement("div");
a10.nb.navBubble.style.width="20px";
a10.nb.navBubble.style.height="20px";
a10.nb.navBubble.style.zIndex=14;
var L=(H[1]+a10.nb.offsetTop);
if(a10.browser.isIE6()){a10.nb.navBubble.style.position="absolute";
a10.nb.navBubble.style.setExpression("top","eval(document.body.scrollTop + "+(L-document.body.scrollTop)+")");
}else{a10.nb.navBubble.style.position=a10.nb.position;
a10.nb.navBubble.style.top=L+"px";
}a10.nb.navBubble.style.left=(H[0]+a10.nb.offsetLeft)+"px";
document.body.appendChild(a10.nb.navBubble);
var I=document.getElementById("navBubbleBody");
I.style.display="";
a10.nb.navBubble.appendChild(I);
K=I.offsetHeight;
if(K>=G&&K<=B){I.style.height=K+"px";
}else{I.style.height=((K>B)?B:G)+"px";
}new a10.Bubble(a10.nb.navBubble,I,D+15,0,"up",true,a10.nb.toggle);
$("navFocusAnchor").focus();
function E(){a10.nb.clicked=true;
}a10.nb.clicked=true;
};
a10.nb.close=function(){if(!a10.nb.clicked&&a10.nb.navBubble){a10.nb.navBubble.style.display="none";
}a10.nb.clicked=false;
};
if(typeof nbloaded!="undefined"){nbloaded();
}
if(!a10){var a10={};
}a10.bubble={};
a10.bubble.BORDER_WIDTH=25;
a10.bubble.SPRITE_WIDTH=700;
a10.bubble.SPRITE_HEIGHT=800;
if(typeof _sharedSprite!="undefined"){a10.bubble.SPRITE_URL=_sharedSprite;
}a10.bubble.TRANSPARENCY_BORDER={top:4,right:4,bottom:4,left:4};
a10.Bubble=function(B,G,D,J,H,I,K,A,F){this.direction=H;
this.content=G;
this.container=B;
if(A){this.heightOffset=A;
}if(I){this.closeButton=document.createElement("div");
this.closeButton.title="Close";
this.closeButton.style.backgroundImage="url("+a10.bubble.SPRITE_URL+")";
this.closeButton.style.backgroundPosition="-281px -265px";
this.closeButton.style.position="absolute";
this.closeButton.style.left=(D-4)+"px";
this.closeButton.style.top="18px";
this.closeButton.style.width="11px";
this.closeButton.style.height="11px";
this.closeButton.style.cursor="pointer";
this.closeButton.style.overflow="hidden";
this.closeButton.style.zIndex=5;
this.closeButton.onclick=K;
this.container.appendChild(this.closeButton);
a10.util.ie6PNGSpriteHack(this.closeButton);
}this.bubbleTop=document.createElement("div");
this.bubbleTop.style.backgroundImage="url("+a10.bubble.SPRITE_URL+")";
this.bubbleTop.style.height=a10.bubble.BORDER_WIDTH+"px";
if(D==0){D=parseInt(G.style.width);
}this.bubbleTop.style.width=D+"px";
this.bubbleTop.style.position="absolute";
this.bubbleTop.style.top="0px";
this.bubbleTop.style.left="0px";
this.bubbleTop.style.backgroundPosition="0px 0px";
this.container.appendChild(this.bubbleTop);
a10.util.ie6PNGSpriteHack(this.bubbleTop);
this.bubbleRight=document.createElement("div");
this.bubbleRight.style.backgroundImage="url("+a10.bubble.SPRITE_URL+")";
this.bubbleRight.style.backgroundPosition="-"+(a10.bubble.SPRITE_WIDTH-a10.bubble.BORDER_WIDTH)+"px 0px";
if(J==0){if(this.content.style.height){J=parseInt(this.content.style.height)+a10.bubble.BORDER_WIDTH-10+(A?A:0);
}else{J=parseInt(this.content.offsetHeight)+(A?A:0);
}}else{J+=a10.bubble.BORDER_WIDTH-10+(A?A:0);
}this.bubbleRight.style.height=J+"px";
this.bubbleRight.style.width=a10.bubble.BORDER_WIDTH+"px";
this.bubbleRight.style.position="absolute";
this.bubbleRight.style.left=D+"px";
this.bubbleRight.style.top="0px";
this.container.appendChild(this.bubbleRight);
a10.util.ie6PNGSpriteHack(this.bubbleRight);
this.bubbleBottom=document.createElement("div");
this.bubbleBottom.style.backgroundImage="url("+a10.bubble.SPRITE_URL+")";
this.bubbleBottom.style.backgroundPosition="-"+(a10.bubble.SPRITE_WIDTH-D)+"px -"+(a10.bubble.SPRITE_HEIGHT-a10.bubble.BORDER_WIDTH)+"px";
this.bubbleBottom.style.height=a10.bubble.BORDER_WIDTH+"px";
this.bubbleBottom.style.width=D+"px";
this.bubbleBottom.style.position="absolute";
this.bubbleBottom.style.top=(parseInt(this.bubbleRight.style.height))+"px";
this.bubbleBottom.style.left=a10.bubble.BORDER_WIDTH+"px";
this.container.appendChild(this.bubbleBottom);
a10.util.ie6PNGSpriteHack(this.bubbleBottom);
this.bubbleLeft=document.createElement("div");
this.bubbleLeft.style.backgroundImage="url("+a10.bubble.SPRITE_URL+")";
this.bubbleLeft.style.backgroundPosition="0px -"+(a10.bubble.SPRITE_HEIGHT-J)+"px";
this.bubbleLeft.style.height=J+"px";
this.bubbleLeft.style.width=a10.bubble.BORDER_WIDTH+"px";
this.bubbleLeft.style.position="absolute";
this.bubbleLeft.style.top=a10.bubble.BORDER_WIDTH+"px";
this.bubbleLeft.style.left="0px";
this.container.appendChild(this.bubbleLeft);
a10.util.ie6PNGSpriteHack(this.bubbleLeft);
this.bubbleConn=document.createElement("div");
this.bubbleConn.style.backgroundImage="url("+a10.bubble.SPRITE_URL+")";
if(this.direction=="up"){this.bubbleConn.style.backgroundPosition="-266px -265px";
this.bubbleConn.style.top="-5px";
var C=34;
if(F){C+=F;
}this.bubbleConn.style.left=C+"px";
this.bubbleConn.style.height="5px";
this.bubbleConn.style.width="9px";
}else{if(this.direction.indexOf("left")==0){this.bubbleConn.style.backgroundPosition="-260px -266px";
var C=-5;
if(F){C+=F;
}this.bubbleConn.style.left=C+"px";
this.bubbleConn.style.height="9px";
this.bubbleConn.style.width="5px";
if(this.direction.indexOf("-high")>0){this.bubbleConn.style.top=35+"px";
}else{this.bubbleConn.style.top=(J-20)+"px";
}}else{if(this.direction.indexOf("right")==0){this.bubbleConn.style.backgroundPosition="-276px -266px";
var C=-5;
if(F){C+=F;
}this.bubbleConn.style.left=(D+C+30)+"px";
this.bubbleConn.style.height="9px";
this.bubbleConn.style.width="5px";
if(this.direction.indexOf("-high")>0){this.bubbleConn.style.top=30+"px";
}else{this.bubbleConn.style.top=(J-25)+"px";
}}else{if(this.direction=="down"){this.bubbleConn.style.backgroundPosition="-266px -271px";
this.bubbleConn.style.top=(J+25)+"px";
var C=34;
if(F){C+=F;
}this.bubbleConn.style.left=C+"px";
this.bubbleConn.style.height="5px";
this.bubbleConn.style.width="9px";
}else{this.bubbleConn.style.height="0px";
this.bubbleConn.style.width="0px";
}}}}this.bubbleConn.style.position="absolute";
this.container.appendChild(this.bubbleConn);
a10.util.ie6PNGSpriteHack(this.bubbleConn);
var E=function(L){L=L||window.event;
L.cancelBubble=true;
return false;
};
this.bubbleBottom.onclick=this.bubbleLeft.onclick=this.bubbleRight.onclick=this.bubbleTop.onclick=this.bubbleConn.onclick=E;
if(a10.browser.isIE6()){this.cover=new a10.IFrameCover(this.content,{width:parseInt(a10.bubble.BORDER_WIDTH/2)+1});
}};
a10.Bubble.prototype.container;
a10.Bubble.prototype.content;
a10.Bubble.prototype.bubbleLeft;
a10.Bubble.prototype.bubbleTop;
a10.Bubble.prototype.bubbleRight;
a10.Bubble.prototype.bubbleBottom;
a10.Bubble.prototype.bubbleConn;
a10.Bubble.prototype.closeButton;
a10.Bubble.prototype.direction;
a10.Bubble.prototype.heightOffset;
a10.Bubble.prototype.setBorderSprite=function(A){if(this.bubbleBottom.style.backgroundImage!="url("+A+")"){if(!a10.browser.isIE6()){this.bubbleBottom.style.backgroundImage="url("+A+")";
this.bubbleTop.style.backgroundImage="url("+A+")";
this.bubbleLeft.style.backgroundImage="url("+A+")";
this.bubbleRight.style.backgroundImage="url("+A+")";
}else{this.bubbleLeft.childNodes[0].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+A+"', sizingMethod='crop')";
this.bubbleTop.childNodes[0].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+A+"', sizingMethod='crop')";
this.bubbleRight.childNodes[0].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+A+"', sizingMethod='crop')";
this.bubbleBottom.childNodes[0].style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+A+"', sizingMethod='crop')";
}}};
a10.Bubble.prototype.redraw=function(){var A=this.content.offsetHeight;
if(!A){A=220;
}if(this.heightOffset){A+=this.heightOffset;
}if(a10.browser.isIE6()){this.bubbleRight.style.height=A+"px";
this.bubbleRight.innerHTML="";
this.bubbleTop.innerHTML="";
this.bubbleRight.style.backgroundImage="url("+a10.bubble.SPRITE_URL+")";
this.bubbleTop.style.backgroundImage="url("+a10.bubble.SPRITE_URL+")";
a10.util.ie6PNGSpriteHack(this.bubbleRight);
a10.util.ie6PNGSpriteHack(this.bubbleTop);
}if(a10.browser.isIE6()){this.bubbleLeft.style.height=A+"px";
this.bubbleLeft.innerHTML="";
this.bubbleLeft.style.backgroundImage="url("+a10.bubble.SPRITE_URL+")";
a10.util.ie6PNGSpriteHack(this.bubbleLeft);
this.bubbleLeft.getElementsByTagName("div")[0].style.height=a10.bubble.SPRITE_HEIGHT+"px";
this.bubbleLeft.getElementsByTagName("div")[0].style.top="-"+(a10.bubble.SPRITE_HEIGHT-A)+"px";
this.bubbleRight.getElementsByTagName("div")[0].style.height=a10.bubble.SPRITE_HEIGHT+"px";
this.bubbleBottom.style.top=A+"px";
}else{this.bubbleLeft.style.height=A+"px";
this.bubbleLeft.style.backgroundPosition="0px -"+(a10.bubble.SPRITE_HEIGHT-A)+"px";
this.bubbleRight.style.height=A+"px";
this.bubbleBottom.style.top=(parseInt(this.bubbleRight.style.height))+"px";
}};
a10.Bubble.prototype.setSpriteDimension=function(B,E,C,A,D){a10.bubble.SPRITE_WIDTH=B;
a10.bubble.SPRITE_HEIGHT=E;
var C=parseInt(C);
var A=parseInt(A)+a10.bubble.BORDER_WIDTH-10+(D?D:0);
this.bubbleTop.style.backgroundPosition="0px 0px";
if(a10.browser.isIE6()){this.bubbleRight.childNodes[0].style.width=a10.bubble.SPRITE_WIDTH+"px";
this.bubbleRight.childNodes[0].style.left="-"+(a10.bubble.SPRITE_WIDTH-a10.bubble.BORDER_WIDTH)+"px";
this.bubbleRight.childNodes[0].style.backgroundPosition="-"+(a10.bubble.SPRITE_WIDTH-a10.bubble.BORDER_WIDTH)+"px 0px";
this.bubbleBottom.childNodes[0].style.width=a10.bubble.SPRITE_WIDTH+"px";
this.bubbleBottom.childNodes[0].style.height=a10.bubble.SPRITE_HEIGHT+"px";
this.bubbleBottom.childNodes[0].style.top="-"+(a10.bubble.SPRITE_HEIGHT-a10.bubble.BORDER_WIDTH)+"px";
this.bubbleBottom.childNodes[0].style.left="-"+(a10.bubble.SPRITE_WIDTH-parseInt(this.bubbleBottom.style.width))+"px";
this.bubbleBottom.childNodes[0].style.backgroundPosition="-"+(a10.bubble.SPRITE_WIDTH-C)+"px -"+(a10.bubble.SPRITE_HEIGHT-a10.bubble.BORDER_WIDTH)+"px";
this.bubbleLeft.childNodes[0].style.height=a10.bubble.SPRITE_HEIGHT+"px";
this.bubbleLeft.childNodes[0].style.top="-"+(a10.bubble.SPRITE_HEIGHT-parseInt(this.bubbleLeft.style.height))+"px";
}else{this.bubbleRight.style.backgroundPosition="-"+(a10.bubble.SPRITE_WIDTH-a10.bubble.BORDER_WIDTH)+"px 0px";
this.bubbleBottom.style.backgroundPosition="-"+(a10.bubble.SPRITE_WIDTH-C)+"px -"+(a10.bubble.SPRITE_HEIGHT-a10.bubble.BORDER_WIDTH)+"px";
}this.bubbleLeft.style.backgroundPosition="0px -"+(a10.bubble.SPRITE_HEIGHT-A)+"px";
};
a10.Bubble.prototype.setCloseButtonPosition=function(A,B,C){var A=parseInt(A);
this.closeButton.style.left=(A-B)+"px";
this.closeButton.style.top=C+"px";
};

function ss(A){window.status=A;
return true;
}function cs(){window.status="";
}
if(!ask){var ask={};
}ask.currentTime={};
ask.currentTime.clockEnabled=false;
ask.currentTime.HOURS=0;
ask.currentTime.MINS=1;
ask.currentTime.SECN=2;
ask.currentTime.AM_PM=3;
ask.currentTime.DAY=4;
ask.currentTime.MONTH=5;
ask.currentTime.DAY_OF_THE_MONTH=6;
ask.currentTime.YEAR=7;
ask.currentTime.SECOND=1000;
ask.currentTime.INVALID=-1;
ask.currentTime.TRANSITION_TIME="12:00:00";
var _Days=new Array("MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY");
var _Months=new Array("JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER");
ask.currentTime.init=function(){var A=document.getElementById("ctHoursMinutes");
if(A!=null&&!ask.currentTime.clockEnabled){ask.currentTime.clockEnabled=true;
if(ask.currentTime.getStoredOffset()!=ask.currentTime.INVALID){if(a10.browser.isFirefox()){ask.currentTime.updateClock();
}setTimeout("ask.currentTime.updateClock()",ask.currentTime.SECOND);
return ;
}var C=ask.currentTime.getItems();
var K=C.split(":");
var N=a10.util.trim(K[ask.currentTime.AM_PM]);
var H=Number(K[ask.currentTime.YEAR]);
var G=new String(K[ask.currentTime.MONTH]).toUpperCase();
var E=0;
for(E;
E<_Months.length;
E++){if(G==_Months[E]){break;
}}var F=E;
var J=K[ask.currentTime.DAY];
var M=Number(K[ask.currentTime.DAY_OF_THE_MONTH]);
var L=Number(K[ask.currentTime.HOURS]);
if(N=="AM"&&L==12){L=0;
}else{if(N=="PM"&&L!=12){L+=12;
}}var B=Number(K[ask.currentTime.MINS]);
var I=Number(K[ask.currentTime.SECN]);
var D=ask.currentTime.computeOffset(H,F,M,L,B,I);
if(!ask.currentTime.validate(H,F,M,L,B,I,D)){return ;
}ask.currentTime.setStoredOffset(D);
setTimeout("ask.currentTime.updateClock()",ask.currentTime.SECOND);
}else{setTimeout("ask.currentTime.init()",ask.currentTime.SECOND);
}};
ask.currentTime.updateClock=function(){var N=document.getElementById("ctHoursMinutes");
if(N!=null){var K=new Date();
var I=document.getElementById("ctHoursMinutes");
var A=document.getElementById("ctSecs");
var L=document.getElementById("ctAmPm");
var P=document.getElementById("ctDate");
var B=ask.currentTime.getStoredOffset();
var M=K.getTime();
var T=M+B;
var O=new Date();
O.setTime(T);
var C=null;
var H=O.getFullYear();
var S=O.getMonth();
var G=_Months[S];
var J=O.getDate();
var R=_Days[O.getDay()];
var Q=O.getHours();
var E=O.getMinutes();
var F=O.getSeconds();
if(!ask.currentTime.validate(H,S,J,Q,E,F,B)){return ;
}if(Q>=12){C="PM";
}else{C="AM";
}if(Q>=13){Q-=12;
}if(Q==0){Q=12;
}if(F<10){F="0"+F;
}if(E<10){E="0"+E;
}if(Q<10){Q="0"+Q;
}var D=Q+":"+E+":"+F;
if(D==ask.currentTime.TRANSITION_TIME){window.location.reload(true);
}L.innerHTML="<b>"+C+"</b><br/>";
A.innerHTML=":"+F;
I.innerHTML=Q+":"+E;
P=R+","+O.getDate()+" "+G+" "+O.getYear();
setTimeout("ask.currentTime.updateClock()",ask.currentTime.SECOND);
}else{ask.currentTime.clockEnabled=false;
ask.currentTime.setStoredOffset(ask.currentTime.INVALID);
}};
ask.currentTime.validate=function(B,E,D,A,C,G,F){if(!ask.currentTime.validateString(B)||!ask.currentTime.validateString(E)||!ask.currentTime.validateString(D)||!ask.currentTime.validateString(A)||!ask.currentTime.validateString(C)||!ask.currentTime.validateString(G)||!ask.currentTime.validateString(F)){ask.currentTime.clockEnabled=false;
ask.currentTime.setStoredOffset(ask.currentTime.INVALID);
setTimeout("ask.currentTime.init()",ask.currentTime.SECOND);
return false;
}return true;
};
ask.currentTime.validateString=function(B){var A=a10.util.trim(new String(B));
if(isNaN(A)||a10.util.isEmpty(A)){return false;
}return true;
};
ask.currentTime.getStoredOffset=function(){if(document.getElementById("offset")==null){return ask.currentTime.INVALID;
}return Number(document.getElementById("offset").value);
};
ask.currentTime.setStoredOffset=function(A){if(document.getElementById("offset")!=null){document.getElementById("offset").value=A;
}};
ask.currentTime.getItems=function(){var A=document.getElementById("ctHoursMinutes");
var F=document.getElementById("ctSecs");
var G=document.getElementById("ctAmPm");
var D=document.getElementById("ctDate");
var C=A.innerHTML;
C+=F.innerHTML;
C+=":"+G.innerHTML;
var B=D.innerHTML;
if(B.indexOf("\u0020")!=ask.currentTime.INVALID){var H=B.split("\u0020");
C+=":"+H[0];
C+=":"+H[1];
C+=":"+H[2];
C+=":"+H[3];
}else{C+=":"+B;
}C=C.toUpperCase();
var E=C.replace(new RegExp("<BR>","mig")," ");
E=E.replace(new RegExp("<B>","mig")," ");
E=E.replace(new RegExp("</B>","mig")," ");
E=E.replace(new RegExp(",","mig")," ");
E=E.replace(new RegExp("\n","mig")," ");
E=a10.util.trim(E);
return E;
};
ask.currentTime.computeOffset=function(E,C,I,H,A,G){var D=new Date();
var J=new Date();
J.setFullYear(E,C,I);
J.setHours(H,A,G);
var B=D.getTime();
var F=J.getTime();
return F-B;
};

var domain="ask.com";
if(document.domain.indexOf("ask")!=-1&&document.domain.indexOf("reference.com")!=-1){domain="reference.com";
}if(!ask){var ask={};
}if(!ask.nav){ask.nav={};
}ask.nav.SendToMailSAController={init:function(){},ismaxlength:function(B){var A=B.getAttribute?parseInt(B.getAttribute("maxlength")):"";
if(B.getAttribute("id")!=null&&B.getAttribute("id")=="textAreapdiv"){if(B.getAttribute&&B.innerHTML.length>A){B.innerHTML=B.innerHTML.substring(0,A);
}}else{if(B.getAttribute&&B.value.length>A){B.value=B.value.substring(0,A);
}}},showval:function(){var B=$("message");
var A=$("textAreapdiv");
if(A){B.value=A.innerHTML;
}ask.nav.SendToMailSAController.setRecaptchaFocusOnTab();
},iframeLoad:function(){if(document.getElementById("firstLoad").value=="true"){document.getElementById("stmsaTo").focus();
document.getElementById("firstLoad").value="false";
}else{ask.nav.SendToMailSAController.setRecaptchaFocus();
}},setRecaptchaFocusOnTab:function(A){var A=(A)?A:((event)?event:null);
if(A.keyCode==9&&!(A.shiftKey)){ask.nav.SendToMailSAController.setRecaptchaFocus();
if(a10.browser.isSafari()||a10.browser.isFirefox()||a10.browser.isOpera()){A.stopPropagation();
A.preventDefault();
}else{if(a10.browser.isIE()){window.event.returnValue=false;
}}return false;
}},setRecaptchaFocus:function(){if(a10.browser.isFirefox()||a10.browser.isOpera()){$("recaptcha").contentWindow.document.getElementById("recaptcha_response_field").focus();
}else{var A=frames["recaptcha"].document.forms[0];
A["recaptcha_response_field"].focus();
}},wrapMessage:function(){if($("message")==null||$("message").value==null){return ;
}var C=$("message").value;
var B=0;
var A=B+21;
while(A<C.length){if(C.substring(B,A+1).indexOf(" ")>-1){B=B+C.substring(B,A+1).indexOf(" ")+1;
A=B+21;
}else{C=C.substring(0,B)+C.substring(B,A)+" "+C.substring(A,C.length);
B=A+1;
A=B+21;
$("message").value=C;
}}},getSAContent:function(A){if(window["emailAjaxRequest"]!=null){return ;
}sct(51324);
window["emailAjaxRequest"]=a10.ajax.get(_sendToMailSAFetchUrl+"?"+A,ask.nav.SendToMailSAController.saContentRetrieved,ask.nav.SendToMailSAController.saContentFailed);
},saContentRetrieved:function(A){$("sendtomailsa").innerHTML="";
$("sendtomailsa").innerHTML=A.responseText;
sendtomailsaDialog.show();
window["emailAjaxRequest"]=null;
},saContentFailed:function(){alert("Unable to retrieve providers. Please try again.");
window["emailAjaxRequest"]=null;
},sendTo:{focus:function(){if($("stmsaTo").value=="i.e, johnsmith@ask.com"){$("stmsaTo").value="";
$("stmsaTo").style.fontStyle="";
$("stmsaTo").style.color="#000000";
}},blur:function(){if($("stmsaTo").value==""){$("stmsaTo").value="i.e, johnsmith@ask.com";
$("stmsaTo").style.fontStyle="italic";
$("stmsaTo").style.color="#666666";
}}},yourMail:{focus:function(){if($("stmsaFrom").value=="i.e, janesmith@ask.com"){$("stmsaFrom").value="";
$("stmsaFrom").style.fontStyle="";
$("stmsaFrom").style.color="#000000";
}},blur:function(){if($("stmsaFrom").value==""){$("stmsaFrom").value="i.e, janesmith@ask.com";
$("stmsaFrom").style.fontStyle="italic";
$("stmsaFrom").style.color="#666666";
}}},emailvalidate:function(D){var B="@";
var C=".";
var A=",";
var H=D;
var G=H.indexOf(B);
var E=H.length;
var F=H.indexOf(C);
if(H.indexOf(A)!=-1){return false;
}if(H.indexOf(B)==-1||H.indexOf(B)==0||H.indexOf(B)==E){return false;
}if(H.indexOf(C)==-1||H.indexOf(C)==0||H.indexOf(C)==E){return false;
}if(H.indexOf(B,(G+1))!=-1){return false;
}if(H.substring(G-1,G)==C||H.substring(G+1,G+2)==C){return false;
}if(H.indexOf(C,(G+2))==-1){return false;
}if(H.indexOf(" ")!=-1){return false;
}return true;
},createURLParam:function(){var E=$("sendtomailsaform");
var A="";
var D=E.getElementsByTagName("input");
var B=0;
for(var C=0;
C<D.length;
C++){if(C==0){A=A+D[C].name+"="+escape(D[C].value);
}else{A=A+"&"+D[C].name+"="+escape(D[C].value);
}B=1;
}D=E.getElementsByTagName("textarea");
for(var C=0;
C<D.length;
C++){if(B==1){A=A+"&"+D[C].name+"="+escape(D[C].value);
}else{A=A+D[C].name+"="+escape(D[C].value);
}}return A;
},cancel:function(){sendtomailsaDialog.hide();
},close:function(){sendtomailsaDialog.hide();
},sendMailSA:function(){var B=$("sendtomailsaform");
var K=this.trim(B.From.value);
var H=this.trim(B.To.value);
document.domain=domain;
var A=ask.nav.SendToMailSAController.emailvalidate(K);
while(H.indexOf(";")>-1){H=H.replace(";",",");
}while(H.indexOf(" ")>-1){H=H.replace(" ","");
}var L=H.split(",");
var E=0;
var I=false;
while(E<L.length){I=ask.nav.SendToMailSAController.emailvalidate(L[E]);
if(!I){break;
}E+=1;
}this.removeError();
if(!A&&!I){this.displayError(GlobalNav.Messages.sendtomailsa_fromto_error);
B.To.focus();
ask.nav.SendToMailSAController.sendTo.focus();
ask.nav.SendToMailSAController.showError($("sendTo"),$("sendToWarning"));
ask.nav.SendToMailSAController.showError($("yourMail"),$("yourMailWarning"));
return false;
}else{if(!I){this.displayError(GlobalNav.Messages.sendtomailsa_fromto_error);
B.To.focus();
ask.nav.SendToMailSAController.sendTo.focus();
ask.nav.SendToMailSAController.showError($("sendTo"),$("sendToWarning"));
return false;
}else{if(!A){this.displayError(GlobalNav.Messages.sendtomailsa_fromto_error);
B.From.focus();
ask.nav.SendToMailSAController.yourMail.focus();
ask.nav.SendToMailSAController.showError($("yourMail"),$("yourMailWarning"));
return false;
}}}B.To.value=H;
$("sacontent").value=escape($("stmsaContent").innerHTML);
if(a10.browser.isFirefox()||a10.browser.isOpera()){if($("recaptcha")&&$("recaptcha")!=null&&$("recaptcha").contentWindow!=null&&$("recaptcha").contentWindow.document!=null){try{if($("recaptcha").contentWindow.document.getElementById("recaptcha_response_field")!=null&&$("recaptcha").contentWindow.document.getElementById("recaptcha_challenge_field")!=null){$("recaptchaResponse").value=$("recaptcha").contentWindow.document.getElementById("recaptcha_response_field").value;
$("recaptchaImage").value=$("recaptcha").contentWindow.document.getElementById("recaptcha_challenge_field").value;
}}catch(F){}}}else{try{if(frames["recaptcha"]!=null&&frames["recaptcha"].document!=null&&frames["recaptcha"].document.forms!=null&&frames["recaptcha"].document.forms[0]!=null){var D=frames["recaptcha"].document.forms[0];
if(D["recaptcha_challenge_field"]!=null&&D["recaptcha_response_field"]!=null){$("recaptchaImage").value=D["recaptcha_challenge_field"].value;
$("recaptchaResponse").value=D["recaptcha_response_field"].value;
}}}catch(F){}}var M=this.createURLParam();
$("sending").style.display="block";
var J=B.action;
sct(51325);
a10.ajax.post(J,M,G,C);
function G(N){if(N.responseText.indexOf("success_sendtomail")>-1){var P=N.responseText;
P=P.replace("success_sendtomail","");
sendtomailsaDialog.hide();
$("sendtomailsa").innerHTML="";
$("sendtomailsa").innerHTML=P;
sendtomailsaDialog.show();
return ;
}else{if(N.responseText.indexOf("Recaptcha Failure")>-1){ask.nav.SendToMailSAController.displayError(GlobalNav.Messages.sendtomailsa_recaptcha_error);
ask.nav.SendToMailSAController.showError($("antispam"),$("antispamWarning"));
var O=document.getElementById("recaptcha");
O.src=O.src;
return ;
}}ask.nav.SendToMailSAController.displayError(GlobalNav.Messages.sendtomailsa_server_not_available);
}function C(N){ask.nav.SendToMailSAController.displayError(GlobalNav.Messages.sendtomailsa_server_not_available);
}return false;
},showError:function(B,A){B.className="T14";
A.style.display="block";
},trim:function(A){return A.replace(/^\s+/g,"").replace(/\s+$/g,"");
},displayError:function(A){if($("stmsaError")!=null){$("stmsaError").innerHTML=A;
$("stmsaError").style.display="block";
$("stmsaErrorWarning").style.display="block";
}$("sending").style.display="none";
},removeError:function(){$("stmsaError").style.display="none";
$("stmsaErrorWarning").style.display="none";
$("antispam").className="T1";
$("antispamWarning").style.display="none";
$("sendTo").className="T1";
$("sendToWarning").style.display="none";
$("yourMail").className="T1";
$("yourMailWarning").style.display="none";
$("sending").style.display="none";
}};
ask.nav.SendToMailSAController.init();

