var $j = jQuery.noConflict();

$j(function() {
    $j(".hoverme").hover(function() {
        $j(this).attr("src", $j(this).attr("src").replace( 'menu_bg.png', 'menu_hover_bg.png' ));
       
    }, function() {
        $j(this).attr("src", $j(this).attr("src").replace( 'menu_hover_bg.png', 'menu_bg.png' ));
        hideTooltip();
    });
	
	$j("#tb").click(function() { 
	  var td = $j("#teamdiv");
	  if( td.css("display") == "none" )
	   // td.css("top", "0px");
	    td.css("display", "block");
	  else
	    td.css("display", "none");
	});
});

$j(function() {
    $j(".menuhover").hover(function() {
        $j(this).attr("src", $j(this).attr("src").replace( 'bg.gif', 'active_bg.gif' ));

    }, function() {
        $j(this).attr("src", $j(this).attr("src").replace( 'active_bg.gif', 'bg.gif' ));
        hideTooltip();
    });
});function addHover(src) {
    var url=src.split('.');
    alert( url.length );
    url=url.join("/");
    return src;
}

$j(document).ready(function() {
  
  
    $j( "div.slant2" ).each(
        function( intIndex ){
            var width = 18 - ( intIndex * 0.165 );
            $j(this).width(width + "em");
        }
        );
   
    $j( "div.slant1" ).each(
        function( intIndex ){
            var width = 5 + ( intIndex * 0.265 );
            $j(this).width(width + "em");
        }
        );
$j('#testimon').fadeOut('slow').load('/testimonial-ajax/').fadeIn("slow");
var auto_refresh = setInterval(
function ()
{
$j('#testimon').fadeOut('slow').load('/testimonial-ajax/').fadeIn("slow");
}, 5000);
		
});

function showTooltip(bar, text) {
    bar = $j(bar);
    var pos = bar.offset();
    //var width = bar.width();
    var height = bar.height();
    //show the menu directly over the placeholder
    $j("#tooltip").css( { "left": (pos.left - 6 ) + "px", "top": (pos.top + height) + "px" } );
    $j("#tooltip_text").html("<strong>" + text + "</strong>");
    $j("#tooltip").show();

   /* alert(bar.css("top"));
    $j("#tooltip").scrollTop( bar.scrollTop() + 90 + "px" );
    $j("#tooltip").scrollLeft(bar.scrollLeft() + "px" );
    $j("#tooltip").show();*/
}

function hideTooltip() {
    $j("#tooltip").hide();
}
