var linkGroups = ["footer"];
jQuery.noConflict();
//$(document).ready(function(){
jQuery(document).ready(function() {

    jQuery("#toolTip").hide();

    jQuery("#footer .onlinep").hover(
		function() { jQuery("#toolTip").fadeIn("fast"); },
		function() { jQuery("#toolTip").fadeOut("fast"); }
	);

    jQuery("#menu li").hover(
        function() { jQuery("ul#submenu", this).fadeIn("fast"); },
        function() { }
    );

    if (document.all) {
        jQuery("#menu li").hoverClass("sfHover");
    }

    /* FancyBox */
    if (jQuery('a.imgFancy').length) { // if exist
        jQuery("a.imgFancy").fancybox({
            //'hideOnContentClick': false,
            'zoomOpacity': true,
            'zoomSpeedIn': 600,
            'zoomSpeedOut': 500,
            'overlayShow': true,
            'easingIn': 'easeOutBack',
            'easingOut': 'easeInBack'
        });
    }
    if (jQuery('a.simpleFancy').length) { // if exist
        jQuery("a.simpleFancy").fancybox({});
    }

    jQuery(".imgFade").hover(
		    function() { jQuery(this).fadeTo(1, 1); },
		    function() { jQuery(this).fadeTo("fast", 0.7); }
	    );
    jQuery(".imgFade").fadeTo(1, 0.70);

    // Active Map
    if (jQuery("#map").length) { // if exist
        jQuery("body").attr("onload", function() {
            return "load()";
        });
        jQuery("body").attr("onunload", function() {
            return "GUnload()";
        });
    }
    if (jQuery("#modal").length) { ShowModal(); }
});

jQuery.fn.hoverClass = function(c) {
    return this.each(function(){
        jQuery(this).hover( 
            function() { jQuery(this).addClass(c);  },
            function() { jQuery(this).removeClass(c); }
        );
    });
};

function ShowModal() {
    jQuery("#modal").slideDown(1000);
    jQuery('#modal').css('display', 'block');
}
function hideModalPopup() {
    jQuery("#modal").slideUp(200);
}