﻿function OpenLogin(anchor,register,popupTriggerControlId,params,align,valign){var loginPopup=document.getElementById('IFramePopup_Login');if((loginPopup)&&(loginPopup.parentNode)){CloseIFramePopup(loginPopup);}else{OpenIFramePopup('IFramePopup_Login',anchor,820,600,document._ps_LoginUri+(register?'?reg=1':'')+(popupTriggerControlId!=null&&popupTriggerControlId!=''?(register?'&ptcid=':'?ptcid=')+popupTriggerControlId:'')+(params?(register||popupTriggerControlId!=null&&popupTriggerControlId!=''?'&':'?')+params:''),align,valign);}};var productTimerID;function OpenRecentProducts(anchor,numOfProducts){var OpenFunction=function(){OpenIFramePopup('IFramePopup_RecentProducts',anchor,500,numOfProducts==1?190:210+(120*(numOfProducts-1)),document._ps_RecentProductsUri);var elem=document.getElementById('IFramePopup_RecentProducts');if(elem){elem.onmouseout=CloseRecentProducts;elem.onmouseover=StopProductTimer;}};if(navigator.userAgent.indexOf('IE')>=0)productTimerID=setTimeout(OpenFunction,220);else productTimerID=setTimeout(OpenFunction,400);};function StopProductTimer(){clearTimeout(productTimerID);};function CloseRecentProducts(){var CloseFunction=function(){var productsPopup=document.getElementById('IFramePopup_RecentProducts');CloseIFramePopup(productsPopup);};productTimerID=setTimeout(CloseFunction,200);};function ReplaceWithLogin(iframe,register,popupTriggerControlId,params){var iframeTable=iframe.ownerDocument._ps_lastOpenedIFramePopups;ReplaceIFramePopup(iframeTable,iframeTable.rows[1].cells[1].firstChild,'IFramePopup_Login',820,555,iframe.ownerDocument._ps_LoginUri+(register?'?reg=1':'')+(popupTriggerControlId!=null&&popupTriggerControlId!=''?(register?'&ptcid=':'?ptcid=')+popupTriggerControlId:'')+(params?(register||popupTriggerControlId!=null&&popupTriggerControlId!=''?'&':'?')+params:''));};function SetAutoCloseTimer(){if(document._ps_categoryPopupTimerId!=null){window.clearTimeout(document._ps_categoryPopupTimerId);document._ps_categoryPopupTimerId=null;};var categoryMenuPopup=document.getElementById('IFramePopup_CategoryMenu');if((categoryMenuPopup)&&(categoryMenuPopup.parentNode))PopupOnMouseOut(document._ps_lastOpenedIFramePopups.contentWindow);};function OpenHelp(anchor){var helpPopup=document.getElementById('IFramePopup_Help');if((helpPopup)&&(helpPopup.parentNode)){CloseIFramePopup(helpPopup);}else{OpenIFramePopup('IFramePopup_Help',anchor,920,560,document._ps_HelpUri);}};function KeywordsKeydown(currentEvent){switch(currentEvent.keyCode){case Sys.UI.Key.tab:if(document._ps_AutoCompleteExtenderId){var autoCompleteEx=$find(document._ps_AutoCompleteExtenderId);if(autoCompleteEx&&(autoCompleteEx._selectIndex>-1))autoCompleteEx._setText(autoCompleteEx._completionListElement.childNodes[autoCompleteEx._selectIndex]);if(Sys.Browser.agent==Sys.Browser.InternetExplorer)currentEvent.cancelBubble=true;return false;}else return true;case Sys.UI.Key.enter:window.setTimeout(function(){document.getElementById(document._ps_SearchBtnId).click();},25);if(Sys.Browser.agent==Sys.Browser.InternetExplorer)currentEvent.cancelBubble=true;return false;};return true;};function ExecuteSearch(){var keywords=document.getElementById(document._ps_SearchText).value;if((keywords)&&(keywords!=""))window.open(document._ps_SearchUri+escape(keywords),'_self');};function ImageButtonKeyEvent(sender,currentEvent,imgUrl){if(currentEvent.keyCode==Sys.UI.Key.enter)sender.src=imgUrl;};function ImageButtonBlur(sender,imgUrl){sender.src=imgUrl;};function _ps_ValidateScreenNameLength(sender,e){e.IsValid=(e.Value.length>=2)&&(e.Value.length<=40);};function _ps_ConfirmPasswordValid(sender,e){e.IsValid=e.Value==document.getElementById(document._ps_edtRegisterPasswordId).value;};function _ps_DropDownFeildsRequired(sender,e){e.IsValid=e.Value!="0";};function _ps_LoginControlKeydown(controlId,e){if(e.keyCode==13){window.setTimeout('__doPostBack(document.getElementById("'+controlId+'").name, "");',25);if(navigator.userAgent.indexOf('IE')>=0)e.cancelBubble=true;else e.stopPropagation();return false;}else return true;};function _ps_ProcessingKeydown(controlId,imageURL,e){if(e.keyCode!=13)return true;window.setTimeout('__doPostBack(document.getElementById("'+controlId+'").name, "");',1000);var button=document.getElementById(controlId);if(button.childNodes.length>0)button.childNodes[0].src=imageURL;else button.src=imageURL;if(navigator.userAgent.indexOf('IE')>=0)e.cancelBubble=true;else e.stopPropagation();return false;};function _ps_TermsAgreeRequired(sender,e){e.IsValid=document.getElementById(document._ps_TermsAgreeCheckBoxId).checked;};function _ps_ValidateScreenNameContent(sender,e){var screenNameLower=e.Value.replace(' ','').toLowerCase();var notAllowed=Array();notAllowed[0]='pricespider';notAllowed[1]='fuck';notAllowed[2]='shit';var l=notAllowed.length;for(var i=0;i<l;i++){if(screenNameLower.indexOf(notAllowed[i])>-1){e.IsValid=false;return;}};e.IsValid=true;};function _ps_AfterLoginLoadParentDocument(homepage){var parentLocation=window.frameElement.document?window.frameElement.document.location:window.parent.location;if(parentLocation.href.indexOf('logout.aspx')>-1||homepage.indexOf('Register.aspx')>-1)LoadParentDocument(homepage);else _ps_RefreshParentDocument();};function _ps_ScreenNameExists(){var tbElem=document.getElementById(document._ps_ScreenNameBox);if(tbElem.value.trim()!='')PriceLister.Avalon.Web.ScriptService.IdentityService.ScreenNameExists(tbElem.value,SuccessSNCallBack);else{var validator=document.getElementById(document._ps_ScreenNameValidator);validator.style.display='none';validator.style.visibility='hidden';}};function SuccessSNCallBack(result,eventArgs){var validator=document.getElementById(document._ps_ScreenNameValidator);if(result){validator.style.display='inline';validator.style.visibility='visible';}else{validator.style.display='none';validator.style.visibility='hidden';}};function _ps_UserNameExists(){var tbElem=document.getElementById(document._ps_UserNameBox);if(tbElem.value.trim()!='')PriceLister.Avalon.Web.ScriptService.IdentityService.UserNameExists(tbElem.value,SuccessUNCallBack);else{var validator=document.getElementById(document._ps_UserNameValidator);var aResetPassword=document.getElementById(document._ps_MRForgotLink);validator.style.display='none';validator.style.visibility='hidden';aResetPassword.style.display='none';aResetPassword.style.visibility='hidden';}};function SuccessUNCallBack(result,eventArgs){var validator=document.getElementById(document._ps_UserNameValidator);var aResetPassword=document.getElementById(document._ps_MRForgotLink);if(result){validator.style.display='inline';validator.style.visibility='visible';aResetPassword.style.display='block';aResetPassword.style.visibility='visible';}else{validator.style.display='none';validator.style.visibility='hidden';aResetPassword.style.display='none';aResetPassword.style.visibility='hidden';}};function SetLoadTime(){var pageTotalLoadTimeControl=document.getElementById("PageTotalLoadTime");if(pageTotalLoadTimeControl){var now=(new Date()).getTime();pageTotalLoadTimeControl.innerHTML=((now-document._ps_PageLoadingBegin)+(document._ps_PageServerTime*1))/1000;}};function _ps_OpenUserProfilePopup(anchor,uid,align,valign){var loginPopup=document.getElementById('IFramePopup_UserProfile');if((loginPopup)&&(loginPopup.parentNode)){CloseIFramePopup(loginPopup);}else{OpenIFramePopup('IFramePopup_UserProfile',anchor,160,226,document._ps_UserProfilePopupUrl+encodeURI(uid),align,valign);}};function ReplaceWithNewPage(url,width,height){var iframeTable=window.frameElement.ownerDocument._ps_lastOpenedIFramePopups;ReplaceIFramePopup(window.frameElement,iframeTable.rows[1].cells[1].firstChild,'IFramePopup_Deals',width,height,url);};function OpenDealsVoting(anchor,url,userDealID){var dealsPopup=document.getElementById('IFramePopup_Deals');if((dealsPopup)&&(dealsPopup.parentNode)){CloseIFramePopup(dealsPopup);}else{OpenIFramePopup('IFramePopup_Deals',anchor,500,700,url+'?ptcid='+anchor.id+(userDealID?'&ud='+userDealID.toString():''),'left','middle');}};function OpenDealsVoting2(anchor,userDealID,isUserAuthenticated){var dealsPopup=document.getElementById('IFramePopup_Deals');if((dealsPopup)&&(dealsPopup.parentNode)){CloseIFramePopup(dealsPopup);}else{OpenIFramePopup('IFramePopup_Deals',anchor,500,700,document._ps_DealPopupUrl+'?ptcid='+anchor.id+(userDealID?'&ud='+userDealID.toString():''),'left','middle');}};function CloseWindow(iframe,refresh){var iframeTable=iframe.ownerDocument._ps_lastOpenedIFramePopups;if(refresh)self.parent.location.reload(true);CloseIFramePopup(iframeTable);};function OpenPriceHistory(anchor,productId,sellerID,isNewCondition,pinGlyph,getPriceAlertsControlId){var priceHistoryPopup=document.getElementById('IFramePopup_PriceHistory');if((priceHistoryPopup)&&(priceHistoryPopup.parentNode))CloseIFramePopup(priceHistoryPopup);else{if(pinGlyph)ps_PinGlyph(anchor);OpenIFramePopup('IFramePopup_PriceHistory',anchor,640,435,document._ps_PriceHistoryUri+productId+(sellerID>0?'&sid='+sellerID:'')+(!isNewCondition?'&new=true':'')+(getPriceAlertsControlId!=null&&getPriceAlertsControlId!=''?"&palid="+getPriceAlertsControlId:''),'left','middle',(pinGlyph?(function(){_ps_popupClose(anchor);}):null));}};function RenderClickOnceButton(control,callback){var myCtl=document.getElementById(control);myCtl.disabled=true;myCtl.form.submit();};function RegisterClickOnceOnSubmit(control,reference){this.RenderClickOnceButton(control);};function _ps_OpenMessageSendPopup(anchor,screenName,messageType,align,valign){var messageSendPopup=document.getElementById('IFramePopup_Message');if((messageSendPopup)&&(messageSendPopup.parentNode)){CloseIFramePopup(messageSendPopup);}else{OpenIFramePopup('IFramePopup_Message',anchor,400,300,document._ps_MessageUri+'?screenName='+encodeURI(screenName)+'&mt='+encodeURI(messageType),align,valign);}};function _ps_ReplaceWithMessageSend(iframe,screenName,messageType){var iFrameTable=iframe.ownerDocument._ps_lastOpenedIFramePopups;ReplaceIFramePopup(iFrameTable,iFrameTable.rows[1].cells[1].firstChild,'IFramePopup_Message',400,300,iframe.ownerDocument._ps_MessageUri+'?screenName='+encodeURI(screenName)+'&mt='+encodeURI(messageType));};function _ps_OpenMessageSend(anchor,screenName,messageType,replyToMessageId,align,valign){var loginPopup=document.getElementById('IFramePopup_Message');if((loginPopup)&&(loginPopup.parentNode)){CloseIFramePopup(loginPopup);}else{OpenIFramePopup('IFramePopup_Message',anchor,400,310,document._ps_MessageUri+'?screenName='+encodeURI(screenName)+'&mt='+encodeURI(messageType)+(replyToMessageId!=null?'&messageid='+replyToMessageId:''),align,valign);}};function _ps_PostButtonClick(controlId,e){if(e.keyCode==13){window.setTimeout('__doPostBack(document.getElementById("'+controlId+'").name, "");',25);if(navigator.userAgent.indexOf('IE')>=0)e.cancelBubble=true;else e.stopPropagation();return false;}else return true;};function _ps_OpenAddToListPopup(anchor,productId,alignRight,pinGlyph,alert){var addToListPopup=document.getElementById('IFramePopup_AddToList');if((addToListPopup)&&(addToListPopup.parentNode))CloseIFramePopup(addToListPopup);else{if(pinGlyph)ps_PinGlyph(anchor);OpenIFramePopup('IFramePopup_AddToList',anchor,350,350,document._ps_AddToListUrl+'?pid='+productId+(alert?"&alert="+encodeURIComponent(alert):'')+'&ptcid='+anchor.id,alignRight?'right':'left','bottom',(pinGlyph?(function(){_ps_popupClose(anchor);}):null));}};function _ps_ReplaceOpenAddToListWithLogin(iframe,alignRight){var anchor=iframe.ownerDocument._ps_IFramePopupOpener;var parentWindow=(Sys.Browser.agent==Sys.Browser.InternetExplorer)?iframe.ownerDocument.parentWindow:iframe.ownerDocument.defaultView;iframe.ownerDocument._ps_onclose=null;CloseIFramePopup(iframe);parentWindow.setTimeout("ps_PinGlyph(anchor);\n"+"var anchor = document.getElementById('"+anchor.id+"');\n"+"OpenIFramePopup("+"'IFramePopup_Login',"+"anchor,"+"820,"+"555,"+"document._ps_LoginUri,"+(alignRight?"'right'":"'left'")+", null,"+"function() { _ps_popupClose(anchor); });\n",10);};function _ps_OpenCopyMoveToNewListPopup(anchor,listId,productId){var moveCopyToListPopup=document.getElementById('IFramePopup_MoveCopyToList');if((moveCopyToListPopup)&&(moveCopyToListPopup.parentNode))CloseIFramePopup(moveCopyToListPopup);else{OpenIFramePopup('IFramePopup_MoveCopyToList',anchor,350,350,document._ps_MoveCopyToListUrl+'?lid='+listId+'&pid='+productId,'left','bottom');}};function _ps_OpenSelectProductList(anchor,productId,pinGlyph){var selectProductListPopup=document.getElementById('IFramePopup_OpenSelectProductList');if((selectProductListPopup)&&(selectProductListPopup.parentNode))CloseIFramePopup(selectProductListPopup);else{if(pinGlyph)ps_PinGlyph(anchor);OpenIFramePopup('IFramePopup_OpenSelectProductList',anchor,350,300,document._ps_SelectProductListUrl+'?pid='+productId+'&ptcid='+anchor.id,'left','bottom');}};function OpenSendProductToFriend(anchor,type){var invitePopup=document.getElementById('IFramePopup_FriendsInvite');if((invitePopup)&&(invitePopup.parentNode)){CloseIFramePopup(invitePopup);}else{OpenIFramePopup('IFramePopup_FriendsInvite',anchor,640,450,document._ps_FriendsInviteUri+('&type='+type));}};function OpenFriendsInvite(anchor,itemName,itemID,type){var invitePopup=document.getElementById('IFramePopup_FriendsInvite');if((invitePopup)&&(invitePopup.parentNode)){CloseIFramePopup(invitePopup);}else{OpenIFramePopup('IFramePopup_FriendsInvite',anchor,640,450,document._ps_FriendsInviteUri+('?type='+type)+(itemName?'&itemName='+itemName:'')+(itemID?'&itemID='+itemID:''));}};function OpenFilteres(anchor){var userSellersFiltersPopup=document.getElementById('IFramePopup_UserSellerFilters');if((userSellersFiltersPopup)&&(userSellersFiltersPopup.parentNode)){CloseIFramePopup(userSellersFiltersPopup);}else{OpenIFramePopup('IFramePopup_UserSellerFilters',anchor,760,460,document._ps_UserSellerFiltersURI,"left");}};function _ps_ReplaceWithOpenFilteres(iframe){var iframeTable=iframe.ownerDocument._ps_lastOpenedIFramePopups;ReplaceIFramePopup(iframeTable,iframeTable.rows[1].cells[1].firstChild,'IFramePopup_UserSellerFilters',760,460,iframe.ownerDocument._ps_UserSellerFiltersURI);};var _ps_registeredSnippets=new Array();function _ps_RegisterSnippetRotator(containerIDs,interval,onSwapHandler){var snippetsRegistration=new Object();snippetsRegistration.containerIDs=containerIDs;snippetsRegistration.onSwapHandler=onSwapHandler;snippetsRegistration.currentlyVisibleSnippetIndex=Math.round(Math.random()*(containerIDs.length-1));snippetsRegistration.switchIntervalId=window.setInterval('_ps_SwitchSnippet('+_ps_registeredSnippets.length+');',(interval?interval:10000));snippetsRegistration.fadeIntervalId=null;_ps_registeredSnippets.push(snippetsRegistration);_ps_SwitchSnippet(_ps_registeredSnippets.length-1);};function _ps_SwitchSnippet(snippetsRegistrationIndex){var snippetsRegistration=_ps_registeredSnippets[snippetsRegistrationIndex];if(document._ps_lastOpenedIFramePopups==null){if(snippetsRegistration.fadeIntervalId)window.clearInterval(snippetsRegistration.fadeIntervalId);if(snippetsRegistration.currentlyVisibleSnippetId)snippetsRegistration.fadeIntervalId=window.setInterval('_ps_FadeOut('+snippetsRegistrationIndex+');',50);else{var newSnippetControl=document.getElementById(snippetsRegistration.containerIDs[snippetsRegistration.currentlyVisibleSnippetIndex]);if(snippetsRegistration.onSwapHandler!=null)snippetsRegistration.onSwapHandler(newSnippetControl);newSnippetControl=document.getElementById(snippetsRegistration.containerIDs[snippetsRegistration.currentlyVisibleSnippetIndex]);_ps_SetOpacity(newSnippetControl,0);newSnippetControl.style.display='block';snippetsRegistration.fadeIntervalId=window.setInterval('_ps_FadeIn('+snippetsRegistrationIndex+');',50);}}};function _ps_FadeOut(snippetsRegistrationIndex){var snippetsRegistration=_ps_registeredSnippets[snippetsRegistrationIndex];var snippetControl=document.getElementById(snippetsRegistration.containerIDs[snippetsRegistration.currentlyVisibleSnippetIndex]);var opacity=_ps_GetOpacity(snippetControl);opacity=opacity-50/300;if(opacity<=0){snippetsRegistration.currentlyVisibleSnippetIndex=snippetsRegistration.currentlyVisibleSnippetIndex<snippetsRegistration.containerIDs.length-1?snippetsRegistration.currentlyVisibleSnippetIndex+1:0;var newSnippetControl=document.getElementById(snippetsRegistration.containerIDs[snippetsRegistration.currentlyVisibleSnippetIndex]);snippetControl.style.display='none';_ps_SetOpacity(snippetControl,0);if(snippetsRegistration.onSwapHandler!=null)snippetsRegistration.onSwapHandler(newSnippetControl);newSnippetControl=document.getElementById(snippetsRegistration.containerIDs[snippetsRegistration.currentlyVisibleSnippetIndex]);_ps_SetOpacity(newSnippetControl,0);newSnippetControl.style.display='block';window.clearInterval(snippetsRegistration.fadeIntervalId);snippetsRegistration.fadeIntervalId=window.setInterval('_ps_FadeIn('+snippetsRegistrationIndex+');',50);}else{_ps_SetOpacity(snippetControl,opacity);}};function _ps_FadeIn(snippetsRegistrationIndex){var snippetsRegistration=_ps_registeredSnippets[snippetsRegistrationIndex];var snippetControl=document.getElementById(snippetsRegistration.containerIDs[snippetsRegistration.currentlyVisibleSnippetIndex]);snippetsRegistration.currentlyVisibleSnippetId=snippetControl;var opacity=_ps_GetOpacity(snippetControl);opacity=opacity+50/300;if(opacity>=1){_ps_SetOpacity(snippetControl,1);window.clearInterval(snippetsRegistration.fadeIntervalId);}else{_ps_SetOpacity(snippetControl,opacity);}};var _ps_registeredGlyphBars=new Array();var _ps_nonameContainer="nonameContainer";var _ps_opacity;var _ps_pinnedGlyphs=new Array();function _ps_CreateGlyphBar(glyphManagerId,containerId,align,valign,orientation,alwaysVisible,ignorePadding){if((containerId==null)||(containerId==''))throw "containerId must be specified";var glyphBar=new Object();glyphBar.containerId=containerId;glyphBar.align=align?align:"right";glyphBar.valign=valign?valign:"bottom";glyphBar.orientation=orientation?orientation:"vertical";glyphBar.glyphSpacing=2;glyphBar.defaultGlyphHeight=30;glyphBar.defaultGlyphWidth=30;glyphBar.glyphs=new Array();glyphBar.visibleInstance=null;glyphBar.showDelayTimerId=null;glyphBar.hideDelayTimerId=null;glyphBar.fadingIntervalId=null;glyphBar.glyphManagerId=glyphManagerId;glyphBar.alwaysVisible=alwaysVisible;glyphBar.ignorePadding=ignorePadding;return glyphBar;};function _ps_GetGlyphBar(glyphManagerId,containerId,align,valign,orientation,alwaysVisible,ignorePadding){var i=0;while(i<_ps_registeredGlyphBars.length){var registeredGlyphBar=_ps_registeredGlyphBars[i];if((registeredGlyphBar.glyphManagerId==glyphManagerId)&&(registeredGlyphBar.containerId==containerId)&&(registeredGlyphBar.align==align)&&(registeredGlyphBar.valign==valign)&&(registeredGlyphBar.orientation==orientation)&&(registeredGlyphBar.alwaysVisible==alwaysVisible)){return registeredGlyphBar;}else i++;};var glyphBar=_ps_CreateGlyphBar(glyphManagerId,containerId,align,valign,orientation,alwaysVisible,ignorePadding);_ps_registeredGlyphBars.push(glyphBar);return glyphBar;};function _ps_GetPadding(container){var result=new Object();if(Sys.Browser.agent==Sys.Browser.InternetExplorer){var currentStyle=container.currentStyle;if(currentStyle.paddingLeft){var p=currentStyle.paddingLeft.indexOf('px');result.paddingLeft=p>-1?currentStyle.paddingLeft.substring(0,p)*1:0;}else result.paddingLeft=0;if(currentStyle.paddingRight){var p=currentStyle.paddingRight.indexOf('px');result.paddingRight=p>-1?currentStyle.paddingRight.substring(0,p)*1:0;}else result.paddingRight=0;if(currentStyle.paddingTop){var p=currentStyle.paddingTop.indexOf('px');result.paddingTop=p>-1?currentStyle.paddingTop.substring(0,p)*1:0;}else result.paddingTop=0;if(currentStyle.paddingBottom){var p=currentStyle.paddingBottom.indexOf('px');result.paddingBottom=p>-1?currentStyle.paddingBottom.substring(0,p)*1:0;}else result.paddingBottom=0;}else{var value=document.defaultView.getComputedStyle(container,'').getPropertyValue('padding-left');if(value){var p=value.indexOf('px');result.paddingLeft=p>-1?value.substring(0,p)*1:0;}else result.paddingLeft=0;value=document.defaultView.getComputedStyle(container,'').getPropertyValue('padding-right');if(value){var p=value.indexOf('px');result.paddingRight=p>-1?value.substring(0,p)*1:0;}else result.paddingRight=0;value=document.defaultView.getComputedStyle(container,'').getPropertyValue('padding-top');if(value){var p=value.indexOf('px');result.paddingTop=p>-1?value.substring(0,p)*1:0;}else result.paddingTop=0;value=document.defaultView.getComputedStyle(container,'').getPropertyValue('padding-bottom');if(value){var p=value.indexOf('px');result.paddingBottom=p>-1?value.substring(0,p)*1:0;}else result.paddingBottom=0;};return result;};function _ps_BuildGlyphBarHTML(glyphBar){glyphBarDiv=document.createElement("div");glyphBarDiv.id=(glyphBar.containerId?glyphBar.containerId:_ps_nonameContainer)+"_GlyphBar_"+glyphBar.align+"_"+glyphBar.valign+"_"+glyphBar.orientation;glyphBarDiv.Name=glyphBarDiv.id;glyphBarDiv.className="GlyphBar";var container=document.getElementById(glyphBar.containerId);if(container==null)return null;var containerPadding=_ps_GetPadding(container);if((glyphBar.valign=="bottom")&&(glyphBar.orientation=="vertical")){var top=0;var maxWidth=0;for(var i=glyphBar.glyphs.length-1;i>=0;i--){var glyph=glyphBar.glyphs[i];glyph.style.top=top;top+=(glyph.style.pixelHeight>0?glyph.style.pixelHeight:glyphBar.defaultGlyphHeight);if(i>0)top+=glyphBar.glyphSpacing;glyph.style.left=0;var pixelWidth=(glyph.style.pixelWidth>0?glyph.style.pixelWidth:glyphBar.defaultGlyphWidth);if(pixelWidth>maxWidth)maxWidth=pixelWidth;glyphBarDiv.appendChild(glyph);};glyphBarDiv.style.top=-top+"px";glyphBarDiv.style.left=((glyphBar.align=="left")?containerPadding.paddingLeft:(container.offsetWidth-(maxWidth+containerPadding.paddingLeft+containerPadding.paddingRight)))+"px";};if(glyphBar.orientation=="horizontal"){var left=0;var maxHeight=0;var width=0;for(var i=0;i<glyphBar.glyphs.length;i++){var glyph=glyphBar.glyphs[i];glyph.style.top=((glyphBar.ignorePadding&&containerPadding!=null&&containerPadding.paddingTop?containerPadding.paddingTop*0.8:0)+(glyphBar.ignorePadding&&containerPadding!=null&&containerPadding.paddingBottom?containerPadding.paddingBottom*0.8:0))+"px";glyph.style.left=(i==0?0:glyphBar.glyphSpacing)+left+"px";left+=(glyph.style.pixelWidth>0?glyph.style.pixelWidth:glyphBar.defaultGlyphWidth);if(i>0)left+=glyphBar.glyphSpacing;var pixelHeight=(glyph.style.pixelHeight>0?glyph.style.pixelHeight:glyphBar.defaultGlyphHeight);if(pixelHeight>maxHeight)maxHeight=pixelHeight;if(Sys.Browser.agent==Sys.Browser.InternetExplorer){var bgColor=container.currentStyle.backgroundColor;var parent=container.parentNode;while((bgColor=='transparent')&&(parent!=null)){bgColor=parent.currentStyle.backgroundColor;parent=parent.parentNode;};glyph.style.backgroundColor=bgColor;};glyphBarDiv.appendChild(glyph);width+=(glyph.style.pixelWidth>0?glyph.style.pixelWidth:glyphBar.defaultGlyphWidth)+glyphBar.glyphSpacing;};if(glyphBar.align=='right')glyphBarDiv.style.left=(container.offsetWidth-(left+containerPadding.paddingRight))+'px';if(container.tagName=='TD'&&container.vAlign=='middle')glyphBarDiv.style.top=((glyphBar.valign=="top")?(-container.offsetHeight/ 2)-(maxHeight/ 2):(container.offsetHeight/2)-(maxHeight*2))+'px';else glyphBarDiv.style.top=((glyphBar.valign=="top")?-container.offsetHeight+maxHeight:-maxHeight)+'px';glyphBarDiv.style.width=width+"px";};return glyphBarDiv;};function _ps_FadeInGlyphBar(glyphBarIndex){if(_ps_registeredGlyphBars.length<=glyphBarIndex)return;var glyphBar=_ps_registeredGlyphBars[glyphBarIndex];var l=glyphBar.glyphs.length;var doneFadingIn=true;var glyph;var opacity;for(var i=0;i<l;i++){glyph=glyphBar.glyphs[i];opacity=_ps_GetOpacity(glyph);if(opacity<glyph.defaultOpacity){opacity+=0.066;_ps_SetOpacity(glyph,opacity);doneFadingIn=false;}};if(doneFadingIn&&glyphBar.fadingIntervalId){window.clearInterval(glyphBar.fadingIntervalId);glyphBar.fadingIntervalId=null;}};function _ps_FadeOutGlyphBar(glyphBarIndex){if(_ps_registeredGlyphBars.length<=glyphBarIndex)return;var glyphBar=_ps_registeredGlyphBars[glyphBarIndex];var l=glyphBar.glyphs.length;var doneFadingOut=true;var glyph;var opacity;for(var i=0;i<l;i++){glyph=glyphBar.glyphs[i];opacity=_ps_GetOpacity(glyph);if(opacity>0.066){opacity-=0.066;_ps_SetOpacity(glyph,opacity);doneFadingOut=false;}};if(doneFadingOut){_ps_HideGlyphs(glyphBar);if(glyphBar.fadingIntervalId){window.clearInterval(glyphBar.fadingIntervalId);glyphBar.fadingIntervalId=null;}}};function _ps_ShowGlyphs(glyphBar){var glyphBarDiv=_ps_BuildGlyphBarHTML(glyphBar);if(glyphBarDiv==null)return;glyphBar.visibleInstance=glyphBarDiv;glyphBar.showDelayTimerId=null;var l=glyphBar.glyphs.length;var i;for(i=0;i<l;i++)_ps_SetOpacity(glyphBar.glyphs[i],0.08);if(glyphBar.fadingIntervalId){window.clearInterval(glyphBar.fadingIntervalId);glyphBar.fadingIntervalId=null;};for(i=0;i<_ps_registeredGlyphBars.length;i++)if(_ps_registeredGlyphBars[i]==glyphBar)break;if(i<_ps_registeredGlyphBars.length)glyphBar.fadingIntervalId=window.setInterval("_ps_FadeInGlyphBar("+i+");",33);var container=document.getElementById(glyphBar.containerId);if(glyphBar.container!=container)glyphBar.container=container;container.appendChild(glyphBarDiv);};function ShowGlyphs(containerId,delay){if((containerId==null)||(containerId==''))return;var bars=new Array();var container=document.getElementById(containerId);var canceledHideTimerID;for(var i=0;i<_ps_registeredGlyphBars.length;i++){var glyphBar=_ps_registeredGlyphBars[i];if(!glyphBar.alwaysVisible){if(glyphBar.containerId==containerId){if(glyphBar.alwaysVisible||_ps_HasPinnedGlyphs(glyphBar))continue;if(glyphBar.visibleInstance==null)bars.push(glyphBar);else if((glyphBar.visibleInstance!=null)&&(glyphBar.hideDelayTimerId!=null)){if(!canceledHideTimerID){canceledHideTimerID=glyphBar.hideDelayTimerId;window.clearTimeout(canceledHideTimerID);};glyphBar.hideDelayTimerId=null;}}else{if((glyphBar.visibleInstance!=null)&&(glyphBar.hideDelayTimerId==null))HideGlyphs(glyphBar.containerId);}}};if(bars.length==0)return;var showTimerId;for(i=0;i<bars.length;i++){var glyphBar=bars[i];if(delay){if(!showTimerId)showTimerId=window.setTimeout("ShowGlyphs('"+containerId+"');",delay);glyphBar.showDelayTimerId=showTimerId;}else _ps_ShowGlyphs(glyphBar);}};function _ps_HideGlyphs(glyphBar){if(_ps_HasPinnedGlyphs(glyphBar))return;container=document.getElementById(glyphBar.containerId);try{container.removeChild(glyphBar.visibleInstance);}catch(e){};glyphBar.visibleInstance=null;if(glyphBar.fadingIntervalId){window.clearInterval(glyphBar.fadingIntervalId);glyphBar.fadingIntervalId=null;}};function HideGlyphs(containerId,delay){if((containerId==null)||(containerId==''))return;var i;var bars=new Array();var canceledTimerId;var clearTimerId;var container=document.getElementById(containerId);for(i=0;i<_ps_registeredGlyphBars.length;i++){var glyphBar=_ps_registeredGlyphBars[i];if((glyphBar.containerId==containerId)&&(!glyphBar.alwaysVisible)){if(_ps_HasPinnedGlyphs(glyphBar))continue;if(glyphBar.visibleInstance==null){if(glyphBar.showDelayTimerId!=null){window.clearTimeout(glyphBar.showDelayTimerId);glyphBar.showDelayTimerId=null;};if(glyphBar.fadingIntervalId){window.clearInterval(glyphBar.fadingIntervalId);glyphBar.fadingIntervalId=null;}}else{if(delay){if(!clearTimerId)clearTimerId=window.setTimeout("HideGlyphs('"+containerId+"');",delay);glyphBar.hideDelayTimerId=clearTimerId;return;}else{if(glyphBar.fadingIntervalId){window.clearInterval(glyphBar.fadingIntervalId);glyphBar.fadingIntervalId=null;};glyphBar.fadingIntervalId=window.setInterval("_ps_FadeOutGlyphBar("+i+");",33);}}}}};function ps_PinGlyph(glyph){for(var i=0;i<_ps_pinnedGlyphs.length;i++)if(_ps_pinnedGlyphs[i]==glyph)return;_ps_pinnedGlyphs[_ps_pinnedGlyphs.length]=glyph;};function ps_UnpinGlyph(glyph){for(var i=0;i<_ps_pinnedGlyphs.length;i++)if(_ps_pinnedGlyphs[i]==glyph){_ps_pinnedGlyphs.splice(i,1);for(var i2=0;i2<_ps_registeredGlyphBars.length;i2++){var glyphBar=_ps_registeredGlyphBars[i2];for(var i3=0;i3<glyphBar.glyphs.length;i3++)if(glyphBar.glyphs[i3]==glyph){HideGlyphs(glyphBar.containerId);return;}}}};function _ps_HasPinnedGlyphs(glyphBar){for(var i=0;i<glyphBar.glyphs.length;i++){var glyph=glyphBar.glyphs[i];for(var i2=0;i2<_ps_pinnedGlyphs.length;i2++)if(glyph==_ps_pinnedGlyphs[i2])return true;};return false;};function _ps_IsPinnedGlyph(glyph){for(var i=0;i<_ps_pinnedGlyphs.length;i++)if(_ps_pinnedGlyphs[i]==glyph)return true;return false;};function _ps_GetBrowserOpacityType(img){if(!_ps_opacity){if(typeof img.style.opacity!='undefined'){_ps_opacity='w3c';}else if(typeof img.style.MozOpacity!='undefined'){_ps_opacity='moz';}else if(typeof img.style.KhtmlOpacity!='undefined'){_ps_opacity='khtml';}else if(img.style.filter||(img.currentStyle&&img.currentStyle.filter)){_ps_opacity="ie";}else{_ps_opacity='none';}}else return _ps_opacity;};function _ps_GetOpacity(img){switch(_ps_GetBrowserOpacityType(img)){case 'ie':if(img.style.filter){var startIndex=img.style.filter.indexOf("alpha(opacity=")+14;var endIndex=img.style.filter.indexOf(")",startIndex);return img.style.filter.substring(startIndex,endIndex)/100;}else return 1;break;case 'khtml':return img.style.KhtmlOpacity*1.0;break;case 'moz':return img.style.MozOpacity*1.0;break;default:return img.style.opacity*1.0;}};function _ps_SetOpacity(img,opacity){switch(_ps_GetBrowserOpacityType(img)){case 'ie':img.style.filter="alpha(opacity="+(opacity*100)+");";break;case 'khtml':img.style.KhtmlOpacity=opacity;break;case 'moz':img.style.MozOpacity=(opacity==1?0.9999999:opacity);break;default:img.style.opacity=(opacity==1?0.9999999:opacity);}};function _ps_FGl(imageURL,id,label,title,onclick,overlayText,overlayTextStyle){var isIE=Sys.Browser.agent==Sys.Browser.InternetExplorer;var hasLabel=label!=null&&label!='';var wrapper=hasLabel?document.createElement('table'):document.createElement('div');wrapper.id=id+'_wrapper';if(isIE){wrapper.style.filter='alpha(opacity=60)';};if(hasLabel){var glyphImg=document.createElement('img');glyphImg.id=id+'_img';glyphImg.name=glyphImg.id;glyphImg.src=imageURL;glyphImg.title=title;glyphImg.className='GlyphImg';wrapper.border='0';wrapper.cellPadding=0;wrapper.cellSpacing=0;glyphImg.style.position='relative';var row=wrapper.insertRow(0);var cell=document.createElement('td');cell.align='left';cell.vAlign='center';cell.className='GlyphCell';cell.appendChild(glyphImg);row.appendChild(cell);cell=document.createElement('td');cell.align='left';cell.vAlign='center';cell.className='GlyphCell';cell.innerHTML=label;row.appendChild(cell);wrapper.className='GlyphWrapper';}else{wrapper.style.backgroundImage='url('+imageURL+')';wrapper.title=title;wrapper.className='GlyphWrapper GlyphImg';if(overlayText!=null&&overlayText!=''){var overlayTextSpan='<span class="'+overlayTextStyle+'">'+overlayText+'</span>'
wrapper.innerHTML=overlayTextSpan;}};wrapper.defaultOpacity=0.6;wrapper.onmouseover=function(){if(!_ps_IsPinnedGlyph(this))_ps_SetOpacity(this,1)};wrapper.onmouseout=function(){if(!_ps_IsPinnedGlyph(this))_ps_SetOpacity(this,this.defaultOpacity)};wrapper.onclick=function(){eval(onclick)};return wrapper;};function _ps_RegGl(glyphManagerId,containerId,align,valign,orientation,glyph,initDelay,alwaysVisible,flashGlyphs,ignorePadding){if(containerId&&(containerId!='')&&glyph){var glyphBar=_ps_GetGlyphBar(glyphManagerId,containerId,align,valign,orientation,alwaysVisible,ignorePadding);glyph.position='absolute';glyphBar.visibleInstance=null;glyphBar.showDelayTimerId=null;glyphBar.hideDelayTimerId=null;glyphBar.glyphs.push(glyph);if(alwaysVisible)Sys.Application.add_load(function(){_ps_ShowGlyphs(glyphBar);});else if(flashGlyphs)Sys.Application.add_load(function(){_ps_ShowGlyphs(glyphBar);HideGlyphs(containerId,5000);});}};function _ps_ClrRegGl(glyphManagerId,containerId){var l=_ps_registeredGlyphBars.length;var i=0;while(i<_ps_registeredGlyphBars.length){var registeredGlyphBar=_ps_registeredGlyphBars[i];if((registeredGlyphBar.glyphManagerId==glyphManagerId)&&(registeredGlyphBar.containerId==containerId)){if(registeredGlyphBar.visibleInstance!=null)HideGlyphs(registeredGlyphBar.containerId);_ps_registeredGlyphBars.splice(i,1);}else i++;}};function _ps_ClrGlMngrRegGl(glyphManagerId){_ps_registeredGlyphBars=new Array();};function _ps_popupClose(anchor){if(!_ps_IsPinnedGlyph(anchor))_ps_SetOpacity(anchor,0.6);ps_UnpinGlyph(anchor);};function OpenCommentsPopup2(anchor,type,objectId,commentsPageURI,pinGlyph,alignRight){var addLinkPopup=document.getElementById('IFramePopup_Comments');if((addLinkPopup)&&(addLinkPopup.parentNode)&&(document._IFramePopupOpener==anchor)){CloseIFramePopup(addLinkPopup);}else{if(pinGlyph)ps_PinGlyph(anchor);OpenIFramePopup('IFramePopup_Comments',anchor,400,250,(commentsPageURI?commentsPageURI:'AddCommentPopup.aspx')+'?type='+encodeURIComponent(type)+'&id='+encodeURIComponent(objectId),alignRight?'right':'left',null,(pinGlyph?(function(){_ps_popupClose(anchor);}):null));}};function OpenCommentsPopup(anchor,type,objectId,commentsPageURI,pinGlyph,alignRight){var addLinkPopup=document.getElementById('IFramePopup_Comments');if((addLinkPopup)&&(addLinkPopup.parentNode)&&(document._IFramePopupOpener==anchor)){CloseIFramePopup(addLinkPopup);}else{if(pinGlyph)ps_PinGlyph(anchor);OpenIFramePopup('IFramePopup_Comments',anchor,600,450,(commentsPageURI?commentsPageURI:'CommentsPopup.aspx')+'?type='+encodeURIComponent(type)+'&id='+encodeURIComponent(objectId),alignRight?'right':'left',null,(pinGlyph?(function(){_ps_popupClose(anchor);}):null));}};function OpenSellerMapPopup(anchor,productId,sellerId,localMapsPageURI,pinGlyph,alignRight){var sellerMapPopup=document.getElementById('IFramePopup_SellerMap');if((sellerMapPopup)&&(sellerMapPopup.parentNode))CloseIFramePopup(sellerMapPopup);else{if(pinGlyph)ps_PinGlyph(anchor);OpenIFramePopup('IFramePopup_SellerMap',anchor,758,545,localMapsPageURI+'?pid='+productId+(sellerId?'&sid='+sellerId:''),alignRight?'right':'left',null,(pinGlyph?(function(){_ps_popupClose(anchor);}):null));}};function OpenSellerMap(anchor,sellerId,alignRight){OpenSellerMapPopup(anchor,document._ps_ProductID,sellerId,document._ps_SellerMapUri,false,alignRight);};function OpenCategoryHelpCenterAddLink(anchor,categoryID,categoryHelpCenterAddLinkPageURI,pinGlyph){var addLinkPopup=document.getElementById('IFramePopup_AddExternalLink');if((addLinkPopup)&&(addLinkPopup.parentNode)){CloseIFramePopup(addLinkPopup);}else{if(pinGlyph)ps_PinGlyph(anchor);OpenIFramePopup('IFramePopup_AddExternalLink',anchor,600,330,categoryHelpCenterAddLinkPageURI+'?c='+categoryID,'left',null,(pinGlyph?(function(){_ps_popupClose(anchor);}):null));}};function OpenExternalLinkReport(anchor,categoryID,externalLinkID,externalLinkReportPageURI,pinGlyph){var externalLinkReportPopup=document.getElementById('IFramePopup_ExternalLinkPopup');if((externalLinkReportPopup)&&(externalLinkReportPopup.parentNode)){CloseIFramePopup(externalLinkReportPopup)}else{if(pinGlyph)ps_PinGlyph(anchor);OpenIFramePopup('IFramePopup_ExternalLinkPopup',anchor,300,300,externalLinkReportPageURI+'?c='+categoryID+'&externalLinkID='+externalLinkID,null,null,(pinGlyph?(function(){_ps_popupClose(anchor);}):null));}};function GlyphBarManagerRegisterGlyphs(glyphBarManagerHiddenFieldID){var hiddenField=document.getElementById(glyphBarManagerHiddenFieldID);if(hiddenField&&hiddenField.value&&(hiddenField.value!=null)&&(hiddenField!=''))eval(hiddenField.value);};function _FindAbsolutePosition(element){var result=new Object();result.offsetLeft=0;result.offsetTop=0;var currentNode=element;while(currentNode){if((currentNode.offsetLeft)&&(!isNaN(currentNode.offsetLeft)))result.offsetLeft+=currentNode.offsetLeft;if((currentNode.offsetTop)&&(!isNaN(currentNode.offsetTop)))result.offsetTop+=currentNode.offsetTop;currentNode=currentNode.offsetParent;};return result;};function OpenIFramePopup(name,anchor,width,height,url,align,valign,onclose){var absolutePosition=_FindAbsolutePosition(anchor);if((valign!='top')&&(valign!='bottom')&&(valign!='middle'))valign='bottom';if((align!='left')&&(align!='right')&&(align!='center'))align='left';if((align)&&((align=="left")||(align=="right")||(align=="center"))){if(align=="left"){if((absolutePosition.offsetLeft+anchor.offsetWidth-width)>=0){absolutePosition.offsetLeft+=(anchor.offsetWidth-width);}else{if((absolutePosition.offsetLeft+width)>document.body.scrollWidth)absolutePosition.offsetLeft=0;}}}else{if(((absolutePosition.offsetLeft+width)>document.body.scrollWidth)&&((absolutePosition.offsetLeft+anchor.offsetWidth-width)>=0)){absolutePosition.offsetLeft+=(anchor.offsetWidth-width);}};if((valign)&&((valign=="bottom")||(valign=="top"))){if(valign=="bottom"){if(anchor.offsetHeight==0)absolutePosition.offsetTop+=anchor.parentNode.offsetHeight;else absolutePosition.offsetTop+=anchor.offsetHeight;}else absolutePosition.offsetTop-=height;}else{if(((absolutePosition.offsetTop+anchor.offsetHeight+height)>document.body.scrollHeight)&&((absolutePosition.offsetTop-height)>0)){absolutePosition.offsetTop-=height;}else{if((anchor.tagName!="A")||(Sys.Browser.agent==Sys.Browser.InternetExplorer))absolutePosition.offsetTop+=anchor.offsetHeight;else absolutePosition.offsetTop+=anchor.parentNode.offsetHeight;}};OpenIFramePopupAt(name,anchor,absolutePosition.offsetLeft,absolutePosition.offsetTop,width,height,url,onclose);};function OpenIFramePopupAt(id,anchor,left,top,width,height,url,onclose){if(document._ps_lastOpenedIFramePopups){if(window.document._ps_autoCloseTimerId){window.clearTimeout(window.document._ps_autoCloseTimerId);window.document._ps_autoCloseTimerId=null;};CloseIFramePopup(document._ps_lastOpenedIFramePopups);};var newFrame=document.createElement('iframe');newFrame.name='iframe';newFrame.scrolling='no';newFrame.frameBorder=0;newFrame.style.width=width+'px';newFrame.style.height=height+'px';newFrame.style.display='none';var popupTable=document.createElement('table');popupTable.id=id;popupTable.cellPadding=0;popupTable.cellSpacing=0;popupTable.className='Popup';popupTable.style.left=left-6+'px';popupTable.style.top=top-6+'px';popupTable.style.width=width+28+'px';popupTable.style.height=height+12+'px';var row=popupTable.insertRow(0);var cell=document.createElement('td');cell.className='PopupCorner';cell.innerHTML='<img src="'+document._ps_SiteImageBaseURL+'DialogBoxTLCorner.png" alt=""/>';row.appendChild(cell);cell=document.createElement('td');cell.className='PopupTopEdge';cell.innerHTML='&nbsp;';row.appendChild(cell);cell=document.createElement('td');cell.className='PopupCorner';cell.innerHTML='<img src="'+document._ps_SiteImageBaseURL+'DialogBoxTRCorner.png" alt=""/>';row.appendChild(cell);row=popupTable.insertRow(1);cell=document.createElement('td');cell.className='PopupLeftEdge';cell.innerHTML='&nbsp;';row.appendChild(cell);cell=document.createElement('td');cell.className='PopupLoadingSplash';cell.style.width='100%';cell.style.height=height+'px';cell.appendChild(newFrame);row.appendChild(cell);cell=document.createElement('td');cell.className='PopupRightEdge';cell.innerHTML='&nbsp;';row.appendChild(cell);row=popupTable.insertRow(2);var cell=document.createElement('td');cell.className='PopupCorner';cell.innerHTML='<img src="'+document._ps_SiteImageBaseURL+'DialogBoxBLCorner.png" alt=""/>';row.appendChild(cell);cell=document.createElement('td');cell.className='PopupBottomEdge';cell.innerHTML='&nbsp;';row.appendChild(cell);cell=document.createElement('td');cell.className='PopupCorner';cell.innerHTML='<img src="'+document._ps_SiteImageBaseURL+'DialogBoxBRCorner.png" alt=""/>';row.appendChild(cell);document.body.appendChild(popupTable);newFrame.src=url;document._ps_lastOpenedIFramePopups=popupTable;document._ps_IFramePopupOpener=anchor;document._ps_onclose=onclose;var i=document.getElementById('recentProducts');};function ResizePopup(deltaWidth,deltaHeight){var popupTable=window.frameElement.ownerDocument._ps_lastOpenedIFramePopups;if(popupTable){popupTable.style.width=popupTable.offsetWidth+deltaWidth+"px";popupTable.style.height=popupTable.offsetHeight+deltaHeight+"px";var iFrameCell=popupTable.rows[1].cells[1];iFrameCell.style.height=null;var iFrame=iFrameCell.firstChild;iFrame.style.width=iFrame.offsetWidth+deltaWidth+"px";iFrame.style.height=iFrame.offsetHeight+deltaHeight+"px";}};function _ps_MoveResizePopup(deltaLeft,deltaTop,deltaWidth,deltaHeight){var popupTable=window.frameElement.ownerDocument._ps_lastOpenedIFramePopups;if(popupTable){popupTable.style.left=popupTable.offsetLeft+deltaWidth+'px';popupTable.style.height=popupTable.offsetHeight+deltaHeight+'px';var iFrame=popupTable.rows[1].cells[1].firstChild;iframe.style.width=iframe.offsetWidth+deltaWidth+"px";iframe.style.height=iframe.offsetHeight+deltaHeight+"px";}};function RenamePopup(id){var iframe=window.frameElement.ownerDocument._ps_lastOpenedIFramePopups;if(iframe)iframe.id=id;};function ReplaceIFramePopup(iframeTable,iframe,id,width,height,url,onclose){if(iframeTable.ownerDocument._ps_onclose){iframeTable.ownerDocument._ps_onclose();iframeTable.ownerDocument._ps_onclose=null;};RenamePopup(id);var deltaWidth=width?width-iframe.offsetWidth:0;var deltaHeight=height?height-iframe.offsetHeight:0;if((deltaWidth!=0)||(deltaHeight!=0))ResizePopup(deltaWidth,deltaHeight);iframe.src=url;document._ps_onclose=onclose;};function _ps_ReplaceIFramePopup(iframe,id,align,valign,width,height,url,onclose){if(iframe.ownerDocument._ps_onclose){iframe.ownerDocument._ps_onclose();iframe.ownerDocument._ps_onclose=null;};iframe.src=url;RenamePopup(id);var deltaLeft=(align=='left'?iframe.offsetWidth-width:0);var deltaTop=(valign=='top'?iframe.offsetTop+top:0);var deltaWidth=width?width-iframe.offsetWidth:0;var deltaHeight=height?height-iframe.offsetHeight:0;if((deltaLeft!=0)||(deltaTop!=0)||(deltaWidth!=0)||(deltaHeight!=0))_ps_MoveResizePopup(deltaLeft,deltaTop,deltaWidth,deltaHeight);document._ps_onclose=onclose;};function PopupOnMouseOver(window){if((window.document._ps_autoCloseTimerId)&&(window.document._ps_autoCloseTimerId!=null)){window.clearTimeout(window.document._ps_autoCloseTimerId);window.document._ps_autoCloseTimerId=null;}};function PopupOnMouseOut(window){var lastOpenedIFramePopups=window.frameElement?document._ps_lastOpenedIFramePopups:window.frameElement.ownerDocument._ps_lastOpenedIFramePopups;if(lastOpenedIFramePopups)window.document._ps_autoCloseTimerId=window.setTimeout(function(){CloseIFramePopup(lastOpenedIFramePopups);},500);};function RemoveSplash(){var popupTable=parent.document._ps_lastOpenedIFramePopups;if(popupTable)popupTable.rows[1].cells[1].firstChild.style.display='block';};function CloseIFramePopup(iframe){RemoveSplash();if(!iframe)return;var ownerDocument=iframe.ownerDocument;var popupTable=ownerDocument._ps_lastOpenedIFramePopups;if(!popupTable)return;if(ownerDocument._ps_onclose){ownerDocument._ps_onclose();ownerDocument._ps_onclose=null;};ownerDocument._ps_lastOpenedIFramePopups=null;ownerDocument._ps_lastOpenedIFramePopups=null;popupTable.parentNode.removeChild(popupTable);};function _ps_GenerateUniqueUrl(url){var paramsIndex=url.indexOf('?');var bookmarkIndex=url.indexOf('#');var bookmark;if(bookmarkIndex>-1){bookmark=url.substring(bookmarkIndex);url=url.substring(0,bookmarkIndex-1);}else bookmark='';var uniqueParamIndex=url.indexOf('up=',paramsIndex>-1?paramsIndex+1:0);if(uniqueParamIndex>-1){var uniqueParamEndIndex=url.indexOf('&',uniqueParamIndex+3);var uniqueParamValue=uniqueParamEndIndex>-1?url.substring(uniqueParamIndex+3,uniqueParamEndIndex):url.substring(uniqueParamIndex+3);return url.substring(0,uniqueParamIndex+3)+((1*uniqueParamValue)+1)+(uniqueParamEndIndex>-1?url.substring(uniqueParamEndIndex):'')+bookmark;}else{return url+(paramsIndex>-1?'&up=1':'?up=1')+bookmark;}};function _ps_RefreshParentDocument(){if(window.frameElement.document){window.frameElement.document.location.replace(_ps_GenerateUniqueUrl(window.frameElement.document.location.href));}else{var url=window.parent.location.href;window.parent.location.replace(_ps_GenerateUniqueUrl(url));}};function LoadParentDocument(url){if(window.frameElement.document)window.frameElement.document.location.assign(url);else window.parent.location.replace(url);};function ReopenIFramePopup(){var url;if(window.frameElement.document)url=window.frameElement.document.location.href;else url=window.parent.location.href;var bookmarkIndex=url.indexOf('#');var bookmark;if(url.indexOf('#')>-1){bookmark=url.substring(bookmarkIndex);url=url.substring(0,bookmarkIndex-1);}else bookmark='';var hasParams=window.frameElement.document.location.href.indexOf('?')>-1;if(window.frameElement.document)window.frameElement.document.location.replace(url+(hasParams?"&":"?")+"click="+window.frameElement.document._IFramePopupOpener)+bookmark;else window.parent.location.replace(url+(hasParams?"&":"?")+"click="+window.parent._IFramePopupOpener)+bookmark;};if(navigator.userAgent.indexOf("IE")==-1){HTMLElement.prototype.click=function(){var evt=this.ownerDocument.createEvent('MouseEvents');evt.initMouseEvent('click',true,true,this.ownerDocument.defaultView,1,0,0,0,0,false,false,false,false,0,null);this.dispatchEvent(evt);}};function EnableMyListTrackingDD(strID){var a=strID+'A';var b=strID+'B';var c=strID+'C';if(document.getElementById(a).checked){document.getElementById(b).disabled=false;document.getElementById(b).style.backgroundColor='#FFFFFF';try{document.getElementById(c).disabled=false;document.getElementById(c).style.backgroundColor='#FFFFFF';}catch(e){}}else{document.getElementById(b).disabled=true;document.getElementById(b).style.backgroundColor='#D4D0C8';try{document.getElementById(c).value='';document.getElementById(c).disabled=true;document.getElementById(c).style.backgroundColor='#D4D0C8';}catch(e){}}};function _ps_ReloadPg(){if(document.body.offsetWidth!=document._ps_PageWidth){window.open(location,"_self");document._ps_PageWidth=document.body.offsetWidth;}};function _ps_SetUpdateButtons(){var updateImage=document.getElementById(document._ps_UpdateImage);if(updateImage.style.display!='none'){updateImage.style.display='none';document.getElementById(document._ps_UpdateButton).style.display='block';document.getElementById(document._ps_UpdateCancelImage).style.display='none';document.getElementById(document._ps_UpdateCancelButton).style.display='block';}};function SetListProductUpdateButton(){var updateImage=document.getElementById(_ps_ProductListUpdateImage);if(updateImage.style.display!='none'){updateImage.style.display='none';document.getElementById(document._ps_ProductListUpdateButton).style.display='block';}};function _ps_PriceContainersBinarySearch(productId){var priceContainers=document._ps_PriceContainers;if(priceContainers&&priceContainers.length>0){var startIndex=0;var endIndex=priceContainers.length-1;var midIndex;var midProductId;while(startIndex<=endIndex){midIndex=Math.round((startIndex+endIndex)/2);midProductId=priceContainers[midIndex].ProductId;if(midProductId<productId)startIndex=midIndex+1;else if(midProductId>productId)endIndex=midIndex-1;else return midIndex;};return midProductId<productId?~(midIndex+1):~midIndex;}else return -1};function _ps_GetPriceContainers(productId){var result=new Array();var index=_ps_PriceContainersBinarySearch(productId);if(index>-1){var priceContainers=document._ps_PriceContainers;var l=priceContainers.length;var i=index;while(i>-1&&priceContainers[i].ProductId==productId)result.push(priceContainers[i--]);var i=index+1;while(i<l&&priceContainers[i].ProductId==productId)result.push(priceContainers[i++]);};return result;};function _ps_ClearRegisterPriceContainers(parentContainerId){_ps_StopPriceUpdatesChecks();var priceContainers=document._ps_PriceContainers;if(priceContainers&&priceContainers.length>0){var newPriceContainers=new Array();var l=priceContainers.length;for(var i=0;i<l;i++){var priceContainer=priceContainers[i];if(priceContainer.ParentContainerId!=parentContainerId)newPriceContainers.push(priceContainer);};if(newPriceContainers.length!=priceContainers.length)document._ps_PriceContainers=newPriceContainers;}};function _ps_RegisterPriceContainer(parentContainerId,productId,priceContainerId,newStoresCount,newStoresUpdatedCount,ipuThresholdMin){var priceContainers=document._ps_PriceContainers;if(!priceContainers){priceContainers=new Array();document._ps_PriceContainers=priceContainers;};var priceContainer=new Object();priceContainer.ParentContainerId=parentContainerId;priceContainer.ProductId=productId;priceContainer.PriceContainerId=priceContainerId;priceContainer.NewStoresCount=newStoresCount;priceContainer.NewStoresUpdatedCount=newStoresUpdatedCount;priceContainer.IPUThresholdMin=ipuThresholdMin;var index=_ps_PriceContainersBinarySearch(productId);if(index<0)index=~index;priceContainers.splice(index,0,priceContainer);};function _ps_PriceUpdatesCheck(){var priceContainers=document._ps_PriceContainers;if(priceContainers){var productIDs=new Array();var storesUpdatedCount=new Array();var ipuTresholds=new Array();var ipuTresholdsSame=true;var l=priceContainers.length;for(var i=0;i<l;i++){priceContainer=priceContainers[i];if(priceContainer.NewStoresUpdatedCount/priceContainer.NewStoresCount<0.8){productIDs.push(priceContainer.ProductId);storesUpdatedCount.push(priceContainer.NewStoresUpdatedCount);ipuTresholds.push(priceContainer.IPUThresholdMin);ipuTresholdsSame=ipuTresholdsSame&&(i==0||ipuTresholds[0]==priceContainer.IPUThresholdMin);}};if(productIDs.length>0)PriceLister.Avalon.Web.ScriptService.ProductPriceUpdate.GetProductPriceUpdates(productIDs,storesUpdatedCount,ipuTresholdsSame?ipuTresholds.slice(0,1):ipuTresholds,_ps_PriceUpdatesCheckCallback,_ps_PriceUpdatesCheckCallbackError);}};function _ps_PriceUpdatesCheckCallback(result){if(result==null)return;document._ps_PriceUpdateCheckAttemptsLeft--;document._ps_PriceUpdateCheckTimerId=null;var priceContainers=document._ps_PriceContainers;var l=result.length;for(var i=0;i<l;i++){var productPriceUpdate=result[i];var priceContainerIndex=_ps_PriceContainersBinarySearch(productPriceUpdate.ProductId);if(priceContainerIndex>-1){var priceContainer=priceContainers[priceContainerIndex];var priceElement=document.getElementById(priceContainer.PriceContainerId);if(priceElement){var ratio=productPriceUpdate.NewStoresUpdateCount/productPriceUpdate.NewStoresCount;_ps_UpdatePriceUpdateCell(priceElement.rows[0].cells[0],productPriceUpdate,ratio);var priceRowCells=priceElement.rows[0].cells;_ps_UpdatePriceRangeCell(priceRowCells[priceRowCells.length-1],productPriceUpdate.NewMinPriceDisplay,productPriceUpdate.NewMaxPriceDisplay,productPriceUpdate.NewStoresCount);if(priceElement.rows.length>1){priceRowCells=priceElement.rows[1].cells;_ps_UpdatePriceRangeCell(priceRowCells[priceRowCells.length-1],productPriceUpdate.UsedMinPriceDisplay,productPriceUpdate.UsedMaxPriceDisplay,productPriceUpdate.UsedStoresCount);}};if(productPriceUpdate.NewStoresCount==productPriceUpdate.NewStoresUpdateCount){if(priceContainerIndex==0){priceContainers.shift();}else if(priceContainers.length-1==priceContainerIndex){priceContainers.pop();}else{priceContainers=priceContainers.slice(0,priceContainerIndex-1).concat(priceContainers.slice(priceContainerIndex+1));document._ps_PriceContainers=priceContainers;}}else{priceContainer.NewStoresCount=productPriceUpdate.NewStoresCount;priceContainer.NewStoresUpdatedCount=productPriceUpdate.NewStoresUpdateCount;}}};if(document._ps_PriceContainers.length>0&&document._ps_PriceUpdateCheckAttemptsLeft>0)_ps_ScheduleNextPriceUpdateCheck();};function _ps_PriceUpdatesCheckCallbackError(error){document._ps_PriceUpdateCheckAttemptsLeft--;document._ps_PriceUpdateCheckTimerId=null;if(document._ps_PriceContainers.length>0&&document._ps_PriceUpdateCheckAttemptsLeft>0)_ps_ScheduleNextPriceUpdateCheck();};function _ps_StopPriceUpdatesChecks(){if(document._ps_PriceUpdateCheckTimerId){window.clearTimeout(document._ps_PriceUpdateCheckTimerId);document._ps_PriceUpdateCheckTimerId=null;}};function _ps_ScheduleNextPriceUpdateCheck(){_ps_StopPriceUpdatesChecks();if(!document._ps_AllPricesUpdated)document._ps_PriceUpdateCheckTimerId=window.setTimeout(function(){_ps_PriceUpdatesCheck();},document._ps_PriceUpdatesCheckInterval);};function _ps_StartPriceUpdatesChecks(){document._ps_PriceUpdateCheckAttemptsLeft=document._ps_PriceUpdateAttempts;_ps_ScheduleNextPriceUpdateCheck();};function _ps_GetUpdatePriceUpdateCellTitle(productPriceUpdate){var newStoresCount=productPriceUpdate.NewStoresCount;var newStoresUpdateCount=productPriceUpdate.NewStoresUpdateCount;var result;if(newStoresUpdateCount==newStoresCount)result='Prices at all '+newStoresCount+' stores were verified '+productPriceUpdate.DatePricesUpdated;else result='Prices at '+newStoresUpdateCount+' stores out of '+newStoresCount+' were verified '+productPriceUpdate.DatePricesUpdated;return result;};function _ps_UpdatePriceUpdateCell(priceUpdateCell,productPriceUpdate,ratio){priceUpdateCell.title=_ps_GetUpdatePriceUpdateCellTitle(productPriceUpdate);if(ratio<document._ps_PricesUpdatedStage1){priceUpdateCell.className='PricesCheckCell';priceUpdateCell.innerHTML='<div class="PriceVerifying">'+productPriceUpdate.NewStoresUpdateCount+'</div>'+'Checking<br/>'+'Prices...';}else if(ratio<document._ps_PricesUpdatedStage2){priceUpdateCell.className='PricesCheckCell50perc';priceUpdateCell.innerHTML='<div class="PriceVerifying50perc">'+productPriceUpdate.NewStoresUpdateCount+'</div>'+'Checking<br/>'+'Prices...';}else{priceUpdateCell.className='PricesCheckCell80perc';priceUpdateCell.innerHTML='<img class="PriceVerified" style="border-width: 0px;" src="'+document._ps_SiteImageBaseURL+'PriceVerified.png"/><br/>'+'Prices&nbsp;Just<br/>'+'Verified';}};function _ps_UpdatePriceRangeCell(priceRangeCell,minPriceDisplay,maxPriceDisplay,storesCount){priceRangeCell.firstChild.innerHTML=minPriceDisplay!=maxPriceDisplay?minPriceDisplay+' - '+maxPriceDisplay:minPriceDisplay;var index=priceRangeCell.innerHTML.indexOf('> (');if(index>-1){priceRangeCell.innerHTML=priceRangeCell.innerHTML.substring(0,index+3)+storesCount+(storesCount==1?'&nbsp;store)':'&nbsp;stores)');}};function _setHiddenField(hiddenFieldName,id,forcePostback){var hiddenField=document.getElementById(hiddenFieldName);hiddenField.value=id;if(forcePostback)__doPostBack(hiddenField.name,'');};function ToggleControlVisibility(targetName,expandImageName,collapseImageName){var target=document.getElementById(targetName);var expandImage=document.getElementById(expandImageName);var collapseImage=document.getElementById(collapseImageName);if(target.style.display=='none'){target.style.display='block';expandImage.style.display='none';collapseImage.style.display='inline';}else{target.style.display='none';expandImage.style.display='inline';collapseImage.style.display='none';}};function WebRequest_OnInvokeRequest(sender,networkRequestEventArgs){var webRequest=networkRequestEventArgs.get_webRequest();var startIndex=document._ps_WebRequestUri.lastIndexOf('/')+1;var endIndex=document._ps_WebRequestUri.indexOf('?',startIndex);if(endIndex<0)endIndex=document._ps_WebRequestUri.length;var pageName=document._ps_WebRequestUri.substring(startIndex,endIndex);if(webRequest.get_url().toLowerCase().indexOf(pageName)>-1)webRequest.set_url(document._ps_WebRequestUri);};function _ps_StartAmazonWishlistSyncStatusCheck(){if(!document._ps_AmazonWishListStatusCheckTimer){document._ps_AmazonWishListStatusCheckAttemptsLeft=20;document._ps_AmazonWishListStatusCheckTimer=window.setInterval(function(){_ps_AmazonWishlistSyncStatusCheck();},3000);}};function _ps_ClearAmazonWishlistSyncStatusCheck(){if(!document._ps_AmazonWishListStatusCheckTimer){window.clearInterval(document._ps_AmazonWishListStatusCheckTimer);document._ps_AmazonWishListStatusCheckTimer==null;}};function _ps_AmazonWishlistSyncStatusCheck(){if(document._ps_AmazonWishListStatusCheckAttemptsLeft>0){PriceLister.Avalon.Web.ScriptService.AmazonWishListSync.SyncIsExecuting(_ps_AmazonWishlistSyncStatusCheckCallback,_ps_AmazonWishlistSyncStatusCheckCallbackError);document._ps_AmazonWishListStatusCheckAttemptsLeft--;}else{window.clearInterval(document._ps_AmazonWishListStatusCheckTimer);}};function _ps_AmazonWishlistSyncStatusCheckCallback(result){if(result==false){window.clearInterval(document._ps_AmazonWishListStatusCheckTimer);document._ps_AmazonWishListStatusCheckTimer=null;if(document._ps_AmazonWishListSyncStatusCheckPostbackButton){var btn=document.getElementById(document._ps_AmazonWishListSyncStatusCheckPostbackButton);if(btn)btn.click();}}};function _ps_AmazonWishlistSyncStatusCheckCallbackError(error){};function _ps_DealVote(dealVoteButton,showLabels,userDealId,vote,dealScoreContainerId){var container;if(showLabels)container=dealVoteButton.parentNode.parentNode.parentNode;else container=dealVoteButton.parentNode;container.innerHTML='<table border="0" cellspacing="0" cellpadding="0"><tr><td valign="middle"><img style="border-width: 0px;" src="'+document._ps_SiteImageBaseURL+'Loading_small.gif" /></td><td style="padding-left:6px" align="left" valign="middle" class="XSRegTXT-A">Casting<br/>vote...</td></tr></table>';if(document._ps_dealVoteProcesses==null)document._ps_dealVoteProcesses=new Array();var voteProcess=new Object();voteProcess.userDealId=userDealId;voteProcess.container=container;voteProcess.dealScoreContainerId=dealScoreContainerId;voteProcess.vote=vote;document._ps_dealVoteProcesses.push(voteProcess);PriceLister.Avalon.Web.ScriptService.DealVote.Vote(userDealId,vote,_ps_DealVoteCallback,_ps_DealVoteCallbackError);};function _ps_DealVoteCallback(result){if(result){var userDealId=result.UserDealId;var l=document._ps_dealVoteProcesses.length;var voteProcess;for(var i=0;i<l;i++)if(document._ps_dealVoteProcesses[i].userDealId==userDealId){voteProcess=document._ps_dealVoteProcesses[i];if(i<l-1)document._ps_dealVoteProcesses[i]=document._ps_dealVoteProcesses[l-1];document._ps_dealVoteProcesses.length=l-1;};voteProcess.container.innerHTML='<table border="0" cellpadding="0" cellspacing="0"><tr><td valign="middle">You&nbsp;voted:</td></td><td valign="middle" style="padding-left:6px"><img style="border:none" alt="" src="'+document._ps_SiteImageBaseURL+(voteProcess.vote?"thumbs_up.png":"thumbs_down.png")+'" title="'+(voteProcess.vote?"Yes, great geal!":"No, this is not a deal!")+'"/></td></tr></table>';var dealScoreContainer=document.getElementById(voteProcess.dealScoreContainerId);var scoreSpan=dealScoreContainer.getElementsByTagName('SPAN')[0];scoreSpan.innerHTML=result.Score;var lastBreakIndex=dealScoreContainer.innerHTML.lastIndexOf('>');if(lastBreakIndex>-1)dealScoreContainer.innerHTML=dealScoreContainer.innerHTML.substring(0,lastBreakIndex+1)+result.VoteCount+(result.VoteCount==1?' vote':' votes');}else{voteProcess.container.innerHTML='Error casting vote';}};function _ps_DealVoteCallbackError(error){};var isSet=false;function ResetStarRating(sellerName){if(isSet)return;var divStar=document.getElementById(document._ps_StarPanel);if(navigator.userAgent.indexOf('IE')>=0){for(var i=0;i<divStar.childNodes.length;++i)divStar.childNodes[i].childNodes[0].src=document._ps_StarEmptyImageUrl;}else{for(var i=0;i<divStar.childNodes.length;++i){if(divStar.childNodes[i].nodeType!=Node.ELEMENT_NODE)continue;for(var j=0;j<divStar.childNodes[i].childNodes.length;++j){if(divStar.childNodes[i].childNodes[j].nodeName=='IMG'){divStar.childNodes[i].childNodes[j].src=document._ps_StarEmptyImageUrl;break;}}}};this.SwapRatingText(0,sellerName);};function SwapStarImage(divElement,mouseover,sellerName){if(isSet)return;for(var i=0;i<divElement.childNodes.length;++i){if(divElement.childNodes[i].nodeName=='IMG'){divElement.childNodes[i].src=mouseover?document._ps_StarFullImageUrl:document._ps_StarEmptyImageUrl;break;}};var count=1;while(divElement.previousSibling){var prevDivElement=divElement.previousSibling;for(var i=0;i<prevDivElement.childNodes.length;++i){if(prevDivElement.childNodes[i].nodeName=='IMG'){count++;prevDivElement.childNodes[i].src=document._ps_StarFullImageUrl;break;}};divElement=prevDivElement;};this.SwapRatingText(count,sellerName);};function SetRating(index){if(isSet)return;isSet=true;var elem=document.getElementById(document._ps_StarHiddenField);elem.value=index;var label=document.getElementById(document._ps_StarLabel);label.innerHTML=label.innerHTML+"<span style=\"color:Red;font-size:12px;\">&nbsp;&nbsp;&nbsp;"+index.toString()+" out of 5</span>";};function SwapRatingText(count,sellerName){var label=document.getElementById(document._ps_StarLabel);var text;switch(count){case 0:text="Please Rate "+(sellerName==undefined?'':sellerName);break;case 1:text="Terrible";break;case 2:text="Poor";break;case 3:text="Average";break;case 4:text="Good";break;case 5:text="Excellent";break;default:break;};label.innerHTML=text;};function CheckRating(sender,args){var elem=document.getElementById(document._ps_StarHiddenField);args.IsValid=elem.value>0;};function EditStarRating(){isSet=false;};function DisplayStarPanel(panelID){var elem=document.getElementById(panelID);if(elem.style.visibility=="visible"){elem.style.visibility="hidden";elem.style.display="none";}else{elem.style.display="inline";elem.style.visibility="visible";elem.style.position="absolute";}};function _ps_TrackingCallback(guid){PriceLister.Avalon.Web.ScriptService.IdentityService.TrackingCallback(guid,_ps_TrackingCallbackResult,_ps_TrackingCallbackResult);};function _ps_TrackingCallbackResult(result){};function ShowLoginOrRegister(){var divReg=document.getElementById(document._ps_ModalPopupReg);var divLogin=document.getElementById(document._ps_ModalPopupLogin);var anchor=document.getElementById(document._ps_ModalPopupAnchor);if(divReg.style.visibility=='visible'){divReg.style.visibility='hidden';divReg.style.display='none';divLogin.style.visibility='visible';divLogin.style.display='block';anchor.innerHTML="Don't have an account? Register here";var tbUN=document.getElementById(document._ps_LoginUserNameBox);if(tbUN)tbUN.focus();}else{divReg.style.visibility='visible';divReg.style.display='block';divLogin.style.visibility='hidden';divLogin.style.display='none';anchor.innerHTML='Have an account? Log in here';var tbSN=document.getElementById(document._ps_ScreenNameBox);if(tbSN)tbSN.focus();}};function RecordNoClickOnRegPopup(){var now=new Date();var fiveYearsFromNow=new Date();var yearFiveYearsFromNow=fiveYearsFromNow.getFullYear()+5;fiveYearsFromNow.setFullYear(yearFiveYearsFromNow);document.cookie='NeverShowModalReg='+now.toUTCString()+'; expires='+fiveYearsFromNow.toUTCString()+';';PriceLister.Avalon.Web.ScriptService.IdentityService.RecordNoClickOnRegPopup(document._ps_uid);};function AddToBrowserFavorites(title,url){if(window.sidebar){window.sidebar.addPanel(title,url,"");}else if(document.all){window.external.AddFavorite(url,title);}else{alert("Sorry your browser doesn't support this");}};function _ps_EmbedBanManAd(zone,width,height,keywords){var browName=navigator.appName;var browDateTime=(new Date()).getTime();var browVersion=parseInt(navigator.appVersion);var ua=navigator.userAgent.toLowerCase();var adcode='';if(browName=='Netscape'){{if(browVersion>=5){{document.write('<ifr'+'ame src="'+document._ps_BanManAdServerUrl+'/banman/a.aspx?ZoneID='+zone+'&amp;Task=Get&amp;Browser=NETSCAPE6&amp;SiteID=1&amp;X='+browDateTime+'&amp;Keywords='+keywords+'" width='+width+' height='+height+' Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No></ifr'+'ame>');}}else if((browVersion>=4)&&(ua.indexOf("mac")==-1)){{document.write('<s'+'cript src="'+document._ps_BanManAdServerUrl+'/banman/a.aspx?ZoneID='+zone+'&amp;Task=Get&amp;Browser=NETSCAPE4&amp;SiteID=1&amp;X='+browDateTime+'&amp;Keywords='+keywords+'">');document.write('</'+'scr'+'ipt>');document.write(adcode);}}else if(browVersion>=3){{document.write('<a href="'+document._ps_BanManAdServerUrl+'/banman/a.aspx?ZoneID='+zone+'&amp;Task=Click&amp;Mode=HTML&amp;SiteID=1&amp;PageID='+browDateTime+'&RandomNumber='+browDateTime+'&amp;Keywords='+keywords+'" target="_blank"><img src="'+document._ps_BanManAdServerUrl+'/banman/a.aspx?ZoneID='+zone+'&amp;Task=Get&amp;Mode=HTML&amp;SiteID=1&PageID='+browDateTime+'&RandomNumber='+browDateTime+'&amp;Keywords='+keywords+'" width="'+width+'" height="'+height+'" border="0" alt=""></a>');}}}}else{{document.write('<ifr'+'ame src="'+document._ps_BanManAdServerUrl+'/banman/a.aspx?ZoneID='+zone+'&amp;Task=Get&amp;SiteID=1&amp;X='+browDateTime+'&amp;Keywords='+keywords+'" width='+width+' height='+height+' Marginwidth=0 Marginheight=0 Hspace=0 Vspace=0 Frameborder=0 Scrolling=No></ifr'+'ame>');}}};function _ps_ControlExecuteClick(contolId){var control=document.getElementById(contolId);if(control){control.scrollIntoView(false);control.click();}};function _ps_ResizeTextBubbleToFitContent(textBox,e){if(!document._ps_linefeedStr)document._ps_linefeedStr=String.fromCharCode(13,10);var linefeedCount=1;var pos=-2;do{var pos=textBox.value.indexOf(document._ps_linefeedStr,pos+2);if(pos>-1)linefeedCount++;}while(pos<textBox.value.length&&pos>-1)if(e.keyCode==13)linefeedCount++;var contentHeight=linefeedCount*17;var textboxHeight=(1*textBox.style.height.substring(0,textBox.style.height.length-2));if(contentHeight>34){if(textboxHeight<(contentHeight))textBox.style.height=(linefeedCount*17)+"px";}else if(textboxHeight>34)textBox.style.height="34px";return true;};function ReplaceHyperLinkButton(sender,imageUrl,fullDownImageUrl){if(sender.childNodes[0].src!=fullDownImageUrl)sender.childNodes[0].src=imageUrl;};function ReplaceImageButton(sender,imageUrl,fullDownImageUrl){if(sender.src!=fullDownImageUrl)sender.src=imageUrl;};


