// JavaScript Document 
      function inputflv(){ 
	   //window.document.FlashID2.SetVariable("st", 1);
	    $("#tab *").each(function(i){
			        var ids= $(this).attr("id"); 
					//alert(ids)
                   // alert(i);
					 var obj = swfobject.getObjectById(ids);
				if (obj && typeof obj.JStoASviaExternalInterface != "undefined") {
					obj.JStoASviaExternalInterface("dddddf");
					//obj.SetVariable("st", 1);
				}
				
                 });
}

$(function(){
		$('.SlideTab').tabSwitch('create',{width: 590});
		setInterval(autoTab, 7000);
		$('.tabSelect').click(function(e){
									   
			$('.SlideTab').tabSwitch('moveTo',{index: parseInt($(this).attr("rel"))});
			$(".tabSelect").html("<img src='/images/point2.jpg' border='0'>");
			$(this).html("<img src='/images/point.jpg' border='0'>");
			e.preventDefault();
		});
		
	alp();
	showImageTxt("mouse");
	});
function alp()
	{
		
		$('.tag').mouseover( function() {
			 $(this).removeClass("alpno");
  $(this).addClass("alp");
});
$('.tag').mouseout( function() {
	 $(this).removeClass("alp");
  $(this).addClass("alpno");
});

		}
function showImageTxt(flag)
{
//alert(flag);
//show hide mouse
if(flag=="mouse")
{
$(".himgtxt").css("display","none");
$('.SlideTab').mouseenter( function(event) {
	//alert('aaa');
	 $(this).find("div").fadeIn("slow");
	  $(this).find(".himgbg").fadeTo("fast",0.75);
	  // $(this).find(".himgbg").html("ddddd");

});
$('.SlideTab').mouseleave( function(event) {

$(this).find("div").fadeOut("slow");

});
  
}
if(flag=="hide")
{
 $(".himgtxt").css("display","none");
}
if(flag=="show")
{
 $(".himgtxt").css("display","block");
}
}
function autoTab()
{
   
   var curIndex=$('.SlideTab').tabSwitch('index');
   var num=$(".tabSelect").length;
   $(".tabSelect").each(function(){
        var rel=parseInt($(this).attr("rel"))-1;
		if(curIndex==num-1)
		{
		  // curIndex=-1;
		}
		if(curIndex==rel)
		{
		  $(this).click();
		}
		
   });
}
	
