﻿$(document).ready(function() {
    $("a.login").fancybox({ 'overlayShow': true });


    $("#nav-one li").hover(
				function() { $("ul", this).slideDown(); },
				function() { $("ul", this).slideUp(); }
			);
    if (document.all) {
        $("#nav-one li").hoverClass("sfHover");


    }
});


$.fn.hoverClass = function(c) {
    return this.each(function() {
        $(this).hover(
					function() { $(this).addClass(c); },
					function() { $(this).removeClass(c); }
				);
    });
};

function IsNumeric(input) { var RE = /^-{0,1}\d*\.{0,1}\d+$/; return (RE.test(input)); }


function querySt() {
    var x;
    hu = window.location.search.substring(1);
    gy = hu.split("?");
    if (gy != null) {
        ft = gy[0].split("=");
        x = ft[1];
    }
    return x != null && x != "" ? x : 2;
}

function checkVersion() {
    
    var msg = "noIE"; //"You're not using Internet Explorer.";
    var ua = $.browser;
    if (ua.msie) {
        if (parseFloat(ua.version.slice(0, 3)) >= 8)
            msg = "+8";
        else
            msg = "-8";
    }   
     
    return msg;
    //alert(msg);
}




