if(!ask){var ask={};
}var _fFlag=false;
var _hasRRContent=false;
var _RRContentBottom=false;
var _repositionHeader=false;
var _brandtest=false;
var _isRRInitialPos=false;
var originalQuery="";
var param="";
var currLeft="";
var _isNewsChannel=false;
var Const={};
Const.RIGHT_PANE="rpane";
Const.RELATED_SEARCH_PANE="rspane";
Const.RIGHT_RAIL="sapane";
Const.SEARCH_SUGGESTION_PANE="sgpane";
Const.SEARCH_SUGGESTION_BODY="sgbody";
Const.MAIN_PANE="main";
Const.DEBUG_PANE="debug";
Const.REPOSITION_THREADHOLD=990;
if(!a10){var a10={};
}if(typeof a10.browser=="undefined"||a10.browser==null){a10.browser={};
}if(a10.ss){a10.ss.hp=="false";
}function getContent(D,A){if(A){var C=A.indexOf("<!-- "+D+"_start -->");
var B=A.indexOf("<!-- "+D+"_end -->");
if(C!=-1&&B!=-1){return A.substring(C,B);
}}return"";
}function isWindowResized(){var B=a10.browser.innerDimension();
var A=B[0];
if(window.screen.width>A){return true;
}return false;
}function initPage(){registerWheelScrollListener();
setImageFilters();
if(document.ft){document.ft.reset();
}repositionNavBarDent();
if($("q")){if(typeof (_disableSS)!="undefined"&&!_disableSS&&((typeof document.domain=="undefined"||(document.domain.indexOf(Global_IACAPN.Constants.qbyrdDomain)==-1&&document.domain.indexOf(Global_IACAPN.Constants.searchResultsDomain)==-1)||(typeof (GlobalNav)!="undefined"&&(GlobalNav.Variables._locale=="us"||GlobalNav.Variables._locale=="uk")))||(typeof (_isIntSymantecEnLanguage)!="undefined"&&_isIntSymantecEnLanguage))){a10.ss.init("q",_sgpaneId,_sgbodyId);
}}if((typeof (GlobalNav)!="undefined"&&GlobalNav.Variables._locale=="us")&&isWindowResized()){if(_repositionHeader){repositionHeader();
}if(a10.browser.isIE7()||a10.browser.isSafari()){setTimeout(repositionNavBarDent,100);
}else{repositionNavBarDent();
}}document.documentElement.onclick=mouseClicked;
document.documentElement.onmousedown=mouseDowned;
if(document.getElementById("midRailMeasure")){arrangeTiles();
}if(typeof GlobalNav!="undefined"&&GlobalNav.Variables._locale=="us"&&(typeof document.domain=="undefined"||((typeof _isAskSlimUI=="undefined"||!_isAskSlimUI)&&document.domain.indexOf(Global_IACAPN.Constants.qbyrdDomain)==-1&&document.domain.indexOf(Global_IACAPN.Constants.searchResultsDomain)==-1)||(typeof a10.zoom!="undefined"&&a10.zoom!=null))){a10.zoom.resize();
}window.onresize=windowSizeChanged;
if(typeof _debugEnabled!="undefined"&&_debugEnabled){moveDebugSection();
}repositionNavBarDent();
setTimeout(lazyLoadSupplementalFiles,10);
}function mouseDowned(C){try{C=window.event||C;
var B=C.srcElement||C.target;
if(B&&B.getAttribute("id")=="cat"){return ;
}if(B&&B.parentNode&&B.parentNode.id=="optionsCategory"){return ;
}if(B&&B.parentNode&&B.parentNode.parentNode&&B.parentNode.parentNode.id=="optionsCategory"){return ;
}}catch(C){}var A=document.getElementById("dropDownCategory");
if(A&&A.style.display!="none"){A.style.display="none";
}}function lazyLoadSupplementalFiles(){if(window["_currentChannel"]&&_currentChannel=="web"&&typeof Binocs!="undefined"&&typeof Binocs.jsSrc!="undefined"){a10.util.insertScript(Binocs.jsSrc,"binocScript");
}if(window["_currentChannel"]&&(_currentChannel=="web")&&typeof Norton!="undefined"&&typeof Norton.jsSrc!="undefined"){a10.util.insertScript(Norton.jsSrc,"nortonScript");
}if(window["_currentChannel"]&&(_currentChannel=="web")&&typeof DialogsFrwk!="undefined"&&typeof DialogsFrwk.jsSrc!="undefined"){a10.util.insertScript(DialogsFrwk.jsSrc,"dialogsFrwkScript");
}if(window["_currentChannel"]&&(_currentChannel=="web")&&typeof DialogsSafe!="undefined"&&typeof DialogsSafe.jsSrc!="undefined"){a10.util.insertScript(DialogsSafe.jsSrc,"dialogsSafeScript");
}if(window["_cssPaths"]){for(var A=0;
A<_cssPaths.length;
A++){a10.util.insertStyleSheet(_cssPaths[A],"style"+A);
}}if(window["_vidJsSrc"]){a10.util.insertScript(_vidJsSrc,"vidScript");
}if(window["_rightrailJsSrc"]){a10.util.insertScript(_rightrailJsSrc,"righrailScript");
}if(window["_dialogJsSrc"]){a10.util.insertScript(_dialogJsSrc,"dialogJsSrc");
}}function dialogLoaded(){window.videoDialog=new ask.ui.VideoDialog("videoUI_container","video",400,{noDefaultPadding:"0"});
function A(){switch(_currentChannel){case"web":return GlobalNav.Messages.msSaveWeb;
case"img":return GlobalNav.Messages.msSaveImg;
case"vid":return GlobalNav.Messages.msSaveVid;
default:return GlobalNav.Messages.msSaveDef;
}}}function mouseClicked(A){if(!A){A=window.event;
}}function wheelScroll(A){var H=0;
if(!A){A=window.event;
}if(A.wheelDelta){H=A.wheelDelta/120;
if(a10.browser.isOpera()){var E=a10.browser.version();
if(E&&E<9.2){H=-H;
}}}else{if(A.detail){H=-A.detail/3;
}}var D;
if(A.target){D=A.target;
}else{if(A.srcElement){D=A.srcElement;
}}if((D&&D.tagName&&D.tagName.toLowerCase()=="select")||(D&&D.parentNode&&D.parentNode.tagName&&D.parentNode.tagName.toLowerCase()=="select")){return ;
}if(H){var I;
var C;
if(document.all){var G=getScrollableBubbles();
var B;
for(B=0;
B<G.length;
B++){var F=G[B];
if($(F.id)){I=a10.element.containsPoint($(F.id),A.clientX,A.clientY,F.pageScrollDep);
if(I){C=F.id;
break;
}}}}if(I&&C){$(C).scrollTop+=H*40*-1;
a10.event.cancelDefaultAction(A);
}else{window.scrollBy(0,H*40*-1);
a10.event.cancelDefaultAction(A);
}}}function getScrollableBubbles(){return[{id:"bubble-content",pageScrollDep:true}];
}function registerWheelScrollListener(){if(a10.browser.isFirefox()){var A=$("leftRail");
if(A){A.addEventListener("DOMMouseScroll",wheelScroll,false);
}}if(a10.browser.isIE()||a10.browser.isOpera()){window.onmousewheel=document.onmousewheel=wheelScroll;
}}function ad_hover(A){if(_fFlag){return ;
}}function ad_unhover(A){if(_fFlag){return ;
}}var disableHoverColor=false;
var VideoChannel={setDisableHoverColor:function(A){disableHoverColor=A;
},hoverVideo:function(F,G,A,C,B){if(B.indexOf(".swf")!=-1){var D=new SWFObject(B,"mov"+F,A,C,"6","#ffffff");
D.addParam("quality","high");
D.addParam("wmode","transparent");
D.write("rollover"+F);
}var E=document.getElementById("rollover"+F);
E.style.display="inline";
},unhoverVideo:function(E,D,A,B){var C=document.getElementById("rollover"+E);
C.style.display="none";
},getSearchParams:function(D){var A="";
if(typeof source!="undefined"){A=source;
}var B=$F("nsdradio");
var C="";
if(D=="false"){_qsrc=$F("qsrc");
if(a10.ss){a10.ss.updateQsrc();
}}if($F("changeDomain")){C="0";
if($(B)&&$(B).checked){C=$F("nsdurl");
}}_channel="vid";
_origin=$F("o");
_partnerID=$F("l");
_atb=$F("atb");
_gct=$F("gct");
if(_origin==""){_origin=0;
}if(_partnerID==""){_partnerID="dir";
}if(D=="false"){return{q:$F("q"),gct:_gct,pg:1,vidt:($("vidt")?$F("vidt"):""),vidl:($("vidl")?$F("vidl"):""),vids:($("vids")?$F("vids"):""),ch:_channel,qsrc:_qsrc,o:_origin,l:_partnerID,nsd:C,atb:($("atb")?$F("atb"):"")};
}else{return{q:$F("q"),gct:_gct,pg:1,vidt:($("vidt")?$F("vidt"):""),vidl:($("vidl")?$F("vidl"):""),vids:($("vids")?$F("vids"):""),ch:_channel,o:_origin,l:_partnerID,nsd:C,atb:($("atb")?$F("atb"):"")};
}},hover:function(D){var A=document.getElementById("picBox"+D);
var B=a10.util.getElementsByClassName("saveButton",A)[0];
if(B&&!B.ignore){B.style.visibility="visible";
}var C=A.getElementsByTagName("table");
if(disableHoverColor==undefined||!disableHoverColor){C[0].style.backgroundColor="#ff8086";
}if(C.length>1){C[1].style.backgroundColor="#fff2D8";
}},unhover:function(C){var A=document.getElementById("picBox"+C);
var B=a10.util.getElementsByClassName("saveButton",A)[0];
if(B&&!B.ignore){B.style.visibility="hidden";
}elts=A.getElementsByTagName("table");
if(elts.length>0){elts[0].style.backgroundColor="#fff";
}if(elts.length>1){elts[1].style.backgroundColor="#fff";
}},resetFilters:function(A){$("sort").value="";
$("vidt").selectedIndex=0;
$("vidl").selectedIndex=0;
if($("vids")){$("vids").value="";
}searchVid(A);
},showDialog:function(A,I,D,H,B,G,C,M,F,L,J,E,K){K=K+"&ord="+Math.floor(Math.random()*100000).toString();
new Image().src=K;
videoDialog.show(A,I,D,H,B,G,C,M,F,L,J,E);
return false;
}};
var ImageChannel={getSearchParams:function(A){_channel="img";
if(A=="false"){_qsrc=$F("qsrc");
if(a10.ss){a10.ss.updateQsrc();
}}_origin=$F("o");
_partnerID=$F("l");
_atb=$F("atb");
_gct=$F("gct");
if(_origin==""){_origin=0;
}if(_partnerID==""){_partnerID="dir";
}if(A=="false"){return{q:$F("q"),gct:_gct,imgs:($("imgs")?$F("imgs"):""),imgt:($("imgt")?$F("imgt"):""),imgc:($("imgc")?$F("imgc"):""),qsrc:_qsrc,o:_origin,l:_partnerID,atb:($("atb")?$F("atb"):"")};
}else{return{q:$F("q"),gct:_gct,imgs:($("imgs")?$F("imgs"):""),imgt:($("imgt")?$F("imgt"):""),imgc:($("imgc")?$F("imgc"):""),o:_origin,l:_partnerID,atb:($("atb")?$F("atb"):"")};
}},hover:function(C,A){if(!A){var B=C.getElementsByTagName("span");
if(!B[0].ignore){B[0].style.visibility="visible";
}}B=C.getElementsByTagName("table");
B[0].style.backgroundColor="#ff8086";
B[1].style.backgroundColor="#fff2D8";
},unhover:function(C,A){if(!A){var B=C.getElementsByTagName("span");
if(!B[0].ignore){B[0].style.visibility="hidden";
}}B=C.getElementsByTagName("table");
B[0].style.backgroundColor="#fff";
B[1].style.backgroundColor="#fff";
},resetFilters:function(A){$("imgs").selectedIndex=0;
$("imgt").selectedIndex=0;
$("imgc").selectedIndex=0;
searchPic(A);
},resetPicsFilters:function(A){$("imgs").selectedIndex=0;
$("imgc").selectedIndex=0;
searchPic(A);
}};
function calculateMidRailWidth(){var A=0;
if(a10.browser.isIE6()){if($("rightRail").offsetWidth!=0){A=Math.floor(0.66*a10.browser.innerDimension()[0]);
}else{A=a10.browser.innerDimension()[0];
}}else{A=$("midRail").offsetWidth;
}var B=35;
return A-B;
}function arrangeTiles(){var J=calculateMidRailWidth();
var S;
var B=173;
var L=216;
var T=(_channel=="img"?6:2);
var U=(_channel=="img"?3:2);
var A=5;
var C=9;
var M=(typeof _providerPicSearch!="undefined"&&_providerPicSearch=="true"?20:36);
var G=12;
var E=500;
var R=150;
var V=12;
var I="sh/i/i.gif";
if(typeof _tileWidth!="undefined"){B=_tileWidth;
}if(typeof _tileHeight!="undefined"){L=_tileHeight;
}if(a10.browser.isIE6()){B+=2;
}if(typeof _totalTileCount!="undefined"){G=_totalTileCount;
}var Q=Math.floor(J/B);
if(Q>C){Q=C;
}if(Q<U){Q=U;
}var D=a10.browser.innerDimension()[1]-R;
E=D;
if($("rightRail")){var K=$("rightRail");
var O=K.offsetHeight;
if(K.offsetHeight>E){E=K.offsetHeight;
}}var P=Math.ceil(E/L);
if(P>A){P=A;
}if(P<T){P=T;
}V=P*Q;
if(typeof _providerPicSearch!="undefined"&&_providerPicSearch){V=G;
}if(V>M){V=M;
if(G<P){Q=1;
}else{if((typeof _firstTileIndex!="undefined")&&(typeof _totalAvailable!="undefined")){if(!((_firstTileIndex+V)>_totalAvailable)){V=P*Q;
}}}}var F=J-(Q*B);
var W=F/Q;
var N=Math.floor(W/2);
if(document.getElementById("picBox"+S)){for(S=0;
S<G;
S++){document.getElementById("picBox"+S).style.marginRight="0px";
document.getElementById("picBox"+S).style.clear="none";
}for(S=0;
S<G;
S++){if(S<V){document.getElementById("picBox"+S).style.display="block";
document.getElementById("picBox"+S).style.visibility="visible";
}else{document.getElementById("picBox"+S).style.display="none";
document.getElementById("picBox"+S).style.visibility="hidden";
}if((S%Q)!=Q-1){document.getElementById("picBox"+S).style.marginRight=Math.floor(W)+"px";
}}}for(S=0;
S<G;
S++){if(S<V&&document.getElementById("image"+S)){if(document.getElementById("image"+S).src.indexOf(I)!=-1){document.getElementById("image"+S).src=_images[S];
}}}if(_currentChannel!="vid"){if(typeof _totalTileCount!="undefined"&&typeof _providerPicSearch!="undefined"&&_providerPicSearch=="true"){V=_totalTileCount;
}}writeShowingResults(V);
if(_currentChannel=="vid"){if(typeof _maxQbyrdTiles!="undefined"){V=_maxQbyrdTiles;
}if(typeof currNumPageResultsQbyrd!="undefined"&&currNumPageResultsQbyrd>V){writeShowingResults(V);
}}if(_currentChannel=="vid"&&_totalAvailable<V){var H=$("paging");
if(H){H.style.marginTop="0px";
H.style.paddingBottom="0px";
}}if(typeof _totalTileCount!="undefined"){V=_totalTileCount;
}else{if(typeof _maxQbyrdTiles!="undefined"&&V>_maxQbyrdTiles){V=_maxQbyrdTiles;
}}writePaging(V);
}function writeShowingResults(A){var B=0;
var C=0;
if(typeof _firstTileIndex!="undefined"&&_firstTileIndex!=0){B=_firstTileIndex;
}C=B+A;
if((typeof _totalTileCount!="undefined")){if(_totalTileCount<A){C=B+_totalTileCount;
}}if((typeof _providerPicSearch!="undefined")){if($("indexFirst")){if(_providerPicSearch!="true"){var D=$("indexFirst");
D.innerHTML=B+1;
}}if($("indexLast")){if(_providerPicSearch!="true"){var D=$("indexLast");
D.innerHTML=C;
}}}}function writePaging(A){var E;
var B;
if(typeof _currentChannel!="undefined"){if(_currentChannel=="img"){E=ImageChannel.getSearchParams();
B=_baseUrl+"/pictures?"+a10.browser.buildParamString(E);
}else{if(_currentChannel=="vid"){E=VideoChannel.getSearchParams();
B=_baseUrl+"/video?"+a10.browser.buildParamString(E);
}}}if((typeof _psQuerySource!="undefined")&&(typeof _psQueryID!="undefined")){B+="&qsrc="+_psQuerySource+"&qid="+_psQueryID;
}if((typeof _psClusterID!="undefined")){B+="&clfid="+_psClusterID;
}var D=(typeof _firstTileIndex!="undefined"&&_firstTileIndex!=0)?_firstTileIndex:0;
var C=320;
if((typeof _totalAvailable!="undefined")){if((_totalAvailable<C)&&_totalAvailable!=0){C=_totalAvailable;
}}generateQbyrdPagingStrip(B,D,A,C,true);
}function generateQbyrdPagingStrip(H,G,T,L,U){var P=1;
var N=10;
var J="";
var Q=1;
var D="";
var S="";
var M=1;
var O=10;
var R=0;
var I=Math.ceil(L/T);
var V=(T>G)?0:(G%T);
P=(V==0)?Math.round((G+T)/T):Math.ceil(G/T);
if(I==1&&G!=0){I+=1;
P=I;
}else{if((G+T)>=L){if(P<I){I=P;
}}}var E=G+((I-P)*T);
if(E>=L){E=L-1;
}if(((G%T)!=0)&&((E+T)<L)){I+=1;
}if(I>10){M=P-5;
O=P+4;
if(M<1){R=Math.abs(M)+1;
M=M+R;
O=O+R;
}if(O>I){R=O-I;
M=M-R;
O=O-R;
}}else{if(I<O){O=I;
}}var B;
if(typeof (_psDefStyles)=="undefined"){B=new Object();
B.curStyle="margin:0px 15px 0px "+(P>1?15:0)+"px";
B.curCls="plc b plsel";
B.curInCls="pl";
B.numCls="plc";
B.numInCls="pl b";
B.nextStyle="";
}else{B=_psDefStyles;
}var C=$("pg_iacapn");
if(C){if(O==1){J="";
}else{var A='align="center" style="margin: auto auto 1.4em; border-collapse: collapse; text-align: center; direction: ltr;" ';
if(_symantecPartner){A='style="margin-bottom: 1.4em; margin-left:30px; border-collapse: collapse; text-align: center; direction: ltr;" ';
if(a10.browser.isIE6()){A='style="margin-bottom: 1.4em; margin-left:26px; border-collapse: collapse; text-align: center; direction: ltr;" ';
}}J+="<table "+A+'id="nav"><tbody><tr valign="top">';
if(P>1){D="&pstart="+(G-T);
S="&page="+(P-1);
J+="<td>";
J+='<div style="float:left;">';
J+='<a  href="'+H+S+D+'" style="text-decoration:none;">';
J+="<b>"+_backImg+"&#160;<u>"+_backLabel+"</u></b>";
J+="</a>  &#160;</div></td>";
}for(Q=M;
Q<=O;
Q++){if(Q==P){J+='<td class="cur"><div class="pl" style="padding-left:3px;">&#160;'+Q+"</div></td>";
}else{var K=Q-P;
var F=(G+(K*T));
if(F<0){F=0;
}if(F>L){F=L-1;
}D="&pstart="+F;
S="&page="+(P+K);
J+='<td class=""><div class="pl" style="padding-left:3px;">&#160;<a id="pg" style="color:#000000;" href="'+H+S+D+'">'+Q+"</a></div></td>";
}}if(P!=I){D="&pstart="+(G+T);
S="&page="+(P+1);
J+='<td><div style="float:left;">&#160;&#160;&#160;<a  href="'+H+S+D+'" style="text-decoration:none">';
J+="<b> <u>"+_forwardLabel+"</u>&#160;"+_forwardImg+"</b></a></div></td>";
}J+="</tr></tbody></table>";
}C.innerHTML=J;
}}window.onscroll=scrollHandler;
function scrollHandler(){scrollDiv("leftRail");
if(typeof (GlobalNav)!="undefined"&&typeof (GlobalNav.Variables._locale)!="undefined"&&GlobalNav.Variables._locale=="us"){scrollRR("rightRail");
}if(_repositionHeader){scrollDiv("navbar_search");
scrollDiv("navbar_tabs");
scrollDiv("navbar_dent_parent");
scrollDiv("top_search");
scrollDiv("ask_header");
if(a10.ss&&a10.ss.popupIE6Cover){a10.ss.popupIE6Cover.reposition();
}}}function scrollRR(A){var C;
var B=document.getElementById(A);
if(B){if(!_isRRInitialPos){currLeft=a10.util.findPos(B)[0];
_isRRInitialPos=true;
}if(window.getComputedStyle){C=window.getComputedStyle(document.getElementById(A),null).position;
}else{if(document.body.currentStyle){C=document.getElementById(A).currentStyle.position;
}else{if(document.defaultView&&document.defaultView.getComputedStyle){C=document.defaultView.getComputedStyle(document.getElementById(A),"").getPropertyValue("position");
if(C=="fixed"){document.getElementById(A).style.left=currLeft-document.body.scrollLeft+"px";
return ;
}}}}if(C=="fixed"){B.style.left=currLeft-document.documentElement.scrollLeft+"px";
}}}function scrollDiv(A){var C;
var B=document.getElementById(A);
if(B){if(window.getComputedStyle){C=window.getComputedStyle(document.getElementById(A),null).position;
}else{if(document.body.currentStyle){C=document.getElementById(A).currentStyle.position;
}else{if(document.defaultView&&document.defaultView.getComputedStyle){C=document.defaultView.getComputedStyle(document.getElementById(A),"").getPropertyValue("position");
if(C=="fixed"){document.getElementById(A).style.left=-document.body.scrollLeft+"px";
return ;
}}}}if(C=="fixed"){B.style.left=-document.documentElement.scrollLeft+"px";
}}}function saPlusFormSubmit(C,E){var A,D,G,F,B;
A=C.getElementsByTagName("select");
if(A&&A.length>0){D=A[0];
G=D.selectedIndex;
opt=D.options[G];
F=opt.text.replace(/^\s*/,"").replace(/\s*$/,"");
E.u=opt.value;
E.pt=F;
location=_RP(E).replace(/&qs=\d*/,"&qs=255");
}return false;
}function setValue(A,B){A.value=B;
if(a10.browser.isSafari()&&A.setSelectionRange){A.setSelectionRange(A.value.length,A.value.length);
}}function searchPic(B){var C=ImageChannel.getSearchParams("false");
var A=_baseUrl+"/pictures?"+a10.browser.buildParamString(C);
window.location=A;
}function searchVid(B){var C=VideoChannel.getSearchParams("false");
var A=_baseUrl+"/video?"+a10.browser.buildParamString(C);
window.location=A;
}function searchVideos(B){var C=VideoChannel.getSearchParams("false");
var A=_baseUrl+"/videos?"+a10.browser.buildParamString(C);
window.location=A;
}function searchVideosBottom(A){document.getElementById("q").value=document.getElementById("bot_q").value;
searchVideos(A);
}function moveDebugSection(){if($("sapane")){var B=$("sapane").getElementsByTagName("div");
for(var A=0;
A<B.length;
A++){if(B[A].id=="debug"){if(a10.browser.isIE6()){B[A].style.marginLeft="0px";
document.body.lastChild.appendChild(B[A]);
}else{document.getElementById("bodi").appendChild(B[A]);
}break;
}}}}function getRSAs(A){var C=new Array();
var D=A.childNodes;
if(D){for(var B=0;
B<D.length;
B++){if(D[B].tagName&&D[B].tagName.toLowerCase()=="table"&&D[B].id.indexOf("containerRRSA_")==0){C.push(D[B]);
}}}return C;
}function repositionHeader(){var B=a10.browser.innerDimension()[0];
var A=document.getElementById("navbar_search");
var G=document.getElementById("ask_header");
var F=document.getElementById("leftRail");
var C=document.getElementById("rightRail");
var E=document.getElementById("midRail");
var D=document.getElementById("top_search");
if(G!=null&&B>=G.offsetWidth){G.style.left="0px";
if(D!=null){D.style.left="0px";
}}if(F!=null&&E!=null&&B>=F.offsetWidth+E.offsetWidth){F.style.left="0px";
}if((typeof (GlobalNav)!="undefined"&&GlobalNav.Variables._locale=="us")&&C!=null&&E!=null){C.style.left=E.offsetWidth+25+"px";
currLeft=parseInt(C.style.left);
}if(A!=null){if(a10.browser.isIE6()){if(document.body.clientWidth<880){A.style.width="880px";
}else{A.style.width="100%";
}}else{A.style.width=document.documentElement.scrollWidth+"px";
}}}function addInputSubmitEvent(B,A){A.onkeydown=function(C){C=C||window.event;
if(C.keyCode==13){if(B.onsubmit&&!B.onsubmit()){return false;
}B.submit();
return false;
}};
}function searchBoxResize(){if(document.getElementById("rpane")){var A=document.getElementById("rpane").clientWidth;
var D=a10.util.findPos(document.getElementById("q"));
var C=A-D[0]-75;
var B=5;
if(a10.browser.isIE6()){C=C-10;
B=0;
}document.getElementById("q").style.width=C+"px";
document.getElementById(_sgpaneId).style.width=C+B+"px";
}}function windowSizeChanged(){if(typeof (resizeQueryBox)!="undefined"&&resizeQueryBox){searchBoxResize();
}if(typeof (GlobalNav)!="undefined"&&GlobalNav.Variables._locale=="us"&&(typeof a10.zoom!="undefined"&&a10.zoom!=null)){a10.zoom.resize();
}if(_repositionHeader){repositionHeader();
}if(a10.browser.isIE7()||a10.browser.isSafari()){setTimeout(repositionNavBarDent,100);
}else{repositionNavBarDent();
}if(document.getElementById("midRailMeasure")){arrangeTiles();
}if(window.samap){window.resizeSaMapContainer();
window.samap.autoResize();
}if($("searchHistoryMenu")){var A=$("rightRail");
var B=$("searchHistoryMenu");
var C=a10.util.findPos(A);
B.style.left=C[0]+111+"px";
}}function isPhrase(A){if(A.length<2){return false;
}else{return(A.charAt(0)=='"'&&A.charAt(A.length-1)=='"');
}}function addQuotes(C,B){var A=C;
if(C!=""){if(B&&C.indexOf(" ")<0){return A;
}if(C.charAt(0)!='"'&&C.charAt(C.length-1)!='"'){A='"'+A+'"';
}}return A;
}function submitQueryBoxForm(){if(a10.ss){a10.ss.updateQsrc();
}if(document.ft){document.ft.submit();
}}function updateQsrc(){if(a10.ss){a10.ss.updateQsrc();
}}ask.closeAllPopUps=function(){if("undefined"!=typeof (myStuffMenu)){myStuffMenu.hide();
}if("undefined"!=typeof (optionsMenu)){optionsMenu.hide();
}if("undefined"!=typeof (moreMenu)){moreMenu.hide();
}};
var queryMap;
function fillQueryMap(){if("undefined"==typeof (queryMap)){queryMap=new Array();
var D=window.location.search.substring(1);
var C=D.split("&");
for(var B=0;
B<C.length;
B++){var E=C[B].indexOf("=");
if(E>0){var A=C[B].substring(0,E);
queryMap[A]=C[B].substring(E+1);
}}}}function setFilterOption(B){var A=document.getElementById(B);
if("undefined"!=typeof (A)&&null!=A){fillQueryMap();
var D=false;
for(var C=0;
C<A.options.length;
++C){var F=queryMap[B];
var E="undefined"!=typeof (F)&&F==A.options[C].value;
A.options[C].selected=E;
if(E){D=true;
}}if(!D&&A.options.length>0){A.options[0].selected=true;
}}}function setImageColor(){setFilterOption("imgc");
}function setImageSize(){setFilterOption("imgs");
}function setImageType(){setFilterOption("imgt");
}function setImageFilters(){setImageSize();
setImageType();
setImageColor();
}function setRRSAImageSize(C,D,A,B){var E=document.getElementById(B);
E.style.visibility="visible";
}function currentTimeLoaded(){if(typeof ask.currentTime!="undefined"){ask.currentTime.init();
return ;
}setTimeout(currentTimeLoaded,1000);
}if(typeof ask.currentTime!="undefined"){ask.currentTime.init();
}else{setTimeout(currentTimeLoaded,1000);
}function sort(B,A,D){var C=document.getElementById("sortby").value;
if(C){if(C=="r"){location.href=B;
}if(C=="f"){location.href=A;
}if(C=="p"){location.href=D;
}}}function setDimensionOfImage(D,B){var C=document.getElementById(B);
var A=new Image();
A.src=D;
C.style.width=A.width;
C.style.height=A.height;
}function queryHistorySwitchIACAPN(N){var Q="";
var M="";
var P="";
var O=Cookie.getCookie("qh");
if(O){Q=O.split("-");
if("1"==Q[0]){P="0";
}else{P="1";
}M=P+"-"+Q[1];
Cookie.setCookie("qh",M,"","/",N);
var L=document.getElementById("first");
if(L){L.style.display="none";
}var K=document.getElementById("next");
if(K){K.style.display="none";
}var R=document.getElementById("deleteall");
if(R){R.style.display="none";
}var S=document.getElementById("hide");
if(S){S.style.display="block";
}var J=document.getElementById("searchHistoryMenu");
if(J){J.style.display="none";
}}}function deleteQueryHistoryIACAPN(M){var O="";
var K="";
var Q=Cookie.getCookie("qh");
O=Q.split("-");
K=O[0]+"-";
var I=document.getElementById("first");
if(I){I.style.display="none";
}var P=document.getElementById("next");
if(P){P.style.display="none";
}var J=document.getElementById("hide");
if(J){J.style.display="none";
}var L=document.getElementById("deleteall");
if(L){L.style.display="block";
}var N=document.getElementById("searchHistoryMenu");
if(N){N.style.display="none";
}Cookie.setCookie("qh",K,"","/",M);
}function showallSH(){var A=document.getElementById("first");
if(A){A.style.display="none";
}var B=document.getElementById("next");
if(B){B.style.display="block";
}}function showlessSH(){var A=document.getElementById("first");
if(A){A.style.display="block";
}var B=document.getElementById("next");
if(B){B.style.display="none";
}}function repositionNavBarDent(){var C=$("navbar_search_iacbrand");
var B=$("navbar_dent");
if(!C){C=$("ask_search");
}if(!B&&C){if($("navbar_dent_showme")){var D=document.createElement("DIV");
D.id="navbar_dent_parent";
var B=document.createElement("DIV");
B.id="navbar_dent";
B.innerHTML="&nbsp;";
B.style.fontSize="1px";
D.appendChild(B);
C.appendChild(D);
}}var A=$("rightRail");
if(B&&A){var E=a10.util.findPos(A);
B.style.left=E[0]-2+"px";
B.style.display="";
}}function navloaded(){window.searchHistoryMenu=new ask.nav.Menu("searchLink","searchHistoryMenu",22,"","",true);
}

