d=document;f=d.documentElement;g=d.forms;j=d.all;k=d.URL;m=d.location;o=d.images;p=d.anchors;t=d.links;u=d.embeds;v=false;ba=window;bb=true;bc=parseInt;bd=location;be=bd.pathname;bj=Array;bk=Object;bl=eval;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=d.getElementsByTagName('a');PINT_Global.HTML.label=d.getElementsByTagName('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(d.getElementById){handle=d.getElementById(idname);if(handle)return handle}if(d.getElementByName){handle=d.getElementByName(idname)[0];if(handle)return handle}handle=document[idname];if(handle)return handle;if(d.all){handle=d.all[idname];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(bd.pathname);var start=URL.lastIndexOf("/")+1;var end=(URL.indexOf("?")>0)?URL.indexOf("?"):URL.length;return(URL.substring(start,end));}function PINT_GetCurrentFilePath(){var URL=bq(bd.pathname);var start=URL.lastIndexOf("/");return(URL.substring(0,start));}function PINT_GetCurrentDirectory(){var filePath=PINT_GetCurrentFilePath();var directories=filePath.split("/");return directories.length&&directories[directories.length-1]!=""?directories[directories.length-1]:""}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==fileNameList[fileNameListIndex]))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]))return v;while((elementref=d.forms[0].elements[i++])&&((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(d.forms[formIndex].elements[formElementIndex].name==formElementName){elementref=d.forms[formIndex].elements[formElementIndex];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(PINT_MenuTriggers[eventsource.id]);if(typeOfEventSource!='undefined')PINT_MenuPopUp(e);}else if(bl('typeof(PINT_Global.Rollover.triggers)')!='undefined'){typeOfEventSource=typeof(PINT_Global.Rollover.triggers[eventsource.id]);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(PINT_MenuTriggers[eventsource.id]);if(typeOfEventSource!='undefined')PINT_MenuPopDown(e);}else if(bl('typeof(PINT_Global.Rollover.triggers)')){typeOfEventSource=typeof(PINT_Global.Rollover.triggers[eventsource.id]);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:d.getElementsByTagName('*');var elements=new bj();for(var e=0;e<all.length;e++){if((name!='')&&(all[e].className.indexOf(name)>=0))elements[elements.length]=all[e]}return elements}function PINT_getURLParam(name,defaultVal){var paramVal=defaultVal;var regex=new RegExp("\&"+name+"\=([^$\&]+)","i");if(d.URL.indexOf('?')!=-1){var qString='&'+d.URL.substring((d.URL.indexOf('?')+1),d.URL.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==formElement.elements[elementIndex].name){if(PINT_Global.OnChange.linkType[eventsource.id]=="anchor"&&formElement.elements[elementIndex].value!="")bd=formElement.action+"#"+formElement.elements[elementIndex].value;else if(PINT_Global.OnChange.linkType[eventsource.id]=="page"&&formElement.elements[elementIndex].value!="")bd=formElement.elements[elementIndex].value}}}}return bb}function PINT_OnChangeInit(){if(PINT_OnChangeInit.arguments.length!=2)return v;if(d.getElementById){var trigger=d.getElementById(PINT_OnChangeInit.arguments[0]);if(trigger){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++)map[s.charAt(i)]=s.charAt((i+13)%26);for(i=0;i<s.length;i++)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'?rot13map[b]:b);}return s}function print_e(user,domain){var e=rot13(user)+"@"+rot13(domain);var out='<a href="mailto:'+e+'">';out+=e;out+='</a>';d.write(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=m.search.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){this.params[name]=value};PINT_FlashObject.prototype.getParams=function(){return this.params};PINT_FlashObject.prototype.getParam=function(name){return this.params[name]};PINT_FlashObject.prototype.addVariable=function(name,value){this.variables[name]=value};PINT_FlashObject.prototype.getVariable=function(name){return this.variables[name]};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}};PINT_FlashObject.prototype.write=function(elementId){if(detectFlash(this.version)||this.doDetect=='false'){if(elementId){d.getElementById(elementId).innerHTML=this.getHTML();}else{d.write(this.getHTML());}}else{if(this.redirect!=""){m.replace(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\" />";d.write(imageString);}else d.write(this.altTxt+""+this.bypassTxt);}};function getFlashVersion(){var flashversion=0;if(bm.plugins&&bm.plugins.length){var x=bm.plugins["Shockwave Flash"];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--){execScript('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=m.search;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(!d.getElementById&&(browserUpgradeFile.indexOf(currentFileName)=="-1"||currentFileName==""))bd.replace(PINT_GetRootDirectory()+'/'+browserUpgradeFile);}function popupWindow(){if(popupWindow.arguments.length<1)return v;var popupWin=null;popupWin=ba.open(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(d.body&&d.body.clientWidth)size=d.body.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(d.body&&d.body.clientHeight)size=d.body.clientHeight}return size}function PINT_AnchorPopupWindows(){if(!d.getElementsByTagName)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=anchors[anchorIndex];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+"');";currentAnchor.setAttribute("href",javascriptTargetLink);}}}}function PINT_CSSMenus(){if(PINT_CSSMenus.arguments.length!=1)return v;if(d.all&&d.getElementById){navRoot=d.getElementById(PINT_CSSMenus.arguments[0]);for(i=0;i<navRoot.childNodes.length;i++){node=navRoot.childNodes[i];if(node.nodeName=="LI"){node.onmouseover=function(){this.className+=" over"};node.onmouseout=function(){this.className=this.className.replace(" over","");}}}}}

PINT_CSSStructure=new Object();PINT_TOOLS=new Object();PINT_TOOLS.FONT=new Object();PINT_TOOLS.FONT.GLOBAL_DIV="contentdiv";PINT_TOOLS.FONT.CURRENT=false;PINT_TOOLS.FONT.PRESERVE=false;PINT_TOOLS.FONT.DISPLAY_ADVANCE=false;PINT_TOOLS.FONT.DISPLAY_BASIC=false;function PINT_SetGlobalFontDiv(globalDiv){PINT_TOOLS.FONT.GLOBAL_DIV=globalDiv}function PINT_GetGlobalFontDiv(){return PINT_TOOLS.FONT.GLOBAL_DIV}function PINT_CheckGlobalFontDiv(){return PINT_GetGlobalFontDiv()==""?true:false}function PINT_GetGlobalFontPreserveSession(){return PINT_TOOLS.FONT.PRESERVE}function PINT_SetGlobalFontPreserveSession(setting){PINT_TOOLS.FONT.PRESERVE=setting}function PINT_GetGlobalFontCurrentSession(){return PINT_TOOLS.FONT.CURRENT}function PINT_SetGlobalFontCurrentSession(setting){PINT_TOOLS.FONT.CURRENT=setting}function PINT_SetGlobalFontDisplayAdvance(setting){PINT_TOOLS.FONT.DISPLAY_ADVANCE=setting}function PINT_GetGlobalFontDisplayAdvance(){return PINT_TOOLS.FONT.DISPLAY_ADVANCE}function PINT_SetGlobalFontDisplayBasic(setting){PINT_TOOLS.FONT.DISPLAY_BASIC=setting}function PINT_GetGlobalFontDisplayBasic(){return PINT_TOOLS.FONT.DISPLAY_BASIC}function PINT_TextSizeChangerBasic(){if(!PINT_CheckGlobalFontDiv()){var contentElement=document.getElementById(PINT_GetGlobalFontDiv());var increaseTrigger=document.getElementById("increaseFonta");var decreaseTrigger=document.getElementById("decreaseFonta");if(contentElement&&increaseTrigger&&decreaseTrigger){increaseTrigger.onclick=PINT_IncreaseFontSize;decreaseTrigger.onclick=PINT_DecreaseFontSize;if(PINT_GetGlobalFontCurrentSession()||PINT_GetGlobalFontPreserveSession())PINT_SetDefaultFontInformation(PINT_TOOLS.FONT.GLOBAL_DIV);}}}function PINT_TextSizeThreeButton(){if(!PINT_CheckGlobalFontDiv()){var contentElement=document.getElementById(PINT_GetGlobalFontDiv());var smallTrigger=document.getElementById("small_fonta");var mediumTrigger=document.getElementById("medium_fonta");var largeTrigger=document.getElementById("large_fonta");if(contentElement&&smallTrigger&&mediumTrigger&&largeTrigger){smallTrigger.onclick=PINT_SetFontSizeByButton;mediumTrigger.onclick=PINT_SetFontSizeByButton;largeTrigger.onclick=PINT_SetFontSizeByButton;if(PINT_GetGlobalFontCurrentSession()||PINT_GetGlobalFontPreserveSession())PINT_SetDefaultFontInformation(PINT_TOOLS.FONT.GLOBAL_DIV);}}}function PINT_TextSizeChangerAdvance(){if(!PINT_CheckGlobalFontDiv()){var contentElement=document.getElementById(PINT_GetGlobalFontDiv());var fontFamilyTrigger=document.getElementById("selectFontFamily");var fontSizeTrigger=document.getElementById("selectFontSize");if(contentElement&&fontFamilyTrigger&&fontSizeTrigger){fontFamilyTrigger.onchange=PINT_SelectFontFamily;fontSizeTrigger.onchange=PINT_SelectFontSize;if(PINT_GetGlobalFontCurrentSession()||PINT_GetGlobalFontPreserveSession())PINT_SetDefaultFontInformation(PINT_TOOLS.FONT.GLOBAL_DIV);}}}function PINT_AbortSetFontToolsDisplay(){PINT_SetGlobalFontDisplayAdvance(false);PINT_SetGlobalFontDisplayBasic(false);}function PINT_AllowForFontChanger(){var returnValue=true;if(document.styleSheets=="undefined")returnValue=false;if(!document.getElementById)returnValue=false;if(!returnValue)PINT_AbortSetFontToolsDisplay();return returnValue}function PINT_BuildCSSStructure(){var cssRules;var styleInformation;if(document.all)cssRules="rules";else if(document.getElementById)cssRules="cssRules";breakLoop=false;for(styleSheetIndex=0;styleSheetIndex<document.styleSheets.length;styleSheetIndex++){for(cssRulesIndex=0;cssRulesIndex<document.styleSheets[styleSheetIndex][cssRules].length;cssRulesIndex++){className=document.styleSheets[styleSheetIndex][cssRules][cssRulesIndex].selectorText.toLowerCase();if(className.indexOf("div."+PINT_GetGlobalFontDiv().toLowerCase())!=-1){PINT_CSSStructure=document.styleSheets[styleSheetIndex][cssRules][cssRulesIndex];breakLoop=true;break}}if(breakLoop)break}}function PINT_GetCurrentFontInformation(){var fontInformation=new Object();fontInformation.useFontSize=false;fontInformation.useFontFamily=false;if(PINT_CSSStructure.style.fontSize!=""){fontInformation.useFontSize=true;fontInformation.fontSize=new String(parseInt(PINT_CSSStructure.style.fontSize));fontInformation.fontType=PINT_CSSStructure.style.fontSize.substring(fontInformation.fontSize.length);fontInformation.fontSize=fontInformation.fontSize>=5?parseInt(fontInformation.fontSize):5}if(PINT_CSSStructure.style.fontFamily!=""){fontInformation.useFontFamily=true;fontInformation.fontFamily=PINT_CSSStructure.style.fontFamily}return fontInformation}function PINT_DetermineChangePercentage(){if(PINT_DetermineChangePercentage.arguments.length!=1)return false;var sizeChange=PINT_DetermineChangePercentage.arguments[0];var currentFontSize=null;var allowChangeFontSize=true;var changePercentage=null;fontInformation=PINT_GetCurrentFontInformation();if(fontInformation.useFontSize){newFontSize=fontInformation.fontSize+sizeChange;changePercentage=newFontSize/fontInformation.fontSize}return changePercentage}function PINT_ChangeFontFamily(){if((PINT_ChangeFontFamily.arguments.length!=1))return false;var fontFamily=PINT_ChangeFontFamily.arguments[0];PINT_CSSStructure.style.fontFamily=fontFamily;if(PINT_GetGlobalFontPreserveSession()||PINT_GetGlobalFontCurrentSession())document.cookie="fontFamily="+escape(fontFamily)+";"+PINT_CreateCookieDate();else PINT_DeleteCookie("fontFamily","fontSize");}function PINT_ChangeFontSize(){if((PINT_ChangeFontSize.arguments.length!=1))return false;var sizeChange=PINT_ChangeFontSize.arguments[0];var fontSize;var changePercentage=PINT_DetermineChangePercentage(sizeChange);var fontInformation=PINT_GetCurrentFontInformation();if(fontInformation.useFontSize&&changePercentage){fontSize=fontInformation.fontSize*changePercentage;fontSize+=fontInformation.fontType;PINT_CSSStructure.style.fontSize=fontSize}if(PINT_GetGlobalFontPreserveSession()||PINT_GetGlobalFontCurrentSession())document.cookie="fontSize="+escape(fontSize)+";"+PINT_CreateCookieDate();else PINT_DeleteCookie("fontFamily","fontSize");}function PINT_IncreaseFontSize(){if(PINT_CheckGlobalFontDiv())return false;var contentElement=document.getElementById(PINT_GetGlobalFontDiv());if(contentElement)PINT_ChangeFontSize(1);else PINT_AbortSetFontToolsDisplay();return false}function PINT_DecreaseFontSize(){if(PINT_CheckGlobalFontDiv())return false;var contentElement=document.getElementById(PINT_GetGlobalFontDiv());if(contentElement)PINT_ChangeFontSize(-1);else PINT_AbortSetFontToolsDisplay();return false}function PINT_ChangeFontSizeLoop(){if(PINT_ChangeFontSizeLoop.arguments.length!=1)return false;maxElements=PINT_ChangeFontSizeLoop.arguments[0];if(maxElements>0){for(fontSizeIndex=0;fontSizeIndex<maxElements;fontSizeIndex++){PINT_IncreaseFontSize();}}else if(maxElements<0){for(fontSizeIndex=0;fontSizeIndex>maxElements;fontSizeIndex--){PINT_DecreaseFontSize();}}}function PINT_SelectFontSize(){if(PINT_CheckGlobalFontDiv())return false;var contentElementName=PINT_GetGlobalFontDiv();var formElement=this;var contentElement=document.getElementById(contentElementName);var newElementValue;for(var formElementIndex=0;formElementIndex<formElement.length;formElementIndex++){if(formElement[formElementIndex].selected){newElementValue=formElement[formElementIndex].value;break}}if(newElementValue&&contentElement){fontInformation=PINT_GetCurrentFontInformation();if(fontInformation.useFontSize){newElementValue-=fontInformation.fontSize;PINT_ChangeFontSizeLoop(newElementValue);}else PINT_AbortSetFontToolsDisplay()}else PINT_AbortSetFontToolsDisplay();}function PINT_SelectFontFamily(){if(PINT_CheckGlobalFontDiv())return false;var contentElementName=PINT_GetGlobalFontDiv();var formElement=this;var contentElement=document.getElementById(contentElementName);newFontFamily="";for(var formElementIndex=0;formElementIndex<formElement.length;formElementIndex++){if(formElement[formElementIndex].selected){newFontFamily=formElement[formElementIndex].value;break}}if(newFontFamily.length&&contentElement){PINT_ChangeFontFamily(newFontFamily);}}function PINT_CreateCookieDate(){dateString="";if(PINT_GetGlobalFontPreserveSession()){var expiration=new Date();expiration.setYear(expiration.getFullYear()+2);dateString=" expires="+expiration.toGMTString()+";"}return dateString}function PINT_ExtractCookies(){var name,value;var beginning,middle,end;var currentCookies=new Object();beginning=0;while(beginning<document.cookie.length){middle=document.cookie.indexOf('=',beginning);end=document.cookie.indexOf(';',beginning);if(end==-1)end=document.cookie.length;if((middle>end)||(middle==-1)){name=document.cookie.substring(beginning,end);value=""}else{name=document.cookie.substring(beginning,middle);value=document.cookie.substring(middle+1,end);}currentCookies[name]=unescape(value);beginning=end+2}return currentCookies}function PINT_DeleteCookie(){if(!PINT_DeleteCookie.arguments.length)return false;for(var argumentIndex=0;argumentIndex<PINT_DeleteCookie.arguments.length;argumentIndex++){document.cookie=PINT_DeleteCookie.arguments[argumentIndex]+"=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT";document.cookie=PINT_DeleteCookie.arguments[argumentIndex]+"; expires=Thu, 01-Jan-1970 00:00:01 GMT"}}function PINT_SetDefaultFontInformation(){if(PINT_SetDefaultFontInformation.arguments.length!=1)return false;if(PINT_GetGlobalFontPreserveSession()||PINT_GetGlobalFontCurrentSession()){var currentCookies=PINT_ExtractCookies();var currentElement=document.getElementById(PINT_SetDefaultFontInformation.arguments[0]);if(currentElement&&currentCookies){if(typeof(currentCookies["fontSize"])!="undefined")PINT_CSSStructure.style.fontSize=currentCookies["fontSize"];if(typeof(currentCookies["fontFamily"])!="undefined")PINT_CSSStructure.style.fontFamily=currentCookies["fontFamily"].toLowerCase();}}}function PINT_SetFontSizeByButton(){if(PINT_CheckGlobalFontDiv())return false;var contentElement=document.getElementById(PINT_GetGlobalFontDiv());var gridContainer=document.getElementById("grid_container");if(contentElement){if(this.id=='small_fonta'){if(gridContainer)gridContainer.style.height='';PINT_CSSStructure.style.fontSize="11px"}else if(this.id=='medium_fonta'){PINT_CSSStructure.style.fontSize="13px";if(gridContainer&&gridContainer.offsetHeight>=220)gridContainer.style.height="220px"}else if(this.id=='large_fonta'){PINT_CSSStructure.style.fontSize="15px";if(gridContainer&&gridContainer.offsetHeight>=220)gridContainer.style.height="220px"}}else PINT_AbortSetFontToolsDisplay();return false}

function arrayValueExists(a,x) {
    for (var i = 0; i < a.length; i++) {
        if (a[i] == x) return true;
    }
    return false;
}

Date.prototype.formatDate = function (input,time) {
    // formatDate :
    // a PHP date like function, for formatting date strings
    // See: http://www.php.net/date
    //
    // input : format string
    // time : epoch time (seconds, and optional)
    //
    // if time is not passed, formatting is based on 
    // the current "this" date object's set time.
    //
    // supported:
    // a, A, B, d, D, F, g, G, h, H, i, j, l (lowercase L), L, 
    // m, M, n, O, r, s, S, t, U, w, W, y, Y, z
    //
    // unsupported:
    // I (capital i), T, Z    

    var switches =    ["a", "A", "B", "d", "D", "F", "g", "G", "h", "H", 
                       "i", "j", "l", "L", "m", "M", "n", "O", "r", "s", 
                       "S", "t", "U", "w", "W", "y", "Y", "z"];
    var daysLong =    ["Sunday", "Monday", "Tuesday", "Wednesday", 
                       "Thursday", "Friday", "Saturday"];
    var daysShort =   ["Sun", "Mon", "Tue", "Wed", 
                       "Thu", "Fri", "Sat"];
    var monthsShort = ["Jan", "Feb", "Mar", "Apr",
                       "May", "Jun", "Jul", "Aug", "Sep",
                       "Oct", "Nov", "Dec"];
    var monthsLong =  ["January", "February", "March", "April",
                       "May", "June", "July", "August", "September",
                       "October", "November", "December"];
    var daysSuffix = ["st", "nd", "rd", "th", "th", "th", "th", // 1st - 7th
                      "th", "th", "th", "th", "th", "th", "th", // 8th - 14th
                      "th", "th", "th", "th", "th", "th", "st", // 15th - 21st
                      "nd", "rd", "th", "th", "th", "th", "th", // 22nd - 28th
                      "th", "th", "st"];                        // 29th - 31st

    function a() {
        // Lowercase Ante meridiem and Post meridiem
        return self.getHours() > 11? "pm" : "am";
    }
    function A() {
        // Uppercase Ante meridiem and Post meridiem
        return self.getHours() > 11? "PM" : "AM";
    }

    function B(){
        // Swatch internet time. code simply grabbed from ppk,
        // since I was feeling lazy:
        // http://www.xs4all.nl/~ppk/js/beat.html
        var off = (self.getTimezoneOffset() + 60)*60;
        var theSeconds = (self.getHours() * 3600) + 
                         (self.getMinutes() * 60) + 
                          self.getSeconds() + off;
        var beat = Math.floor(theSeconds/86.4);
        if (beat > 1000) beat -= 1000;
        if (beat < 0) beat += 1000;
        if ((""+beat).length == 1) beat = "00"+beat;
        if ((""+beat).length == 2) beat = "0"+beat;
        return beat;
    }
    
    function d() {
        // Day of the month, 2 digits with leading zeros
        return new String(self.getDate()).length == 1?
        "0"+self.getDate() : self.getDate();
    }
    function D() {
        // A textual representation of a day, three letters
        return daysShort[self.getDay()];
    }
    function F() {
        // A full textual representation of a month
        return monthsLong[self.getMonth()];
    }
    function g() {
        // 12-hour format of an hour without leading zeros
        return self.getHours() > 12? self.getHours()-12 : self.getHours();
    }
    function G() {
        // 24-hour format of an hour without leading zeros
        return self.getHours();
    }
    function h() {
        // 12-hour format of an hour with leading zeros
        if (self.getHours() > 12) {
          var s = new String(self.getHours()-12);
          return s.length == 1?
          "0"+ (self.getHours()-12) : self.getHours()-12;
        } else { 
          var s = new String(self.getHours());
          return s.length == 1?
          "0"+self.getHours() : self.getHours();
        }  
    }
    function H() {
        // 24-hour format of an hour with leading zeros
        return new String(self.getHours()).length == 1?
        "0"+self.getHours() : self.getHours();
    }
    function i() {
        // Minutes with leading zeros
        return new String(self.getMinutes()).length == 1? 
        "0"+self.getMinutes() : self.getMinutes(); 
    }
    function j() {
        // Day of the month without leading zeros
        return self.getDate();
    }    
    function l() {
        // A full textual representation of the day of the week
        return daysLong[self.getDay()];
    }
    function L() {
        // leap year or not. 1 if leap year, 0 if not.
        // the logic should match iso's 8601 standard.
        var y_ = Y();
        if (         
            (y_ % 4 == 0 && y_ % 100 != 0) ||
            (y_ % 4 == 0 && y_ % 100 == 0 && y_ % 400 == 0)
            ) {
            return 1;
        } else {
            return 0;
        }
    }
    function m() {
        // Numeric representation of a month, with leading zeros
        return self.getMonth() < 9?
        "0"+(self.getMonth()+1) : 
        self.getMonth()+1;
    }
    function M() {
        // A short textual representation of a month, three letters
        return monthsShort[self.getMonth()];
    }
    function n() {
        // Numeric representation of a month, without leading zeros
        return self.getMonth()+1;
    }
    function O() {
        // Difference to Greenwich time (GMT) in hours
        var os = Math.abs(self.getTimezoneOffset());
        var h = ""+Math.floor(os/60);
        var m = ""+(os%60);
        h.length == 1? h = "0"+h:1;
        m.length == 1? m = "0"+m:1;
        return self.getTimezoneOffset() < 0 ? "+"+h+m : "-"+h+m;
    }
    function r() {
        // RFC 822 formatted date
        var r; // result
        //  Thu    ,     21          Dec         2000
        r = D() + ", " + j() + " " + M() + " " + Y() +
        //        16     :    01     :    07          +0200
            " " + H() + ":" + i() + ":" + s() + " " + O();
        return r;
    }
    function S() {
        // English ordinal suffix for the day of the month, 2 characters
        return daysSuffix[self.getDate()-1];
    }
    function s() {
        // Seconds, with leading zeros
        return new String(self.getSeconds()).length == 1?
        "0"+self.getSeconds() : self.getSeconds();
    }
    function t() {

        // thanks to Matt Bannon for some much needed code-fixes here!
        var daysinmonths = [null,31,28,31,30,31,30,31,31,30,31,30,31];
        if (L()==1 && n()==2) return 29; // leap day
        return daysinmonths[n()];
    }
    function U() {
        // Seconds since the Unix Epoch (January 1 1970 00:00:00 GMT)
        return Math.round(self.getTime()/1000);
    }
    function W() {
        // Weeknumber, as per ISO specification:
        // http://www.cl.cam.ac.uk/~mgk25/iso-time.html
        
        // if the day is three days before newyears eve,
        // there's a chance it's "week 1" of next year.
        // here we check for that.
        var beforeNY = 364+L() - z();
        var afterNY  = z();
        var weekday = w()!=0?w()-1:6; // makes sunday (0), into 6.
        if (beforeNY <= 2 && weekday <= 2-beforeNY) {
            return 1;
        }
        // similarly, if the day is within threedays of newyears
        // there's a chance it belongs in the old year.
        var ny = new Date("January 1 " + Y() + " 00:00:00");
        var nyDay = ny.getDay()!=0?ny.getDay()-1:6;
        if (
            (afterNY <= 2) && 
            (nyDay >=4)  && 
            (afterNY >= (6-nyDay))
            ) {
            // Since I'm not sure we can just always return 53,
            // i call the function here again, using the last day
            // of the previous year, as the date, and then just
            // return that week.
            var prevNY = new Date("December 31 " + (Y()-1) + " 00:00:00");
            return prevNY.formatDate("W");
        }
        
        // week 1, is the week that has the first thursday in it.
        // note that this value is not zero index.
        if (nyDay <= 3) {
            // first day of the year fell on a thursday, or earlier.
            return 1 + Math.floor( ( z() + nyDay ) / 7 );
        } else {
            // first day of the year fell on a friday, or later.
            return 1 + Math.floor( ( z() - ( 7 - nyDay ) ) / 7 );
        }
    }
    function w() {
        // Numeric representation of the day of the week
        return self.getDay();
    }
    
    function Y() {
        // A full numeric representation of a year, 4 digits

        // we first check, if getFullYear is supported. if it
        // is, we just use that. ppks code is nice, but wont
        // work with dates outside 1900-2038, or something like that
        if (self.getFullYear) {
            var newDate = new Date("January 1 2001 00:00:00 +0000");
            var x = newDate .getFullYear();
            if (x == 2001) {              
                // i trust the method now
                return self.getFullYear();
            }
        }
        // else, do this:
        // codes thanks to ppk:
        // http://www.xs4all.nl/~ppk/js/introdate.html
        var x = self.getYear();
        var y = x % 100;
        y += (y < 38) ? 2000 : 1900;
        return y;
    }
    function y() {
        // A two-digit representation of a year
        var y = Y()+"";
        return y.substring(y.length-2,y.length);
    }
    function z() {
        // The day of the year, zero indexed! 0 through 366
        var t = new Date("January 1 " + Y() + " 00:00:00");
        var diff = self.getTime() - t.getTime();
        return Math.floor(diff/1000/60/60/24);
    }
        
    var self = this;
    if (time) {
        // save time
        var prevTime = self.getTime();
        self.setTime(time);
    }
    
    var ia = input.split("");
    var ij = 0;
    while (ia[ij]) {
        if (ia[ij] == "\\") {
            // this is our way of allowing users to escape stuff
            ia.splice(ij,1);
        } else {
            if (arrayValueExists(switches,ia[ij])) {
                ia[ij] = eval(ia[ij] + "()");
            }
        }
        ij++;
    }
    // reset time, back to what it was
    if (prevTime) {
        self.setTime(prevTime);
    }
    return ia.join("");
}


// this function gets the cookie, if it exists
function getCookie(name, defaultVal) {
	var returnVal;
	var start = document.cookie.indexOf(name + "=");
	var len = start + name.length + 1;
	if ((!start ) && (name != document.cookie.substring(0, name.length))) {
		returnVal = null;
	}
	else if (start == -1) returnVal = null;
	else {
        var end = document.cookie.indexOf( ";", len );
    	if (end == -1) end = document.cookie.length;
    	returnVal = unescape( document.cookie.substring( len, end ) );
    }
    return returnVal === null ? defaultVal : returnVal;
}

function setCookie( name, value, expires, path, domain, secure ) {
	// set time, it's in milliseconds
	var today = new Date();
	today.setTime( today.getTime() );
	// if the expires variable is set, make the correct expires time, the
	// current script below will set it for x number of days, to make it
	// for hours, delete * 24, for minutes, delete * 60 * 24
	if ( expires )
	{
		expires = expires * 1000 * 60 * 60 * 24;
	}
	//alert( 'today ' + today.toGMTString() );// this is for testing purpose only
	var expires_date = new Date( today.getTime() + (expires) );
	//alert('expires ' + expires_date.toGMTString());// this is for testing purposes only

	document.cookie = name + "=" +escape( value ) +
		( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) + //expires.toGMTString()
		( ( path ) ? ";path=" + path : "" ) + 
		( ( domain ) ? ";domain=" + domain : "" ) +
		( ( secure ) ? ";secure" : "" );
}

// this deletes the cookie when called
function deleteCookie( name, path, domain ) {
	if ( Get_Cookie( name ) ) document.cookie = name + "=" +
			( ( path ) ? ";path=" + path : "") +
			( ( domain ) ? ";domain=" + domain : "" ) +
			";expires=Thu, 01-Jan-1970 00:00:01 GMT";
}

function dbrUpdateOrderInfo() {
    var elm = document.getElementById('orderInfo');
    var total = getCookie( 'dbrcurrencyCartTotal', '0.00');
    var count = getCookie( 'dbrcurrencyNumItems', '0');
    elm.innerHTML = count + " Items - $ " + total;
}

function submitDBRSearchForm(formObject) {
    var urlParams='';
    // loop through form elements and add each of the elements to the urlParams string
    for (var i=0; i<formObject.elements.length; i++) {
        // if the element has a name then add it to the urlParams
        if (formObject.elements[i].name) { 
            if (urlParams.length) urlParams += "&";
            urlParams += formObject.elements[i].name + "=" + encodeURIComponent(formObject.elements[i].value);
        }
    }
    // change our location and tack on the urlParams
    document.location = formObject.action + ((formObject.action.indexOf('?') != -1) ? "&" : "?") + urlParams;
    return false;
}