﻿$(document).ready( function() {

    if (!($.browser.msie && parseInt($.browser.version) == 6) )
    {
        $("#tab-pane .tab").mouseover(function()
        {
		    var a = this;
		    $("#tab-pane .tab").each(function(index, domEle)
		    {
			    if ($(this).attr("class") != $(a).attr("class"))
			    {
				    SlideBack(this);
                } else {
                    $(this).stop(true, false);
				}
			});
				
            $(this).animate(
			    { "width": "153px" }, 750
			);
		});
			
		$("#tab-pane .tab").mouseout(function() {
			SlideBack(this);
		});
	}
		
	$(window).scroll(function() {
		resizeTabPane();
	});
		
	$(window).resize(function() {
		resizeTabPane();
	});
		
	resizeTabPane();
	
	function SlideBack(element)
    {
	    $(element).stop(true, false);	
	    $(element).animate( { "width": "24px" }, 750);
    }
});
	
