switchFontSize=function(ckname,val){
	//var bd = $E('BODY');

	var bd = jQuery('BODY');
	switch (val) {
		case 'inc':
			if (CurrentFontSize+1 < 6) {
				bd.removeClass('fs'+CurrentFontSize);
				CurrentFontSize++;
				bd.addClass('fs'+CurrentFontSize);
			}
		break;
		case 'dec':
			if (CurrentFontSize-1 > 0) {
				bd.removeClass('fs'+CurrentFontSize);
				CurrentFontSize--;
				bd.addClass('fs'+CurrentFontSize);
			}
		break;
		default:
			bd.removeClass('fs'+CurrentFontSize);
			CurrentFontSize = val;
			bd.addClass('fs'+CurrentFontSize);
	}
	Cookie.set(ckname, CurrentFontSize,{duration:365});
}

sfHover = function() {
	var sfEls = document.getElementById("catmenu").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; ++i) {
		sfEls[i].onmouseover=function() {
			clearTimeout(this.timer);
			if(this.className.indexOf(" sfHover") == -1)
				this.className+=" sfHover";
		}
		sfEls[i].onmouseout=function() {
			this.timer = setTimeout(sfHoverOut.bind(this), 20);
		}
	}
}
function sfHoverOut() {
	clearTimeout(this.timer);
	this.className=this.className.replace(new RegExp(" sfHover\\b"), "");
}
if (window.attachEvent) window.attachEvent("onload", sfHover);
function csize(){
	var ua = navigator.userAgent.toLowerCase();var pf = navigator.platform.toLowerCase();var an = navigator.appName;
	if (ua.indexOf("gecko") > -1 && navigator.productSub >= 20020605) {
		// gecko >= moz 1.0
		var inheight=document.body.scrollHeight;
	}
	else if (an == "Microsoft Internet Explorer") {
	     var inheight=document.body.scrollHeight;
	    // document.getElementById("o").style.height=inheight+'px';
	}
	document.getElementById("o").style.height = inheight + 25 + 'px';
}