/* --------------------------------------------------------------- */
/*  Suckerfish
/* --------------------------------------------------------------- */

if($.browser.msie) $(document).ready(function(){
	$("#nav li").hover(
		function(){ $(this).addClass("sfhover"); },
		function(){	$(this).removeClass("sfhover"); }
	);
});

/* --------------------------------------------------------------- */
/*  Quick Search Default Button
/* --------------------------------------------------------------- */

/*$(document).ready(function() {
    $("#searchInput :text").keydown(
        function(e){
            var key = e.charCode || e.keyCode || 0;
            if(key == 13)
            {
                    e.returnValue = false;
                    e.cancel = true;
                    $(this).next(":image").focus().click();
                    return false;
            }
        }
    );
});*/

/* --------------------------------------------------------------- */
/*  News summary
/* --------------------------------------------------------------- */

function initNewsSummary()
{
    $(".s_newssummary .categories a").click(function(){
        var current = $(this);
        var ul = $(this).parent().parent();
        $("a", ul).each(function(){
            if($(this).attr("href") == current.attr("href"))
            {
                $(this).addClass("selected");
                $($(this).attr("href")).show();
            }
            else
            {
                $(this).removeClass("selected");
                $($(this).attr("href")).hide();
            }
        })
        return false;
    })
    $(".s_newssummary .categories a:first").triggerHandler("click");
}

$(document).ready(initNewsSummary);
if($.browser.msie) window.attachEvent("onload", initNewsSummary);

/* --------------------------------------------------------------- */
/*  Product Gallery
/* --------------------------------------------------------------- */

function initProductGallery()
{
    $(".productgallery ul").addClass("clearfix");
    $(".productgallery").removeClass("productgallery").addClass("productgallery-replaced");
}

$(document).ready(initProductGallery);
if($.browser.msie) window.attachEvent("onload", initProductGallery);




function showFpass() {
window.open('https://secure2.360training.com/vu3/index.cfm?event=forgotPassword&cId=917','ForgotPassword',config='width=400,height=400,location=no,status=no,directories=no,toolbar=no,scrollbars=yes,menubar=no,resize=no,top=30,left=30');
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

