$(document).ready(function() {
// ************** Tabs toggle ******************
	//Default Action
	$(".tab_content, .sum").hide(); //Hide all content
	$("ul.tabs li.tabsli:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first, .sum:first").show(); //Show first tab content
	
	//On Click Event
	$("ul.tabs li.tabsli").click(function() {
		$("ul.tabs li.tabsli").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content
///		$(".tab_content, .sum").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active content
		return false;
	});



//	$(".sub-nav li a").click(function() {
//		var realtab1=this.toString().split("#");
//		var activeTab = "#"+realtab1[1];
//		$("ul.tabs li.tabsli").removeClass("active"); //Remove any "active" class
//		///.addClass("active"); //Add "active" class to selected tab
//		$(".tab_content").hide(); //Hide all tab content
/////		var activeTab = $("ul.tabs li").find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
///		var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
//		$(activeTab).fadeIn(); //Fade in the active content
//		return false;
//	});
//	
// *************** Table column highlight **************	

/*
$(".tabbed td").hover(function() {
            $(this).parents('table').find('td:nth-child(' + ($(this).index() + 1) + ')').
                  add($(this).parent()).addClass('highlight');
      },
      function() {
            $(this).parents('table').find('td:nth-child(' + ($(this).index() + 1) + ')').
                  add($(this).parent()).removeClass('highlight');
      });
*/
// Advanced solutions Box

	//$(".advanced-solutions").hover( function () {
//             $(this).addClass("grow").animate();
//         },
//		 function () {
//   			 $(this).removeClass("grow");
//		 }
//		);
//		
		
    $(".box-grow ul").hoverpulse({
        size: 30,  // number of pixels to pulse element (in each direction)
        speed: 300 // speed of the animation 
    });

		

});

/****

jQuery(function($) {
var timer;
function button1_click(event)
{
$(".slide").css("visibility","hidden");
$("#image1").css("visibility","visible");
$("#image1").css("opacity","0");
$("#image1").animate({"opacity":1},300, "linear", null);
$("ul.buttons li").removeClass("active");
$("#image1").animate({"opacity":1},300, "linear", null);
$("#button1").addClass("active");
clearTimeout(timer);
timer = setTimeout(eval("button2_click"),"9000");
$("#image1").animate({"opacity":1},300, "linear", null);
}

function button2_click(event)
{
$(".slide").css("visibility","hidden");
$("#image2").css("visibility","visible");
$("#image2").css("opacity","0");
$("#image2").animate({"opacity":1},300, "linear", null);
$("ul.buttons li").removeClass("active");
$("#image2").animate({"opacity":1},300, "linear", null);
$("#button2").addClass("active");
clearTimeout(timer);
timer = setTimeout(eval("button3_click"),"9000");
$("#image2").animate({"opacity":1},300, "linear", null);
}

function button3_click(event)
{
$(".slide").css("visibility","hidden");
$("#image3").css("visibility","visible");
$("#image3").css("opacity","0");
$("#image3").animate({"opacity":1},300, "linear", null);
$("ul.buttons li").removeClass("active");
$("#image3").animate({"opacity":1},300, "linear", null);
$("#button3").addClass("active");
clearTimeout(timer);
timer = setTimeout(eval("button1_click"),"9000");
$("#image3").animate({"opacity":1},300, "linear", null);
}

function OnLoad(event)
{
clearTimeout(timer);
timer = setTimeout(eval("button2_click"),"9000");
}

$('#button1').bind('click', button1_click);

$('#button2').bind('click', button2_click);

$('#button3').bind('click', button3_click);

OnLoad();

});


****/

