// SMCrunch2 Version 2.0.1, Copyright (C) Smart Media Ltd 2001-2005. All Rights Reserved.
//
// !!! Note: JScript by default
//
var textSize = "Normal";
function getSize()
{
var sRE = "(?:; )?" + "TextSize" + "=([^;]*);?";
var oRE = new RegExp(sRE);
if(oRE.test(document.cookie))
{
textSize = decodeURIComponent(RegExp["$1"]);
}
}
function increaseSize()
{
getSize();
if(textSize == "Large") textSize="Largest";
if(textSize == "Normal" ) textSize="Large";
activeCSS();
setCookie();
}
function dicreaseSize()
{
getSize();
if(textSize == "Large") textSize="Normal";
if(textSize == "Largest") textSize="Large";
activeCSS();
setCookie();
}
function setCookie()
{
var date = new Date();
date.setTime(date.getTime()+24*60*60*1000);
document.cookie = "TextSize="+textSize+"; expires="+date.toGMTString();
}
function activeCSS()
{
var i, oneLink;
for( i = 0; (oneLink = document.getElementsByTagName("link")[i]); i++)
{
if(oneLink.getAttribute("title") && findWord("stylesheet", oneLink.getAttribute("rel")))
{
if (oneLink.getAttribute("title") == textSize) oneLink.disabled = false;
else oneLink.disabled = true;
}
}
}
function findWord(needle, haystack)
{
return haystack.match(needle + "\\b");
}
function checkSearchForm()
{
if( document.searchform.qu.value == null || document.searchform.qu.value.length == 0 )
{
alert("Please enter a search term.");
document.searchform.qu.focus();
return false;
}
else return true;
}
window.onload = function(e)
{
}

