function initSlideUp(obj,num) {
	var claname="";
	 if(obj == "ajopcon"){	 
		 claname = 'op_ajax_tit';
		 ohhh = 23;
		 liact = "[class=xuyaoli]";
		
	 } else{		 
		claname = 'ajbarbg';
		ohhh = 27;
		liact = "li";
	 }
	 actstr = "mouseover";	
	var inum;
	var _conli = $(obj);
	if (_conli && !_conli._inited){
		var normal = num, small  = 23;
		
		var items = _conli.getElements(liact);
		
		
		var fx = new Fx.Elements(items, {wait: false, duration: 500, transition: Fx.Transitions.Quad.easeInOut});
			items.each(function(item, i){ 
				item.getElements('[class='+claname+']').addEvent(actstr, function(event){		
					if( i != inum){
							var o = {};			
					o[i] = {height: [item.getStyle("height").toInt(), event.target.getParent().getLast().offsetHeight+ohhh]};			
						 $('footer').setStyles({position:'static'});
						 $('footer').setStyles({position:'relative'});
						 item.getFirst().getFirst().innerHTML = "- ";
					inum = i;
					items.each(function(other, j) {
						if(i != j) {
							var h = other.getStyle("height").toInt();
							if(h != small) o[j] = {height: [h, small]};
							
							other.getFirst().getFirst().innerHTML = "+";
							
						}	
					});				
					fx.start(o);
					}
				});	
			});
		_conli._inited = true;
	}
}

function setRmLiHeight(_name){
	
	if(_name=="sports"){
	  $("rmli2").setStyles({height:'360px'});
	} else if(_name=="tennis"){
	  $("rmli4").setStyles({height:'540px'});
	  $("r4").setStyles({backgroundImage:'url(images/rmtabbg44.gif)'});
	}else if(_name=="FC"){
	  $("rmli1").setStyles({height:'80px'});
	}
	
	
}
function initSlideLeftAndRight(obj,objbox,itemId,prev_btn,next_btn)
{    
 
  
	var currentItem =0;
	var countItem=$$(obj).length;
	var scroll = new Fx.Scroll(objbox, {wait: false,duration: 500,offset: {'x': 0, 'y': 0},transition: Fx.Transitions.Quad.easeInOut});
	$(prev_btn).addEvent('click', function(event)
    { 
	     
		event = new Event(event).stop();
		if(currentItem>0)
			currentItem--;
		else
			currentItem=countItem-1;
		scroll.toElement(itemId+currentItem);
		
		  
		
	
	});
	
	$(next_btn).addEvent('click', function(event)
    {
		   
		event = new Event(event).stop();	
		if(currentItem<countItem-1)
			currentItem++;
		else
			currentItem=0;
		scroll.toElement(itemId+currentItem);
	   
		 
		
	
		
		/*if('wallBox'==objbox)
			$(prev_btn).setStyle('visibility','visible');*/
	});
	
	if('wallBox'==objbox&&countItem<=1)
	{
		$(prev_btn).setStyle('visibility','hidden');
		$(next_btn).setStyle('visibility','hidden');
	}
}





//submit form 

    function ExClick(obj,val)
    {
        if(obj.value==val)
            {
                obj.value='';            
            }
    }
    
    function ExBlur(obj,val)
    {
        if(obj.value=='')
        {
            obj.value=val;
        }
    }