	function initMenu(){
		if(document.getElementById){
			var menuCon=document.getElementById("menuContainer");
			if(menuCon){
				var i;
				var menu;
				for(i=0;i<menuCon.childNodes.length;i++){
					menu=menuCon.childNodes[i];
					menu.childNodes[0].onclick=clickMenu;
				}
			}
		}
	}
	function initTab(){
       if(document.getElementById){
          var topTabCon=document.getElementById("top_tab_con");
		  var i,tab;
		  for(i=0;i<topTabCon.childNodes.length;i++){
             tab=topTabCon.childNodes[i];
             tab.className="tab-inactive";
			 tab.onmouseover=function (){
                 this.className=this.className.replace("tab-inactive","tab-active");
			 }
			 tab.onmouseout=function (){
                 this.className=this.className.replace("tab-active","tab-inactive");
			 }
		  }
	   }
	}
	function clickMenu(){
		if(document.getElementById){
			var menuCon=document.getElementById("menuContainer");
			if(menuCon){
				var i;
				var menu;
				for(i=0;i<menuCon.childNodes.length;i++){
					menu=menuCon.childNodes[i];
					if(menu.childNodes[0]!=this){
						menu.className="ls-menu-hide";
					}
				}
			}
		}
		if(this.parentNode.className.indexOf("ls-menu-hide")!=-1){
			this.parentNode.className="ls-menu";
		}else{
			this.parentNode.className="ls-menu-hide";
		}
	}
	function changeObjState(objName,isDis,a_cls,i_cls){
	   var obj=document.getElementById(objName);
	   if(obj){
	       obj.className=obj.className.replace(i_cls,"");
	       obj.className=obj.className.replace(a_cls,"");
	       if(isDis){
		      obj.className+=a_cls;
		   }else{
		      obj.className+=i_cls;
		   }
	   }
	}
	function marquee_h(){
    var i,marqCon,marq;
	marqCon=document.getElementById("marq_h_con");
	marq=document.getElementById("marq_h");
	if(marqCon){
		if(marq.offsetWidth-marqCon.scrollLeft<=0){ 
			marqCon.scrollLeft-=marq.offsetWidth 
		}else{ 
			marqCon.scrollLeft++ 
		}
	}
  }
  function marquee_v(){
    var i,marqCon,marq;
	marqCon=document.getElementById("marq_v_con");
	marq=document.getElementById("marq_v");
	if(marqCon){
		if(marq.offsetHeight-marqCon.scrollTop<=0){ 
			marqCon.scrollTop-=marq.offsetHeight 
		}else{ 
			marqCon.scrollTop++ 
		}
	}
  }
  function initMarquee(){
	var i,marqHCon,marqH,marqHCopy,marqVCon,marqV,marqVCopy,speed=15;
	marqHCon=document.getElementById("marq_h_con");
	marqH=document.getElementById("marq_h");
	marqHCopy=document.getElementById("marq_h_copy");
	marqVCon=document.getElementById("marq_v_con");
	marqV=document.getElementById("marq_v");
	marqVCopy=document.getElementById("marq_v_copy");
	if(marqHCon){
		//marqHCopy.innerHTML=marqH.innerHTML;
		var myMarqueeH=setInterval(marquee_h,speed);
		marqHCon.onmouseover=function() {clearInterval(myMarqueeH)} 
		marqHCon.onmouseout=function() {myMarqueeH=setInterval(marquee_h,speed)} 
	}
	if(marqVCon){
		//marqVCopy.innerHTML=marqV.innerHTML;
		var myMarqueeV=setInterval(marquee_v,speed);
		marqVCon.onmouseover=function() {clearInterval(myMarqueeV)} 
		marqVCon.onmouseout=function() {myMarqueeV=setInterval(marquee_v,speed)} 
	}
  }
  function initForm(){
		initMarquee();
		initMenu();
		initTab();
	}
  window.onload=initForm;