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(navigator.plugins&&navigator.plugins.length){var x=navigator.plugins["Shockwave Flash"];if(x){if(x.description){var y=x.description;var aDescription = y.split(" ");var aMajorVersion = aDescription[2].split(".");flashversion = aMajorVersion[0];}}}else{result=false;for(var i=15;i>=3&&result!=true;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 drsystemsDoEmail(emailUrl, sectionId){
	var dest = emailUrl + getUrlSeparator(emailUrl) + "p=" + escape(document.location.href) + "&s=" + sectionId;
	window.open(dest, "emailWindow", "width=480,height=450,resizable=no,scrollbars=no,location=no,menubar=no,status=no,status=no");
	return false;
}
function drsystemsDoPrint(){
	if (window.print) window.print();
	else alert("Select \"Print...\" from your file menu");
	return false;
}


/**
 * PINT_GetBaseDirectory()
 * Get name of current directory from path name
 */			
function PINT_GetBaseDirectory()
	{
	var filePath = PINT_GetCurrentFilePath();
	filePath = filePath.substring( rootDirectory.length );
	var directories = filePath.split("/");
	return directories.length && directories[ 1 ] != "" ? directories[ 1 ] : "";
	}
	
function getUrlSeparator(url){
	var separator = "?";
	if(url.indexOf('?') != -1) separator = "&";
	return separator;
}	
function drsystemsDoSearch(form){
	var dest = form.action + getUrlSeparator(form.action) + "q=" + escape(document.getElementById("searchbox").value);
	document.location = dest;
	return false;
}


// BEGIN: PINT TEXT SIZE CHANGER FUNCTIONS ==========================================================================
var PINT_CSSStructure = new Object();

var PINT_TOOLS = new Object();
PINT_TOOLS.FONT = new Object();
PINT_TOOLS.FONT.GLOBAL_DIV = "contentdiv";
PINT_TOOLS.FONT.CURRENT = false;
PINT_TOOLS.FONT.PRESERVE = true;
PINT_TOOLS.FONT.DISPLAY_ADVANCE = false;
PINT_TOOLS.FONT.DISPLAY_BASIC = false;

// GLOBAL DIV Functions
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;}

// GLOBAL FONT Preserve functions
function PINT_GetGlobalFontPreserveSession() {	return PINT_TOOLS.FONT.PRESERVE; }
function PINT_SetGlobalFontPreserveSession(setting) { PINT_TOOLS.FONT.PRESERVE = setting; }

// GLOBAL FONT Current Functions
function PINT_GetGlobalFontCurrentSession() { return PINT_TOOLS.FONT.CURRENT; }
function PINT_SetGlobalFontCurrentSession(setting) { PINT_TOOLS.FONT.CURRENT = setting; }

// GLOBAL FONT Display Advance
function PINT_SetGlobalFontDisplayAdvance(setting) { PINT_TOOLS.FONT.DISPLAY_ADVANCE = setting; }	
function PINT_GetGlobalFontDisplayAdvance() { return PINT_TOOLS.FONT.DISPLAY_ADVANCE; }

// GLOBAL FONT Display Basic
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;
	// Loop through each of the style Sheets
	for (styleSheetIndex = 0; styleSheetIndex < document.styleSheets.length; styleSheetIndex++)
		{
		// Loop Through Each of the Rules
		for (cssRulesIndex = 0; cssRulesIndex < document.styleSheets[styleSheetIndex][cssRules].length; cssRulesIndex++) 
			{
			className = document.styleSheets[styleSheetIndex][cssRules][cssRulesIndex].selectorText.toLowerCase();				
		
			/// Because the Browsers render the name differently
			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;		
	
	// Get Font Size information
	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;
		}	

	// Check Font Family		
	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 = 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("gridContainer");
	if (contentElement) {
        if (this.id == 'small_fonta') {
             if(gridContainer) gridContainer.style.height = '';
             PINT_CSSStructure.style.fontSize = "10px";	
        }
        else if (this.id == 'medium_fonta') {
            PINT_CSSStructure.style.fontSize = "12px";
            if(gridContainer && gridContainer.offsetHeight >= 100) gridContainer.style.height = "100px";
        }
        else if (this.id == 'large_fonta') {
            PINT_CSSStructure.style.fontSize = "14px";
            if(gridContainer && gridContainer.offsetHeight >= 100) gridContainer.style.height = "100px";
        }
	}
    else PINT_AbortSetFontToolsDisplay();
    
    if (PINT_GetGlobalFontPreserveSession() || PINT_GetGlobalFontCurrentSession()) document.cookie = "fontSize=" + escape(PINT_CSSStructure.style.fontSize) + ";" + PINT_CreateCookieDate();
	else PINT_DeleteCookie("fontFamily", "fontSize");
   
	return false;
	}
// END: PINT FONT CHANGER FUNCTIONS ============================================================================


    var PINT = {
        activeElement: null,
        level2Prefix: "level2_",
        level2Timeout: 10,
        show: function (element){
            if (this.activeElement){
                document.getElementById(this.level2Prefix + this.activeElement).style.display = "none";
                document.getElementById(this.level2Prefix + this.activeElement).style.display = "none";
                }
            PINT.activeElement = element;
            this.activeElement = element;
            PINT.level2Timeout = 10;
            document.getElementById(this.level2Prefix + this.activeElement).onmouseover = function(){PINT.level2Timeout = 10;};
            var nestedListsToHide = document.getElementById(this.level2Prefix + element).childNodes;
            for (var i=0; i<nestedListsToHide.length; i++) {
               //  alert(nestedListsToHide[i].nodeValue);
            }
            document.getElementById(this.level2Prefix + element).style.display = "block";

        }
    }
    
    setInterval(function(){if (!PINT.activeElement) return; if (PINT.level2Timeout > 0){PINT.level2Timeout --;}else{document.getElementById(PINT.level2Prefix + PINT.activeElement).style.display = "none"; PINT.activeElement = null;}}, 1000);    
  
    function PINT_CSSMenus() {
        if (PINT_CSSMenus.arguments.length != 1) return false;
        
        if (document.getElementById) {
		    if (document.getElementById(PINT_CSSMenus.arguments[0])) {
				navRoot = document.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 = "off"; }
					}
				}
			}
        
} 
}
    


function showDetailedBrandInfo(infoId) {
	var contentArea = infoId.href.split("#");
	var contentAreaId = contentArea[1];

	if (document.getElementById('producttitle')) document.getElementById('producttitle').innerHTML = "&nbsp;";
	if (document.getElementById('onMouseOverHide')) document.getElementById('onMouseOverHide').style.display = 'none';
	if (document.getElementById('onMouseOverContent') && document.getElementById(contentAreaId)) document.getElementById('onMouseOverContent').innerHTML = document.getElementById(contentAreaId).innerHTML;
}