function roll(name,src){document.getElementById(name).src='/images/'+src;}
menuHover=function(){var cats=document.getElementById("category-block");cats.onmouseover=function(){this.className+=" open";}
cats.onmouseout=function(){this.className=this.className.replace(new RegExp(" open\\b"),"");}}
sfHover=function(){var nav=document.getElementById("category-navigation").getElementsByTagName("LI");var topnav=document.getElementById("primary-navigation").getElementsByTagName("LI");for(var i=0;i<nav.length;i++){nav[i].onmouseover=function(){this.className+=" sfhover";}
nav[i].onmouseout=function(){this.className=this.className.replace(new RegExp(" sfhover\\b"),"");}}
for(var i=0;i<topnav.length;i++){topnav[i].onmouseover=function(){this.className+=" sfhover";}
topnav[i].onmouseout=function(){this.className=this.className.replace(new RegExp(" sfhover\\b"),"");}}}
function menuClean(){var nav=document.getElementById("category-navigation").getElementsByTagName("LI");for(var i=0;i<nav.length;i++){var height=nav[i].clientHeight;if(height>36){nav[i].className+=" twoline";}}}
function init(){menuHover();menuClean();}
if(window.attachEvent)window.attachEvent("onload",sfHover);window.onload=init;$(function(){init();});function equalHeight(group){var tallest=0;if(group!=null){group.each(function(){var thisHeight=$(this).height();if(thisHeight>tallest){tallest=thisHeight;}});group.height(tallest);}}
$(function(){if('ul.category-list'){equalHeight($("ul.category-list li"));}});function printWindow(){bV=parseInt(navigator.appVersion)
if(bV>=4)window.print()}
function clickclear(thisfield,defaulttext){if(thisfield.value==defaulttext){thisfield.value="";}}
function clickrecall(thisfield,defaulttext){if(thisfield.value==""){thisfield.value=defaulttext;}}
