function PageLoader(){void(null);}function GUnload(){void(null);}var PageCache=null;try{document.execCommand("BackgroundImageCache",false,true);}catch(err){};if(window.location.href.indexOf('#')>-1){var SEOPath=window.location.href.substring(window.location.href.indexOf('#')+1);if(SEOPath.indexOf("/")>-1&&SEOPath.length>3){window.location.href="http://"+window.location.hostname+SEOPath;}}function trim(str){if(str==null){return"";}if(GetType(str)=="object"){return"";}return str.replace(/^\s*|\s*$/g,"");}function gE(objId){if(document.getElementById(objId)){return document.getElementById(objId);}return null;}function gEDisplay(objId,display){gE(objId).style.display=display;}function DoReport(Data){if(Data!=""){var URL=WebRoot+"Controls/AjaxCalls/DoReport.aspx?Data="+Data;$AJAX.GetAsync(URL);}}function SetCookieState(CookieName,Key,Value){var Query=String.format("CookieName={0}&Key={1}&Value={2}",CookieName,Key,Value);var URL=WebRoot+"Controls/AjaxCalls/SetCookieState.aspx?"+Query;$AJAX.GetAsync(URL);}var MousePosition=new Object();MousePosition.X=0;MousePosition.Y=0;function captureMousePosition(e){if(document.layers){MousePosition.X=e.pageX+25;MousePosition.Y=e.pageY-25;}else if(document.all){MousePosition.X=window.event.x+document.body.scrollLeft+25;MousePosition.Y=window.event.y+document.body.scrollTop-25;}else if(document.getElementById){MousePosition.X=e.pageX+25;MousePosition.Y=e.pageY-25;}}function CaptureMouseXY(){if(document.layers){document.captureEvents(Event.MOUSEMOVE);document.onmousemove=captureMousePosition;}else if(document.all){document.onmousemove=captureMousePosition;}else if(document.getElementById){document.onmousemove=captureMousePosition;}}function RecurseOffset(obj){if(GetType(obj)=="string"){if(gE(obj)==null){alert("RecurseOffset requires a valid DOM object");}else{obj=gE(obj);}}var ROO=new RecurseOffsetObject(obj);var Offsets=new Object();Offsets.offsetLeft=ROO.GetOffsetLeft();Offsets.offsetTop=ROO.GetOffsetTop();Offsets.offsetWidth=ROO.GetOffsetWidth();Offsets.offsetHeight=ROO.GetOffsetHeight();return Offsets;}function RecurseOffsetObject(obj){this.ParentObj=null;this.CurrentObj=obj;this.offsetLeft=obj.offsetLeft;this.offsetTop=obj.offsetTop;this.offsetWidth=obj.offsetWidth;this.offsetHeight=obj.offsetHeight;RecurseOffsetObject.prototype.Init=function(){if(this.CurrentObj.offsetParent!=null){do{this.ParentObj=this.CurrentObj.offsetParent;this.offsetLeft+=this.ParentObj.offsetLeft;this.offsetTop+=this.ParentObj.offsetTop;this.CurrentObj=this.ParentObj;}while(this.CurrentObj.offsetParent!=null);}};RecurseOffsetObject.prototype.GetOffsetLeft=function(){return this.offsetLeft;};RecurseOffsetObject.prototype.GetOffsetTop=function(){return this.offsetTop;};RecurseOffsetObject.prototype.GetOffsetWidth=function(){return this.offsetWidth;};RecurseOffsetObject.prototype.GetOffsetHeight=function(){return this.offsetHeight;};this.Init();}String.format=function(){if(arguments.length==0){throw("String.format requires arguments");}var str=" "+arguments[0];for(var i=1;i<arguments.length;i++){var re=new RegExp('([^\\{]{1})(\\{'+(i-1)+'\\}(?!\\}))','gm');str=str.replace(re,'\$1'+arguments[i]);}str=str.replace(new RegExp('\\{\\{','gm'),"{");str=str.replace(new RegExp('\\}\\}','gm'),"}");return str.substring(1);};function GetType(Element){if(Element==null){return"null";}if(Element.constructor==null){return"object";}else{var Catches=Element.constructor.toString().toLowerCase().match(/([a-z0-9]+)(\(\))/i);if(Catches!=null){return Catches[1];}else{return"unknown";}}}function GetWindowBunds(){this.PageWidth=0;this.PageHeight=0;this.VisibleTop=0;this.VisibleLeft=0;this.VisibleWidth=0;this.VisibleHeight=0;this.isDefined=true;GetWindowBunds.prototype.Init=function(){if(window.innerHeight&&window.scrollMaxY){this.PageWidth=window.innerWidth+window.scrollMaxX;this.PageHeight=window.innerHeight+window.scrollMaxY;}else if(document.body.scrollHeight>document.body.offsetHeight){this.PageWidth=document.body.scrollWidth;this.PageHeight=document.body.scrollHeight;}else{this.PageWidth=document.body.offsetWidth+document.body.offsetLeft;this.PageHeight=document.body.offsetHeight+document.body.offsetTop;}if(typeof(window.innerWidth)=='number'){this.VisibleWidth=window.innerWidth;this.VisibleHeight=window.innerHeight;}else if(document.documentElement&&document.documentElement.clientWidth){this.VisibleWidth=document.documentElement.clientWidth;this.VisibleHeight=document.documentElement.clientHeight;}else if(document.body&&document.body.clientWidth){this.VisibleWidth=document.body.clientWidth;this.VisibleHeight=document.body.clientHeight;}if(!isNaN(window.pageYOffset)){this.VisibleTop=window.pageYOffset;this.VisibleLeft=window.pageXOffset;}else if(document.body&&(document.body.scrollTop||document.body.scrollLeft)){this.VisibleTop=document.body.scrollTop;this.VisibleLeft=document.body.scrollLeft;}else if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){this.VisibleTop=document.documentElement.scrollTop;this.VisibleLeft=document.documentElement.scrollLeft;}else{this.isDefined=false;}if(navigator.userAgent.indexOf('Safari')>-1){this.VisibleHeight=window.innerHeight;}};this.Init();}function FormatNumber(NumberString){NumberString+='';Parts=NumberString.split('.');Number1=Parts[0];Number2=Parts.length>1?'.'+Parts[1]:'';var rgx=/(\d+)(\d{3})/;while(rgx.test(Number1)){Number1=Number1.replace(rgx,'$1'+','+'$2');}return Number1+Number2;}function ImportJS(strFile,strTemplateName){document.write('<scri'+'pt language="javascript" type="text/javascript" src="http://www.househunting.ca/scripts/include.aspx?file=/themes/'+strTemplateName+'/'+strFile+'.inc"></scr'+'ipt>');}function EmailAgentDir(IdAgentForeignKey,Agent,EmailLeadType){if(EmailLeadType=='2'){tb_show('Email Agent',WebRoot+"Controls/AjaxCalls/EmailAgent.aspx?height=620&width=450&IdAgentForeignKey="+IdAgentForeignKey+"&Agent="+escape(Agent)+"&EmailLeadType="+EmailLeadType,false);}else{tb_show('Email Agent',WebRoot+"Controls/AjaxCalls/EmailAgent.aspx?height=375&width=450&IdAgentForeignKey="+IdAgentForeignKey+"&Agent="+escape(Agent)+"&EmailLeadType="+EmailLeadType,false);}}function EmailAgent(IdListing,Agent,EmailLeadType,flag,Refer){if(EmailLeadType=='2'){tb_show('Email Agent',WebRoot+"Controls/AjaxCalls/EmailAgent.aspx?height=600&width=450&IdListing="+IdListing+"&Agent="+escape(Agent)+"&EmailLeadType="+EmailLeadType+"&PageFlag="+flag,false);}else{tb_show('Email Agent',WebRoot+"Controls/AjaxCalls/EmailAgent.aspx?height=400&width=450&IdListing="+IdListing+"&Agent="+escape(Agent)+"&EmailLeadType="+EmailLeadType+"&PageFlag="+flag,false);}}function SMSFriend(IdListing,flag,url){tb_show('Listing you are sharing:',WebRoot+"Controls/AjaxCalls/EmailToMobile.aspx?height=390&width=450&IdListing="+IdListing+"&PageFlag="+flag+"&Url="+url,false);}function EmailFriend(IdListing,flag,url){tb_show('Listing you are sharing:',WebRoot+"Controls/AjaxCalls/EmailFriend.aspx?height=390&width=450&IdListing="+IdListing+"&PageFlag="+flag+"&Url="+url,false);}function ReportAsSpamThickBox(IdListing,DetailUrl,IdWeb,flag){tb_show('Report As Spam',WebRoot+"Controls/AjaxCalls/ReportAsSpam.aspx?height=225&width=450&IdListing="+IdListing+"&DetailUrl="+DetailUrl+"&IdWeb="+IdWeb+"&PageFlag="+flag,false);}function MortgageCalThickBox(Address,CityState,IdWeb,Price,SponseredURL,AdvertiserLogo){tb_show('Calculate Mortgage',WebRoot+"Controls/AjaxCalls/MortgageCalculater.aspx?height=400&width=500&Address="+escape(Address)+"&IdWeb="+IdWeb+"&Price="+Price+"&SponseredURL="+SponseredURL+"&AdvertiserLogo="+AdvertiserLogo+"&CityState="+escape(CityState),false);}function SMSAgentThickBox(AgentPhone,IdWeb){tb_show('Send SMS',WebRoot+"Controls/AjaxCalls/Send_SMS.aspx?height=300&width=400&AgentPhone="+AgentPhone+"&IdWeb="+IdWeb,false);}function SendEmail(emailstring){tb_show('Success',WebRoot+"send_email_lead.aspx?"+emailstring+"&height=50&width=250",false);}function FloorPlan(URL){var UGen=new UrlGen(URL);var flrplanURL="";if(UGen.GetParam("U")!=""){flrplanURL=UGen.GetParam("U");}else{flrplanURL=URL;}if(flrplanURL!=""){if(URL.indexOf('.html')>-1||URL.indexOf('.htm')>-1||URL.indexOf('.pdf')>-1){window.open(flrplanURL);}else{tb_show('Floor Plan',WebRoot+"Controls/AjaxCalls/FloorPlan.aspx?height=530&width=400&FloorPlanURL="+flrplanURL,false);}}}function SendSMS(theForm){if(theForm.txtName.value==""){alert("Please enter your name");theForm.txtName.focus();return(false);}if(theForm.txtPhone.value==""){alert("Please enter your phone no");theForm.txtPhone.focus();return(false);}if(theForm.txtMessage.value==""){alert("Please enter message");theForm.txtMessage.focus();return(false);}if(theForm.txtMessage.value.length>120){alert("You can not enter more than 120 charaters");theForm.txtMessage.focus();return(false);}tb_show('Success',WebRoot+"send_email_lead.aspx?AgentPhone="+theForm.AgentPhone.value+"&UName="+escape(theForm.txtName.value)+"&UPhone="+theForm.txtPhone.value+"&Message="+escape(theForm.txtMessage.value)+"&IdWeb="+theForm.IdWeb.value+"&SMS=true"+"&height=150&width=250",false);}function formatCurrency(num){num=num.toString().replace(/\$|\,/g,'');if(isNaN(num))num="0";sign=(num==(num=Math.abs(num)));num=Math.floor(num*100+0.50000000001);cents=num%100;num=Math.floor(num/100).toString();if(cents<10)cents="0"+cents;for(var i=0;i<Math.floor((num.length-(1+i))/3);i++)num=num.substring(0,num.length-(4*i+3))+','+num.substring(num.length-(4*i+3));return(((sign)?'':'-')+'$'+num);}function MortgageCalculate(theForm){var price=parseInt(theForm.Price.value);var downPayment=theForm.DownPayment.value;if(!IsNumeric(downPayment)||theForm.DownPayment.value==""){alert("Please enter numeric value in Down payment");theForm.DownPayment.focus();return(false);}var loanTerm=theForm.LoanTerm.value;if(!IsNumeric(loanTerm)||theForm.LoanTerm.value==""){alert("Please enter numeric value in Loan Term");theForm.LoanTerm.focus();return(false);}loanTerm=parseFloat(theForm.LoanTerm.value)*12;var Rate=theForm.IntersetRate.value;if(!IsNumeric(Rate)||theForm.IntersetRate.value==""){alert("Please enter numeric value in Interset Rate");theForm.IntersetRate.focus();return(false);}Rate=(parseFloat(theForm.IntersetRate.value)/100)/12;var Principal=(price)-((price*downPayment)/100)
var totalMonthlypayment=0;totalMonthlypayment=(Rate+(Rate/(Math.pow(1+Rate,loanTerm)-1)))*Principal;theForm.MonthlyPayment.value=formatCurrency(Math.round(totalMonthlypayment));}function ResetValue(theForm){var price=parseInt(theForm.Price.value);theForm.DownPayment.value="20";theForm.LoanTerm.value="30";theForm.IntersetRate.value="6";var Rate=(parseInt(theForm.IntersetRate.value)/100)/12;var Principal=(price)-((price*parseInt(theForm.DownPayment.value))/100)
var totalMonthlypayment=0;totalMonthlypayment=(Rate+(Rate/(Math.pow(1+Rate,(parseInt(theForm.LoanTerm.value)*12))-1)))*Principal;theForm.MonthlyPayment.value=formatCurrency(Math.round(totalMonthlypayment));}function ValidateSMSFriend(theForm){if(theForm.txtName.value==""){alert("Please enter your name.");theForm.txtName.focus();return(false);}if(theForm.txtPhone.value==""){alert("Please enter your phone no");theForm.txtPhone.focus();return(false);}if(theForm.provider.value=="x"){alert("Please choose a provider for your mobile phone.");theForm.provider.focus();return(false);}if(theForm.accept_terms.checked==false){alert("Please accept the Terms and Conditions");theForm.accept_terms.focus();return(false);}var phoneno=theForm.txtPhone.value;var EmailToAdress=phoneno.replace(/[^0-9]*/g,'')+"@"+theForm.provider.value;SendEmail("PageFlag="+theForm.PageFlag.value+"&IdListing="+theForm.IdListing.value+"&EmailFriendAddress="+EmailToAdress+"&Name="+escape(theForm.txtName.value)+"&emailto=friend"+"&Url="+theForm.Url.value+"&mobile=true");return(true);}function ValidateEmailFriend(theForm){if(theForm.flName.value==""){alert("Please enter your name.");theForm.flName.focus();return(false);}if(theForm.EmailAddress.value==""){alert("Please enter your email address.");theForm.EmailAddress.focus();return(false);}var addFlag=validEmailField(theForm.EmailAddress,"Please Enter valid E-mail address in the form: yourname@yourdomain.com");if(!addFlag){return(false);}if(theForm.NameFriend.value==""){alert("Please enter your Friend's name.");theForm.NameFriend.focus();return(false);}if(theForm.EmailFriendAddress.value==""){alert("Please enter your Friend's email address.");theForm.EmailFriendAddress.focus();return(false);}var addrss=theForm.EmailFriendAddress.value;theForm.EmailFriendAddress.value=addrss.replace(";",",");var faddFlag=validEmailFieldMultiple(theForm.EmailFriendAddress,",","Please Enter valid E-mail addresses in the form: yourname@yourdomain.com");if(!faddFlag){return(false);}if(theForm.Message.value!=""){var checkOK="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ0123456789-@%:')(#_*&+!.$/ ,- ; <=^>\"\t\r\n\f~";var checkStr=theForm.Message.value;var allValid=true;var k=checkStr.length;var p=0;for(i=0;i<k;i++){ch=checkStr.charAt(p);for(j=0;j<checkOK.length;j++){if(ch==checkOK.charAt(j)){p=p+1;break;}if(j==checkOK.length){checkStr=checkStr.substring(0,p)+checkStr.substring(p+1);}}}theForm.Message.value=checkStr;if(!allValid){alert("Please enter only letter, digit, whitespace and \"@%*$/:)(#_&-+!.;,<=^> \" characters in the \"Message\" field.");document.theForm.Message.focus();return(false);}}SendEmail("PageFlag="+theForm.PageFlag.value+"&IdListing="+theForm.IdListing.value+"&EmailAddress="+theForm.EmailAddress.value+"&EmailFriendAddress="+theForm.EmailFriendAddress.value+"&Message="+escape(theForm.Message.value)+"&Name="+escape(theForm.flName.value)+"&NameFriend="+escape(theForm.NameFriend.value)+"&emailto=friend"+"&Url="+theForm.Url.value);return(true);}function ValidateEmailAgent(theForm){var IdListing="";var PhoneNo="";var Ext="";if(theForm.IdListing){IdListing=theForm.IdListing.value;}if(theForm.Phone){PhoneNo=theForm.Phone.value;}if(theForm.Extension){Ext=theForm.Extension.value;}var EmailLeadType=theForm.EmailLeadType.value;if(theForm.FirstName.value==""){alert("Please enter your first name.");theForm.FirstName.focus();return(false);}if(theForm.LastName.value==""){alert("Please enter your last name.");theForm.LastName.focus();return(false);}if(theForm.EmailAddress.value==""){alert("Please enter your email address.");theForm.EmailAddress.focus();return(false);}var addFlag=validEmailField(theForm.EmailAddress,"Please enter valid email address in the format: yourname@yourdomain.com",1);if(!addFlag)return(false);if(EmailLeadType!="2"){if(theForm.Phone){addFlag=validateUSPhone(theForm.Phone,"Please enter valid phone number",2);if(!addFlag)return(false);}}if(theForm.Message.value!=""){var checkOK="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒ0123456789-@%:')(#_*&+!.$/ ,- ; <=^>\"\t\r\n\f~";var checkStr=theForm.Message.value;var allValid=true;var k=checkStr.length;var p=0;for(i=0;i<k;i++){ch=checkStr.charAt(p);for(j=0;j<checkOK.length;j++){if(ch==checkOK.charAt(j)){p=p+1;break;}if(j==checkOK.length){checkStr=checkStr.substring(0,p)+checkStr.substring(p+1);}}}theForm.Message.value=checkStr;if(!allValid){alert("Please enter only letter, digit, whitespace and \"@%*$/:)(#_&-+!.;,<=^> \" characters in the \"Message\" field.");document.theForm.Message.focus();return(false);}}if(EmailLeadType=="2"){SendEmail("PageFlag="+theForm.PageFlag.value+"&IdListing="+IdListing+"&IdAgentForeignKey="+theForm.IdAgentForeignKey.value+"&EmailAddress="+theForm.EmailAddress.value+"&Phone="+PhoneNo+"&Extension="+Ext+"&Message="+escape(theForm.Message.value)+"&Move="+escape(theForm.Move.value)+"&FirstName="+escape(theForm.FirstName.value)+"&LastName="+escape(theForm.LastName.value)+"&State="+escape(theForm.State.value)+"&City="+escape(theForm.City.value)+"&Street="+escape(theForm.Street.value)+"&Zip="+theForm.Zip.value+"&emailto=agent");}else{SendEmail("PageFlag="+theForm.PageFlag.value+"&IdListing="+IdListing+"&IdAgentForeignKey="+theForm.IdAgentForeignKey.value+"&EmailAddress="+theForm.EmailAddress.value+"&Phone="+PhoneNo+"&Extension="+Ext+"&Message="+escape(theForm.Message.value)+"&FirstName="+escape(theForm.FirstName.value)+"&LastName="+escape(theForm.LastName.value)+"&emailto=agent");}return(true);}function RestoreSelects(){if(!document.all){return;}var SelectCollection=document.getElementsByTagName("select");for(var s=0;s<SelectCollection.length;s++){SelectCollection[s].style.visibility="visible";}}function SweepSelects(TargetObject){if(!document.all){return;}var TRO=new RecurseOffset(TargetObject);var MatchLeft=TRO.offsetLeft;var MatchTop=TRO.offsetTop;var MatchRight=MatchLeft+TRO.offsetWidth;var MatchBottom=MatchTop+TRO.offsetHeight;var SelectCollection=document.getElementsByTagName("select");for(var s=0;s<SelectCollection.length;s++){var SelectObject=SelectCollection[s];var SRO=new RecurseOffset(SelectObject);var SelectLeft=SRO.offsetLeft;var SelectTop=SRO.offsetTop;var SelectRight=SelectLeft+SRO.offsetWidth;var SelectBottom=SelectTop+SRO.offsetHeight;if((SelectRight>MatchLeft)&&(SelectBottom>MatchTop)&&(SelectLeft<MatchRight)&&(SelectTop<MatchBottom)){SelectObject.style.visibility="hidden";}if((SelectLeft==0)&&(SelectTop==0)){SelectObject.style.visibility="hidden";}}}function UrlGen(strQueryString){this.Parameters=new Array();UrlGen.prototype.Init=function(strQueryString){with(this){Parameters=new Array();var QueryString=strQueryString.replace(/&amp;/gi,'&');QueryString=QueryString.replace('%7c','|');QueryString=unescape(QueryString);var _tempParams=QueryString.split('&');for(var i=0;i<_tempParams.length;i++){var _Param=_tempParams[i].split('=');Parameters.push(_Param);}}};UrlGen.prototype.RemoveParam=function(strKey){with(this){var _tempParams=new Array();for(var i=0;i<Parameters.length;i++){if(Parameters[i][0].toLowerCase()!=strKey.toLowerCase()){_tempParams.push(Parameters[i]);}}Parameters=_tempParams;}};UrlGen.prototype.RemoveParams=function(arrParams){with(this){for(var p=0;p<arrParams.length;p++){RemoveParam(arrParams[p]);}}};UrlGen.prototype.AddParam=function(strKey,strValue){with(this){Parameters.push(new Array(strKey,strValue));}};UrlGen.prototype.RemoveNValue=function(strValue){with(this){var _tempval=new Array();for(var i=0;i<Parameters.length;i++){if(Parameters[i][0].toLowerCase()!="n"){_tempval.push(Parameters[i]);}else{var _tempN=new Array();arrNewN=Parameters[i][1].split('+');for(var j=0;j<arrNewN.length;j++){if(arrNewN[j]!=strValue){_tempN.push(arrNewN[j]);}}if(_tempN.length>1){_tempval.push(new Array("N",_tempN.join('+').toString()));}else{_tempval.push(new Array("N",_tempN.toString()));}}}Parameters=_tempval;}};UrlGen.prototype.AddNValue=function(strValue){with(this){var _tempval=new Array();for(var i=0;i<Parameters.length;i++){if(Parameters[i][0].toLowerCase()!="n"){_tempval.push(Parameters[i]);}else{var arrN=new Array();arrN=Parameters[i][1].split('+');arrN.push(strValue);if(arrN.length>1){_tempval.push(new Array("N",arrN.join('+').toString()))}else{_tempval.push(new Array("N",arrN.toString()))}}}Parameters=_tempval;}};UrlGen.prototype.GetParam=function(strKey){with(this){for(var i=0;i<Parameters.length;i++){if(Parameters[i][0].toLowerCase()==strKey.toLowerCase()){return Parameters[i][1];}}return"";}};UrlGen.prototype.ToString=function(){with(this){var _tempParams=new Array();for(var i=0;i<Parameters.length;i++){if(trim(Parameters[i][0])!=""){_tempParams.push(Parameters[i].join('='));}}return _tempParams.join('&');}};this.Init(strQueryString);}function setAdTagsParameters(){document.globalPageSite="AJC";document.globalPageSctnName=adtag_globalPageSctnName;document.globalPageSctnId=adtag_globalPageSctnId;document.globalPageType=adtag_globalPageType;document.globalCategoryDspName=adtag_globalCategoryDspName;document.globalSctnDspName=adtag_globalSctnDspName;document.globalPageTitle=adtag_globalPageTitle;document.globalPageAbstract=adtag_globalPageAbstract;document.globalPageKeywords=adtag_globalPageKeywords;document.globalPageSponsorship=adtag_globalPageSponsorship;document.globalSctnLineage=adtag_globalSctnLineage;mdManager.addParameter("Url",adtag_url);mdManager.addParameter("Type",adtag_globalPageType);mdManager.addParameter("Role","");mdManager.addParameter("Title",adtag_globalPageTitle);mdManager.addParameter("Sponsorship",adtag_globalPageSponsorship);mdManager.addParameter("Abstract",adtag_globalPageAbstract);mdManager.addParameter("Keywords",adtag_globalPageKeywords);mdManager.addParameter("Classification",adtag_globalSctnLineage);mdManager.addParameter("Site","DOOR");mdManager.addParameter("SctnName",adtag_globalPageSctnName);mdManager.addParameter("SctnDspName",adtag_globalSctnDspName);mdManager.addParameter("CategoryDspName",adtag_globalCategoryDspName);mdManager.addParameter("SctnId",adtag_globalPageSctnId);mdManager.addParameter("DetailId","");mdManager.addParameter("PageNumber","1");mdManager.addParameter("UniqueId",adtag_globalUniqueId);mdManager.addParameter("Show_Abbr","");mdManager.addParameter("SearchKeywords","<% // FROM INITIAL SEARCH BOX %>");mdManager.addParameter("SearchFilters","<% // FROM REFINEMENTS %>");}function SetDefault(CurrentValue,DefaultValue){if(CurrentValue==undefined){return DefaultValue;}return CurrentValue;}function Dimensiondisplay(dimensionName){if(gE("refinement_"+dimensionName).style.display=="block"){gE("refinement_"+dimensionName).style.display="none";gE("link_"+dimensionName).className="open";}else{gE("refinement_"+dimensionName).style.display="block"
gE("link_"+dimensionName).className="close";}}