var mySelect=new mSelect('mySelect','Css/mSelect.css');
window.onload=function(){
	var aS=document.getElementsByTagName('select');
	for (var i=0;i<aS.length;i++){
		switch(aS[i].getAttribute('mSty')){
			case 'orangeHeart':
				mySelect.Create(aS[i],'orangeHeart',true);
				break;
			case 'blueCircle':
				mySelect.Create(aS[i],'blueCircle',true);
				break;
		}
	}
}
function AutoScroll(obj){
        $(obj).find("ul:first").animate({
                marginTop:"-25px"
        },500,function(){
                $(this).css({marginTop:"0px"}).find("li:first").appendTo(this);
        });
}
$(function(){
	    $('.boxy').boxy({modal:true});
		setInterval('AutoScroll("#scrollDiv")',2000);
		var $div_li =$(".tab h3 ul li");
	    $div_li.click(function(){
			$(this).addClass("current") 
				   .siblings().removeClass("current");
            var index =  $div_li.index(this);
			$("div.tab_content > div") 
					.eq(index).fadeIn() 
					.siblings().hide();
		}).hover(function(){
			$(this).addClass("hover");
		},function(){
			$(this).removeClass("hover");
		});
		
		$('.tablelist tbody>tr:not(#op)').mouseover(function() {
			$(this)["addClass"]('liston')
		});

		$('.tablelist tbody>tr:not(#op)').mouseout(function() {
			$(this)["removeClass"]('liston')
		});
});
