    (function($) {
    $.fn.lavaLamp = function(o) {
    o = $.extend({
    fx: "linear",
    speed: 500,
    click: function() {}
    },
    o || {});
    return this.each(function() {
    var b = $(this),
	
    noop = function() {},
    $back = $('<li class="back" id="ser"></li>').appendTo(b),
    $li = $("li", this),
    curr = $("li.current", this)[0] || $($li[0]).addClass("current")[0];
    $li.not(".back").hover(function() {
    
	move(this)
    
	},
    noop);
    $(this).hover(noop,
    function() {
    move(curr)
    });
    $li.click(function(e) {
    setCurr(this);
    return o.click.apply(this, [e, this])
    });
    setCurr(curr);
    
	function setCurr(a) {
    $back.css({
    "left": a.offsetLeft + "px",
    "width": a.offsetWidth + "px"
    });
    curr = a
    };
    function move(a) {
    $back.each(function() {
    $(this).dequeue()
    }).animate({
    width: a.offsetWidth,
    left: a.offsetLeft
    },
    o.speed, o.fx)
    }
    })
    }
    })(jQuery);
	
	
	
	
	
	function newsettest()
	{
	
	(function($) {
    $.fn.lavaLamp = function(o) {
    o = $.extend({
    fx: "linear",
    speed: 500,
    click: function() {}
    },
    o || {});
    return this.each(function() {
    var b = $(this),
    noop = function() {},
    $back = $('<li class="back" id="ser"></li>').appendTo(b),
    $li = $("li", this),
    curr = $("li.current", this)[0] || $($li[0]).addClass("current")[0];
    $li.not(".back").hover(function() {
    move(this)
    },
    noop);
    $(this).hover(noop,
    function() {
    move(curr)
    });
    $li.click(function(e) {
    setCurr(this);
    return o.click.apply(this, [e, this])
    });
    setCurr(curr);
    
	function setCurr(a) {
    $back.css({
    "left": a.offsetLeft + "px",
    "width": a.offsetWidth + "px"
    });
    curr = a
    };
    function move(a) {
    $back.each(function() {
    $(this).dequeue()
    }).animate({
    width: a.offsetWidth,
    left: a.offsetLeft
    },
    o.speed, o.fx)
    }
    })
    }
    })(jQuery);
	}
	
	
	
function chme(ty,obj)
{
	if(ty=='1')
	{
	document.getElementById(obj).src='images/arrow_hover.png';
	}
	if(ty=='2')
	{
	document.getElementById(obj).src='images/arrowqq.png';
	}

}

function newopen()
{
document.getElementById('light').style.display='block';
disableDivs('hideop')
}

function newclose()
{

document.getElementById('light').style.display='none';
hideCDivs();
}


cDivs = new Array();
function disableDivs()
{
d = document.getElementsByTagName("BODY")[0];
for(x=0;x<arguments.length;x++)
{
    if (document.getElementById(arguments[x]))
    {
    xPos = document.getElementById(arguments[x]).offsetLeft;
    yPos = document.getElementById(arguments[x]).offsetTop;
    oWidth = document.getElementById(arguments[x]).offsetWidth;    
    oHeight = document.getElementById(arguments[x]).offsetHeight;
    cDivs[cDivs.length] = document.createElement("DIV");
    cDivs[cDivs.length-1].style.width = oWidth+"px";
    cDivs[cDivs.length-1].style.height = oHeight+"px";
    cDivs[cDivs.length-1].style.position = "absolute";
    cDivs[cDivs.length-1].style.left = xPos+"px";
    cDivs[cDivs.length-1].style.top = yPos+"px";
    cDivs[cDivs.length-1].style.backgroundColor = "#000";
    cDivs[cDivs.length-1].style.opacity = .6;
    cDivs[cDivs.length-1].style.filter = "alpha(opacity=50)";
    d.appendChild(cDivs[cDivs.length-1]);
    }
}
}
function hideCDivs()
{
for (hippopotamus=0;hippopotamus<cDivs.length;hippopotamus++)
{
document.getElementsByTagName("BODY")[0].removeChild(cDivs[hippopotamus]);
}
cDivs = [];
}




 function getposOffset(overlay, offsettype){                                                        
 var totaloffset=(offsettype=='left')? overlay.offsetLeft : overlay.offsetTop;                      
 var parentEl=overlay.offsetParent;                                                                 
 while (parentEl!=null){                                                                            
 totaloffset=(offsettype=='left')? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
 parentEl=parentEl.offsetParent;                                                                    
 }                                                                                                  
 return totaloffset;                                                                               
 }                                                                                                  
 function overlay(curobj, subobj){
	 alert(subobj);
 if (document.getElementById){                                                                      
 var subobj=document.getElementById(subobj);                                                        
 subobj.style.right=getposOffset(curobj,'left')+-490+'px'                                             
 subobj.style.top=getposOffset(curobj, 'top')+ -300+'px'                                              
 subobj.style.display='block'                                                  
 return false                                                                                        
 }                                                                                                   
 else                                                                                                
 return true                                                                                         
 }                                                                                                   
 function overlayclose(k){                                                                           
 document.getElementById(k).style.display='none'                                                     
 return false                                                                                        
   } 



function hser()
	{
		document.getElementById('newline').style.display='block';
		document.getElementById('submen').style.display='block';
		document.getElementById('ser').style.visibility='hidden';
		 

			
	}



	function hser1()
	{
		document.getElementById('newline').style.display='none';
		document.getElementById('submen').style.display='none';
		document.getElementById('ser').style.visibility='visible';
		

	}
	
	
	function hser0()
	{
		

$( "#ser" ).animate({
    left: 410
  }, {
    duration: 500
  },{
	 fx: "linear"
  });





	}
