d=document;f=d.documentElement;g=d.forms;j=d.all;k= _proxy_jslib_handle(d, 'URL', '', 0, 0);m= _proxy_jslib_handle(d, 'location', '', 0, 0);o=d.images;p=d.anchors;t=d.links;u=d.embeds;v=false;ba=window;bb=true;bc=parseInt;bd= _proxy_jslib_handle(null, 'location', location, 0, 0);be= _proxy_jslib_handle(bd, 'pathname', '', 0, 0);bj=Array;bk=Object;bl= _proxy_jslib_handle(null, 'eval', eval, 0, 0);bm=navigator;bn=bm.plugins;bo=bm.userAgent;bp=undefined;bq=unescape;br=parseFloat;PINT_Global=new (bk)();PINT_Global.HTML=new (bk)();PINT_Global.HTML.anchors= _proxy_jslib_handle(d, 'getElementsByTagName', '', 1, 0)('a');PINT_Global.HTML.label= _proxy_jslib_handle(d, 'getElementsByTagName', '', 1, 0)('label');PINT_Global.Status=new (bk)();PINT_Global.Status.windowStatus="";PINT_Global.Browser=new (Browser)();function PINT_GetEventSource(e) {if(e&&e.target){var event=e&&e.target;while(event&&event.nodeType==3)event=event.parentNode;return(event);}if(ba&&ba.event&&ba.event.srcElement)return(ba&&ba.event&&ba.event.srcElement);return v}function PINT_GetElementById(idname) {var handle;if( _proxy_jslib_handle(d, 'getElementById', '', 0, 0)){handle= _proxy_jslib_handle(d, 'getElementById', '', 1, 0)(idname);if(handle)return handle}if(d.getElementByName){handle=d.getElementByName(idname)[0];if(handle)return handle}handle= _proxy_jslib_handle(document, (idname), 0, 0);if(handle)return handle;if(d.all){handle= _proxy_jslib_handle(d.all, (idname), 0, 0);if(handle)return handle}if(d.anchors){handle=d.anchors[(idname)];if(handle)return handle}if(d.links){handle=d.links[(idname)];if(handle)return handle}if(d.images){handle=d.images[(idname)];if(handle)return handle}if(d.embeds){handle=d.embeds[(idname)];if(handle)return handle}return handle}function PINT_GetIdByElement(element) {if(!(element))return bp;if(element.id)return element.id;if(element.name)return element.name;return bp}function PINT_ChangePageTitle(pageTitle) {if(d.title.readOnly==bb)d.title=pageTitle}function PINT_GetCurrentFileName() {var URL=bq( _proxy_jslib_handle(bd, 'pathname', '', 0, 0));var start= _proxy_jslib_handle(null, 'URL', URL, 0, 0).lastIndexOf("/")+1;var end=( _proxy_jslib_handle(null, 'URL', URL, 0, 0).indexOf("?")>0)? _proxy_jslib_handle(null, 'URL', URL, 0, 0).indexOf("?"): _proxy_jslib_handle(null, 'URL', URL, 0, 0).length;return( _proxy_jslib_handle(null, 'URL', URL, 0, 0).substring(start,end));}function PINT_GetCurrentFilePath() {var URL=bq( _proxy_jslib_handle(bd, 'pathname', '', 0, 0));var start= _proxy_jslib_handle(null, 'URL', URL, 0, 0).lastIndexOf("/");return( _proxy_jslib_handle(null, 'URL', URL, 0, 0).substring(0,start));}function PINT_GetCurrentDirectory() {var filePath=PINT_GetCurrentFilePath();var directories=filePath.split("/");return directories.length&& _proxy_jslib_handle(directories, (directories.length-1), 0, 0)!=""? _proxy_jslib_handle(directories, (directories.length-1), 0, 0):""}function PINT_IsRootDirectory(directory) {return directory.toLowerCase()==PINT_GetRootDirectory().toLowerCase()?bb:v}function PINT_IsDefaultFile() {var fileName=typeof(PINT_IsDefaultFile.arguments[0])!='undefined'?PINT_IsDefaultFile.arguments[0]:PINT_GetCurrentFileName();if(fileName=="")return bb;var fileNameList=PINT_GetDefaultFile();if(bl('typeof(fileNameList)')=='object'){for(var fileNameListIndex=0;fileNameListIndex<fileNameList.length;fileNameListIndex++)if((fileName== _proxy_jslib_handle(fileNameList, (fileNameListIndex), 0, 0)))return bb}return v}function PINT_GetDefaultFile() {if(typeof(defaultFileList)=='undefined')return"";else return defaultFileList.split(",");}function PINT_FirstFocus() {var elementref;var i=0;if(!(elementref=PINT_FirstFocus.arguments[0])){if(!(d.forms[0+(0)]))return v;while((elementref= _proxy_jslib_handle(d.forms[0+(0)].elements, (i++), 0, 0))&&((elementref.type=='hidden')||(elementref.type=='radio')||(elementref.disabled)||(elementref.type=='submit')||(elementref.type=='submit')||(elementref.type=='checkbox'))){}}else{var formIndex;var formElementIndex;var formElementName=PINT_FirstFocus.arguments[0];elementref=null;for(formIndex=0;formIndex<d.forms.length;formIndex++){for(formElementIndex=0;formElementIndex<d.forms[(formIndex)].elements.length;formElementIndex++){if( _proxy_jslib_handle(d.forms[(formIndex)].elements, (formElementIndex), 0, 0).name==formElementName){elementref= _proxy_jslib_handle(d.forms[(formIndex)].elements, (formElementIndex), 0, 0);break}}if(elementref)break}}if(!(elementref))return v;elementref.focus();return bb}function PINT_OnMouseOverHandler(e) {e=(e)?e:((ba.event)?ba.event:"");if(e){var eventsource=PINT_GetEventSource(e);if(bl('typeof(PINT_MenuTriggers)')!='undefined'){typeOfEventSource=typeof( _proxy_jslib_handle(PINT_MenuTriggers, (eventsource.id), 0, 0));if(typeOfEventSource!='undefined')PINT_MenuPopUp(e);}else if(bl('typeof(PINT_Global.Rollover.triggers)')!='undefined'){typeOfEventSource=typeof( _proxy_jslib_handle(PINT_Global.Rollover.triggers, (eventsource.id), 0, 0));if(typeOfEventSource!='undefined')PINT_RORollover(e);}PINT_SetWindowStatus();}return bb}function PINT_OnMouseOutHandler(e) {e=(e)?e:((ba.event)?ba.event:"");if(e){var eventsource=PINT_GetEventSource(e);if(bl('typeof(PINT_MenuTriggers)')!='undefined'){typeOfEventSource=typeof( _proxy_jslib_handle(PINT_MenuTriggers, (eventsource.id), 0, 0));if(typeOfEventSource!='undefined')PINT_MenuPopDown(e);}else if(bl('typeof(PINT_Global.Rollover.triggers)')){typeOfEventSource=typeof( _proxy_jslib_handle(PINT_Global.Rollover.triggers, (eventsource.id), 0, 0));if(typeOfEventSource!='undefined')PINT_RORollout(e);}}return bb}function PINT_SetWindowStatus() {if(PINT_SetWindowStatus.arguments.length==0){if(typeof(PINT_Global.Status.windowStatus)!='undefined'&&PINT_Global.Status.windowStatus!=""){ba.status=PINT_Global.Status.windowStatus;PINT_Global.Status.windowStatus=""}}else ba.status=PINT_SetWindowStatus.arguments[0];return bb}function PINT_GetRootDirectory() {if(typeof(rootDirectory)=='undefined')return"";else return rootDirectory}function PINT_getElementsByClass(name) {var all=d.all?d.all: _proxy_jslib_handle(d, 'getElementsByTagName', '', 1, 0)('*');var elements=new (bj)();for(var e=0;e<all.length;e++){if((name!='')&&( _proxy_jslib_handle(all, (e), 0, 0).className.indexOf(name)>=0)) _proxy_jslib_assign('', elements, (elements.length), '=', ( _proxy_jslib_handle(all, (e), 0, 0)))}return elements}function PINT_getURLParam(name,defaultVal) {var paramVal=defaultVal;var regex=new (RegExp)("\&"+name+"\=([^$\&]+)","i");if( _proxy_jslib_handle(d, 'URL', '', 0, 0).indexOf('?')!=-1){var qString='&'+ _proxy_jslib_handle(d, 'URL', '', 0, 0).substring(( _proxy_jslib_handle(d, 'URL', '', 0, 0).indexOf('?')+1), _proxy_jslib_handle(d, 'URL', '', 0, 0).length);var urlMatches=qString.match(regex);if((urlMatches!=null)&&(urlMatches.length==2))paramVal=urlMatches[1]}return paramVal}PINT_Global.OnChange=new (bk);PINT_Global.OnChange.linkType=new (bj)();function PINT_OnChangeHandler(e) {var formElement;e=(e)?e:((ba.event)?ba.event:"");if(e){var eventsource=PINT_GetEventSource(e);for(formIndex=0;formIndex<d.forms.length;formIndex++){formElement=d.forms[(formIndex)];for(elementIndex=0;elementIndex<formElement.elements.length;elementIndex++){if(eventsource.name== _proxy_jslib_handle(formElement.elements, (elementIndex), 0, 0).name){if( _proxy_jslib_handle(PINT_Global.OnChange.linkType, (eventsource.id), 0, 0)=="anchor"&& _proxy_jslib_handle( _proxy_jslib_handle(formElement.elements, (elementIndex), 0, 0), 'value', '', 0, 0)!="")bd= _proxy_jslib_handle(formElement, 'action', '', 0, 0)+"#"+ _proxy_jslib_handle( _proxy_jslib_handle(formElement.elements, (elementIndex), 0, 0), 'value', '', 0, 0);else if( _proxy_jslib_handle(PINT_Global.OnChange.linkType, (eventsource.id), 0, 0)=="page"&& _proxy_jslib_handle( _proxy_jslib_handle(formElement.elements, (elementIndex), 0, 0), 'value', '', 0, 0)!="")bd= _proxy_jslib_handle( _proxy_jslib_handle(formElement.elements, (elementIndex), 0, 0), 'value', '', 0, 0)}}}}return bb}function PINT_OnChangeInit() {if(PINT_OnChangeInit.arguments.length!=2)return v;if( _proxy_jslib_handle(d, 'getElementById', '', 0, 0)){var trigger= _proxy_jslib_handle(d, 'getElementById', '', 1, 0)(PINT_OnChangeInit.arguments[0]);if(trigger){ _proxy_jslib_assign('', PINT_Global.OnChange.linkType, (trigger.id), '=', (PINT_OnChangeInit.arguments[1]));trigger.onchange=PINT_OnChangeHandler}}return bb}var rot13map;function rot13init() {var map=new (bj)();var s="abcdefghijklmnopqrstuvwxyz";for(i=0;i<s.length;i++) _proxy_jslib_assign('', map, (s.charAt(i)), '=', (s.charAt((i+13)%26)));for(i=0;i<s.length;i++) _proxy_jslib_assign('', map, (s.charAt(i).toUpperCase()), '=', (s.charAt((i+13)%26).toUpperCase()));return map}function rot13(a) {if(!rot13map)rot13map=rot13init();var s="";for(i=0;i<a.length;i++){var b=a.charAt(i);s+=(b>='A'&&b<='Z'||b>='a'&&b<='z'? _proxy_jslib_handle(rot13map, (b), 0, 0):b);}return s}function print_e(user,domain) {var e=rot13(user)+"@"+rot13( _proxy_jslib_handle(null, 'domain', domain, 0, 0));var out='<a href="mailto:'+e+'">';out+=e;out+='</a>'; _proxy_jslib_handle(d, 'write', '', 1, 0)(out);}PINT_FlashObject=function(swf,id,w,h,defaultImage,ver,imageMap,c) {this.swf=swf;this.id=id;this.width=w;this.height=h;this.imageMap=imageMap;this.version=ver||6;this.align="middle";this.codebase=this.version+",0,0,0";this.redirect="";this.sq= _proxy_jslib_handle(m, 'search', '', 0, 0).split("?")[1]||"";this.defaultImage=defaultImage;this.altTxt="Please <a href='http://www.macromedia.com/go/getflashplayer'>upgrade your Flash Player</a>.";this.bypassTxt="";this.params=new (bk)();this.variables=new (bk)();if(c)this.color=this.addParam('bgcolor',c);this.addParam('quality','high');this.doDetect=getQueryParamValue('detectflash');};PINT_FlashObject.prototype.addParam=function(name,value) { _proxy_jslib_assign('', this.params, (name), '=', ( _proxy_jslib_handle(null, 'value', value, 0, 0)))};PINT_FlashObject.prototype.getParams=function() {return this.params};PINT_FlashObject.prototype.getParam=function(name) {return  _proxy_jslib_handle(this.params, (name), 0, 0)};PINT_FlashObject.prototype.addVariable=function(name,value) { _proxy_jslib_assign('', this.variables, (name), '=', ( _proxy_jslib_handle(null, 'value', value, 0, 0)))};PINT_FlashObject.prototype.getVariable=function(name) {return  _proxy_jslib_handle(this.variables, (name), 0, 0)};PINT_FlashObject.prototype.getVariables=function() {return this.variables};PINT_FlashObject.prototype.getParamTags=function() {var paramTags="";for(var param in this.getParams()){paramTags+='<param name="'+param+'" value="'+this.getParam(param)+'" />'}if(paramTags==""){paramTags=null}return paramTags};PINT_FlashObject.prototype.getHTML=function() {var flashHTML="";if(ba.ActiveXObject&&bm.userAgent.indexOf('Mac')==-1){flashHTML+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+this.codebase+'" width="'+this.width+'" height="'+this.height+'" id="'+this.id+'" align="'+this.align+'">';flashHTML+='<param name="movie" value="'+this.swf+'" />';if(this.getParamTags()!=null){flashHTML+=this.getParamTags();}if(this.getVariablePairs()!=null){flashHTML+='<param name="flashVars" value="'+this.getVariablePairs()+'" />'}flashHTML+='</object>'}else{flashHTML+='<embed type="application/x-shockwave-flash" src="'+this.swf+'" width="'+this.width+'" height="'+this.height+'" id="'+this.id+'" align="'+this.align+'"';for(var param in this.getParams()){flashHTML+=' '+param+'="'+this.getParam(param)+'"'}if(this.getVariablePairs()!=null){flashHTML+=' flashVars="'+this.getVariablePairs()+'"'}flashHTML+='></embed>'}return flashHTML};PINT_FlashObject.prototype.getVariablePairs=function() {var variablePairs=new (bj)();for(var name in this.getVariables()){variablePairs.push(name+"="+escape(this.getVariable(name)));}if(variablePairs.length>0){return variablePairs.join("&");}else{return null}}; _proxy_jslib_assign('', PINT_FlashObject.prototype, 'write', '=', (function(elementId) {if(detectFlash(this.version)||this.doDetect=='false'){if(elementId){ _proxy_jslib_assign('',  _proxy_jslib_handle(d, 'getElementById', '', 1, 0)(elementId), 'innerHTML', '=', (this.getHTML()));}else{ _proxy_jslib_handle(d, 'write', '', 1, 0)(this.getHTML());}}else{if(this.redirect!=""){ _proxy_jslib_handle(m, 'replace', '', 1, 0)(this.redirect);}else if(this.defaultImage!=""){imageString="<img src=\""+this.defaultImage+"\" width=\""+this.width+"\" height=\""+this.height+"\" border=\"0\" alt=\"\"";if(bl('typeof(this.imageMap)')!="undefined"&&this.imageMap!="")imageString+=" usemap=\"#"+this.imageMap+"\" ";imageString+=" class=\"inlineimage\" />"; _proxy_jslib_handle(d, 'write', '', 1, 0)(imageString);}else  _proxy_jslib_handle(d, 'write', '', 1, 0)(this.altTxt+""+this.bypassTxt);}}));function getFlashVersion() {var flashversion=0;if(bm.plugins&&bm.plugins.length){var x= _proxy_jslib_handle(bm.plugins, ("Shockwave Flash"), 0, 0);if(x){if(x.description){var y=x.description;flashversion=y.charAt(y.indexOf('.')-1);}}}else{result=v;for(var i=15;i>=3&&result!=bb;i--){ _proxy_jslib_handle(null, 'execScript', execScript, 1, 0)('on error resume next: result = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+i+'"))','VBScript');flashversion=i}}return flashversion}function detectFlash(ver) {if(getFlashVersion()>=ver){return bb}else{return v}}function getQueryParamValue(param) {var q= _proxy_jslib_handle(m, 'search', '', 0, 0);var detectIndex=q.indexOf(param);if(q.length>1&&detectIndex!=-1){return q.substring(q.indexOf("=",detectIndex)+1,q.indexOf("&",detectIndex));}else{return bb}}function addEvent(obj,evType,fn) {if(obj.addEventListener){obj.addEventListener(evType,fn,bb);return bb}else if(obj.attachEvent){var r=obj.attachEvent("on"+evType,fn);return r}else{return v}}function Browser() {var ua,s,i;this.isIE=v;this.isNS=v;this.version=null;ua=bm.userAgent;s="MSIE";if((i=ua.indexOf(s))>=0){this.isIE=bb;this.version=br(ua.substr(i+s.length));return}s="Netscape6/";if((i=ua.indexOf(s))>=0){this.isNS=bb;this.version=br(ua.substr(i+s.length));return}s="Gecko";if((i=ua.indexOf(s))>=0){this.isNS=bb;this.version=6.1;return}}function PINT_BrowserDetection() {if(PINT_BrowserDetection.arguments.length!=1)return v;var browserUpgradeFile=PINT_BrowserDetection.arguments[0];var currentFileName=PINT_GetCurrentFileName();if(! _proxy_jslib_handle(d, 'getElementById', '', 0, 0)&&(browserUpgradeFile.indexOf(currentFileName)=="-1"||currentFileName=="")) _proxy_jslib_handle(bd, 'replace', '', 1, 0)(PINT_GetRootDirectory()+'/'+browserUpgradeFile);}function popupWindow() {if(popupWindow.arguments.length<1)return v;var popupWin=null;popupWin= _proxy_jslib_handle(ba, 'open', '', 1, 0)(popupWindow.arguments[0],popupWindow.arguments[1],popupWindow.arguments[2]);}function PINT_GetWindowSize(style) {var size=400;if(style=="width"){if(typeof(ba.innerWidth)=='number')size=ba.innerWidth;else if(d.documentElement&&(d.documentElement.clientWidth||d.documentElement.clientHeight))size=d.documentElement.clientWidth;else if( _proxy_jslib_handle(d, 'body', '', 0, 0)&& _proxy_jslib_handle(d, 'body', '', 0, 0).clientWidth)size= _proxy_jslib_handle(d, 'body', '', 0, 0).clientWidth}else if(style=="height"){if(typeof(ba.innerWidth)=='number')size=ba.innerHeight;else if(d.documentElement&&(d.documentElement.clientWidth||d.documentElement.clientHeight))size=d.documentElement.clientHeight;else if( _proxy_jslib_handle(d, 'body', '', 0, 0)&& _proxy_jslib_handle(d, 'body', '', 0, 0).clientHeight)size= _proxy_jslib_handle(d, 'body', '', 0, 0).clientHeight}return size}function PINT_AnchorPopupWindows() {if(! _proxy_jslib_handle(d, 'getElementsByTagName', '', 0, 0))return;var anchors=PINT_Global.HTML.anchors;var currentAnchor;for(var anchorIndex=0;anchorIndex<anchors.length;anchorIndex++){var targetLink,relArray,relInformation,windowAttributes,javascriptTargetLink,windowName;var bd,menubar,resizable,scrollbars,status,toolbar;var width,height,windowType,windowName;currentAnchor= _proxy_jslib_handle(anchors, (anchorIndex), 0, 0);targetLink=currentAnchor.getAttribute("href");relInformation=currentAnchor.getAttribute("rel");if(relInformation&&targetLink){relArray=relInformation.split("|");if(relArray[0]=="popup"&&relArray.length>=4){if(relArray[1]!="null")width=bc(relArray[1])?bc(relArray[1]):400;else width=PINT_GetWindowSize("width");if(relArray[2]!="null")height=bc(relArray[2])?bc(relArray[2]):400;else height=PINT_GetWindowSize("height");windowType=relArray[3];windowAttributes="width="+width+",height="+height;if(windowType=="custom"){if(relArray.length<10)return v;bd=bc(relArray[4])?bc(relArray[4]):0;menubar=bc(relArray[5])?bc(relArray[5]):0;resizable=bc(relArray[6])?bc(relArray[6]):0;scrollbars=bc(relArray[7])?bc(relArray[7]):0;status=bc(relArray[8])?bc(relArray[8]):0;toolbar=bc(relArray[9])?bc(relArray[9]):0;if(relArray.length==11)windowName=relArray[10];else windowName="popupWindow";windowAttributes+=",location="+bd+",menubar="+menubar+",resizable="+resizable+",scrollbars="+scrollbars+",status="+status+",toolbar="+toolbar}else{if(relArray.length==5)windowName=relArray[4];else windowName="popupWindow";if(windowType=="standard")windowAttributes+=",location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0";else if(windowType=="resize")windowAttributes+=",location=0,menubar=0,resizable=1,scrollbars=0,status=0,toolbar=0";else if(windowType=="scrollbar")windowAttributes+=",location=0,menubar=0,resizable=0,scrollbars=1,status=0,toolbar=0";else if(windowType=="blank")windowAttributes="";else return v}javascriptTargetLink="javascript:popupWindow('"+targetLink+"','"+windowName+"','"+windowAttributes+"');"; _proxy_jslib_handle(currentAnchor, 'setAttribute', '', 1, 0)("href",javascriptTargetLink);}}}}function PINT_CSSMenus() {if(PINT_CSSMenus.arguments.length!=1)return v;if(d.all&& _proxy_jslib_handle(d, 'getElementById', '', 0, 0)){navRoot= _proxy_jslib_handle(d, 'getElementById', '', 1, 0)(PINT_CSSMenus.arguments[0]);for(i=0;i<navRoot.childNodes.length;i++){node= _proxy_jslib_handle(navRoot.childNodes, (i), 0, 0);if(node.nodeName=="LI"){node.onmouseover=function() {this.className+=" over"};node.onmouseout=function() {this.className= _proxy_jslib_handle(this.className, 'replace', '', 1, 0)(" over","");}}}}}

function jumpurl(selection) {
var tempIndex, selectedURL;
tempIndex = selection.selectedIndex;
selectedURL =  _proxy_jslib_handle( _proxy_jslib_handle(selection.options, (tempIndex), 0, 0), 'value', '', 0, 0);
 _proxy_jslib_assign('',  _proxy_jslib_handle( _proxy_jslib_handle(window, 'top', '', 0, 0), 'location', '', 0, 0), 'href', '=', ( selectedURL));
}

function goToURL(form) {

    var myindex=form.dropdownmenu.selectedIndex
    if(!myindex=="")
      {
         _proxy_jslib_handle(window, 'open', '', 1, 0)( _proxy_jslib_handle( _proxy_jslib_handle(form.dropdownmenu.options, (myindex), 0, 0), 'value', '', 0, 0),"","width=300,height=600,scrollbars=1");
      }
}

function productSearchUpdateSelectOptions(elem,updateElemId) {
    var optionChoices = new (Array)();
    var optionType = 'Brand';
    if ( _proxy_jslib_handle(elem, 'value', '', 0, 0) == 'brand') optionChoices = products.brands;
    else {
        optionChoices = products.categories;
        optionType = 'Category';
    }
    var optionCount = optionChoices.length;
    var sourceElement =  _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(updateElemId);
    sourceElement.options.length=0;
    sourceElement.options[0] = new (Option)('Please Select a ' + optionType, '');
    for(var i=0; i< optionCount; i++) {
         _proxy_jslib_assign('', sourceElement.options, (i+1), '=', ( new (Option)( _proxy_jslib_handle(optionChoices, (i), 0, 0).name,  _proxy_jslib_handle(optionChoices, (i), 0, 0).idValue)));
        if ( _proxy_jslib_handle(optionChoices, (i), 0, 0).isSelected)  _proxy_jslib_handle(sourceElement.options, (i+1), 0, 0).selected=true;
    }
}

function submitSearchForm(formName) {
    var formElem =  _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(formName);
    var urlParams='';
    var elemCount = formElem.elements.length;
    // loop through form elements and add each of the elements to the urlParams string
    for (var i=0; i<elemCount; i++) {
        // if the element has a name then add it to the urlParams
        if ( _proxy_jslib_handle(formElem.elements, (i), 0, 0).name) {
          if (urlParams.length) urlParams += "&";
            urlParams +=  _proxy_jslib_handle(formElem.elements, (i), 0, 0).name + "=" +  _proxy_jslib_handle( _proxy_jslib_handle(formElem.elements, (i), 0, 0), 'value', '', 0, 0);
        }
    }
    // change our location and tack on the urlParams
     _proxy_jslib_assign('', document, 'location', '=', (  _proxy_jslib_handle(formElem, 'action', '', 0, 0) + (( _proxy_jslib_handle(formElem, 'action', '', 0, 0).indexOf('?') != -1) ? "&" : "?") + urlParams));
    return false;
}

function getUrlSeparator(url) {
	var separator = "?";
	if(url.indexOf('?') != -1) separator = "&";
	return separator;
}	

function fourpawsDoEmail(emailUrl) {
	var dest = emailUrl + getUrlSeparator(emailUrl) + "p=" + escape( _proxy_jslib_handle( _proxy_jslib_handle(document, 'location', '', 0, 0), 'href', '', 0, 0));
	 _proxy_jslib_handle(window, 'open', '', 1, 0)(dest, "emailWindow", "width=620,height=287,resizable=yes,scrollbars=no,location=no,menubar=no,status=no,status=no,");
	return false;
}

function fourpawsDoPrint() {
	if (window.print) window.print();
	else alert("Select \"Print...\" from your file menu");
	return false;
}


function updateQuickFindProducts(el,targetElemId, rpcLocation) {
    var products =  _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(targetElemId);
    products.disabled ='disabled';
    products.options.length = 0;
    products.options[0] = new (Option)('Loading Products..', '');
    var urlParams = '&'+el.name+'='+ _proxy_jslib_handle(el, 'value', '', 0, 0)+"&targetElem="+targetElemId;
    doFP_RPC(rpcLocation, urlParams);
    return false;
}

function updateQuickFindCategories(elem, targetElemId, productsElemId) {
    var targetEl =  _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(targetElemId);
    var productsEl =  _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(productsElemId);
    // clear categories select element
    targetEl.options.length = 0;
    // clear and set products selected element
    productsEl.options.length = 0;
    productsEl.options[0] = new (Option)('No Products..', '');
    productsEl.disabled = 'disabled';
    // if there is a values, populate the categories select element
    if ( _proxy_jslib_handle(elem, 'value', '', 0, 0) != '') {
        // create the index we will use in the breedCategories array
        var index = 'breed'+ _proxy_jslib_handle(elem, 'value', '', 0, 0);
        // assumes there is a global array named breedCategoreis available
        categoryCount =  _proxy_jslib_handle(breedCategories, (index), 0, 0).length;
        targetEl.options[0] = new (Option)('Select Product Category...','');
        for(i=0;i<categoryCount;i++) {
             _proxy_jslib_assign('', targetEl.options, (i+1), '=', ( new (Option)( _proxy_jslib_handle( _proxy_jslib_handle(breedCategories, (index), 0, 0), (i), 0, 0).name,  _proxy_jslib_handle( _proxy_jslib_handle(breedCategories, (index), 0, 0), (i), 0, 0).idValue)));
        }
        targetEl.disabled = false;
    }
    else {
        targetEl.options[0] = new (Option)('No Product Categories..', '');
        targetEl.disabled = 'disabled';
    } 
}

function submitQuickFind(formElem, elemIdToCheck) {
    if ( _proxy_jslib_handle( _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(elemIdToCheck), 'value', '', 0, 0) != '') formElem.submit();
    return false;
}

function PINT_httpRequest(url) {
    // IE object
    if (window.ActiveXObject) xmlhttp=new (ActiveXObject)("Microsoft.XMLHTTP");
    else if (window.XMLHttpRequest) xmlhttp=new (XMLHttpRequest)();
    
   if (xmlhttp) {
        xmlhttp.onreadystatechange=PINT_checkRequestState;
         _proxy_jslib_handle(xmlhttp, 'open', '', 1, 0)("GET",url,true);
        xmlhttp.send(null);
   }
}

function PINT_checkRequestState() {
    // if xmlhttp shows "loaded"
    if (xmlhttp.readyState==4){
        if (xmlhttp.status==200) eval(_proxy_jslib_proxify_js((xmlhttp.responseText), 0, 0) );
        else alert("Http Request Failed:" + xmlhttp.statusText);
    }
}

/**
 * changes the location of a hidden iframe
 *
 */

function doFP_RPC(rpcLocation, additionalUrlParams) {
	var scriptLocation = PINT_GetRootDirectory() + rpcLocation +  getUrlSeparator(rpcLocation) + getRandomNumber() + '=' + getRandomNumber();
    if (additionalUrlParams) scriptLocation += additionalUrlParams;
	PINT_httpRequest(scriptLocation);
}

function getRandomNumber() {
	return  _proxy_jslib_handle(Math.floor(Math.random() * 10000000000000000), 'toString', '', 1, 0)();
}

function PINT_obfe(d, u, t) {
	if (t == null) var linkText = u+"&#"+64+";"+d; else var linkText = t;
	 _proxy_jslib_handle(document, 'write', '', 1, 0)("<a href=\"m&#"+97+";il&#"+116+";o:"+u+"&#"+64+";"+d+"\">"+linkText+"</a>");
}


function  childDirectoryShowHide(childId, element) {
        if ( _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(childId).className == "hide") {
             _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(childId).className = "show";
            element.className = 'collapse';
        }
        else if ( _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(childId).className == "show") {
             _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(childId).className = "hide";
            element.className = 'expand';
        }

}

// Browser Detection

isMac = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
NS4 = (document.layers) ? true : false;
IEmac = ((document.all)&&(isMac)) ? true : false;
IE4plus = (document.all) ? true : false;
IE4 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 4.")!=-1)) ? true : false;
IE5 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 5.")!=-1)) ? true : false;
ver4 = (NS4 || IE4plus) ? true : false;
NS6 = (!document.layers) && (navigator.userAgent.indexOf('Netscape')!=-1)?true:false;



// Body onload utility (supports multiple onload functions)
var gfourpawsSafeOnload = new (Array)();
function fourpawsSafeAddOnload(f) {
	if (IEmac && IE4)  // IE 4.5 blows out on testing window.onload
	{
		window.onload = fourpawsSafeOnload;
		 _proxy_jslib_assign('', gfourpawsSafeOnload, (gfourpawsSafeOnload.length), '=', ( f));
	}
	else
	{
		if (window.onload != fourpawsSafeOnload)
		{
			// if there is an onload event for the window, save it for later execution
			if (window.onload) {
				var arr =  _proxy_jslib_handle(window.onload, 'toString', '', 1, 0)().match(/function\s*(\w+)/);
				gfourpawsSafeOnload[0] = arr[1] + "()";
			}
			window.onload = fourpawsSafeOnload;
		}		
		 _proxy_jslib_assign('', gfourpawsSafeOnload, (gfourpawsSafeOnload.length), '=', ( f));
	}
}

function fourpawsSafePrependOnload(f) {
	if (!gfourpawsSafeOnload.length) fourpawsSafeAddOnload(f);
	else gfourpawsSafeOnload.unshift(f);
}

function fourpawsSafeOnload() {
	for (var i=0;i<gfourpawsSafeOnload.length;i++) {
		if ( _proxy_jslib_handle(gfourpawsSafeOnload, (i), 0, 0) != null) {
			eval(_proxy_jslib_proxify_js(( _proxy_jslib_handle(gfourpawsSafeOnload, (i), 0, 0)), 0, 0) );
		}
	}
}

 ;
_proxy_jslib_flush_write_buffers() ;