//IE Menu
var isIE8 = IsIE8Browser();
try{
	if(!isIE8){
		if(document.body.currentStyle){
			var subs = document.getElementsByName('submenu');
			for(var i=0; i<subs.length; i++) {
				var li = subs[i].parentNode;
				if(li && li.lastChild.style) {
					li.onmouseover = function() {
						this.lastChild.style.visibility = 'visible';
					}
					li.onmouseout = function() {
						this.lastChild.style.visibility = 'hidden';
					}
				}
			}
		}
	}
}catch(err){
	//alert(err.message);
	//Not IE Or IE 8
}

function IsIE8Browser(){
	var rv=false;
	if(navigator.appName=='Microsoft Internet Explorer'){
		var ua=navigator.userAgent;
		var re=new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
		if(re.exec(ua)!=null){
  		rv=parseFloat(RegExp.$1);}
	}
	if(rv>=8){
		return true;
	}else{
		return false;
	}
}

//Horizontal Scroller
var ScrollerSpeed=2,CurrentSpeed=ScrollerSpeed,ContentWidth,ScrollContent,ScrollerWidth
function ScrollInit(){
	try{
		ScrollContent=document.getElementById("ScrollContent");
		ScrollerWidth=document.getElementById("ScrollerOver").offsetWidth;
		ScrollContent.style.left=parseInt(ScrollerWidth)+6+"px";
		document.getElementById("ScrollerBody").style.display="block";
		ContentWidth=document.getElementById("ScrollContent").offsetWidth;
	}catch(err){
		//alert(err.message);
		//Scroller load error
	}
}
function ScrollIt(){
	if (parseInt(ScrollContent.style.left)>(ContentWidth*(-1)+1)){
		ScrollContent.style.left=parseInt(ScrollContent.style.left)-CurrentSpeed+"px";
	}else{
		ScrollContent.style.left=parseInt(ScrollerWidth)+1+"px";
	}
}
window.onload=function(){ScrollInit();setInterval(function(){ScrollIt();},30);}