//- Required for Son of Suckerfish DropDown menus to work in IE
 
$(document).ready(function() { 
try {
    $('ul.sf-menu').superfish({ 
            delay:       1000,                            // one second delay on mouseout 
            animation:   {opacity:'show',height:'show'},  // fade-in and slide-down animation 
            speed:       'fast',                          // faster animation speed 
            autoArrows:  false,                           // disable generation of arrow mark-up 
            dropShadows: false                            // disable drop shadows 
        }); 
    }
    catch(ex) { }
}); 
 

// Open all external links in a new window
$(document).ready(function() {
  $("a[href*='http://']:not([href*='"+location.hostname+"'])").attr("target","_blank");
});
//////////////////////////////////////////

function popUp(popupURL)
{
width = 700; height = 550; leftPosition = (screen.width) ? (screen.width-width)/2 : 0;
if (screen.height && (screen.height <= 600)) { topPosition = 0; } else { topPosition = (screen.height) ? (screen.height-height)/2 : 0; }
var settings='width='+width+',height='+height+',left='+leftPosition+',top='+topPosition+'toolbar=0,location=0,directories=0,menubar=0,scrollbar=0,resizable=0,status=0';
var popup=window.open(popupURL, 'gamepopup', settings);
if (popup != null) popup.focus();
}

/* $(document).ready(function(){
  $.preloadCssImages();
}); 
*/

$(document).ready(function(){
    //disjointed rollover function starting point
    $("div#info-panel ul li").mouseover(function(){
	    //make a variable and assign the hovered id to it
	    var hclass = $(this).attr('class');
	    //hide the image currently there
	    $("div#info-panel ul").addClass(hclass);;
    });
    
    $("div#info-panel ul li").mouseout(function(){
	    //make a variable and assign the hovered id to it
	    var hclass = $(this).attr('class');
	    //hide the image currently there
	    $("div#info-panel ul").removeClass(hclass);;
    });
});

$(document).ready(function(){
    //disjointed rollover function starting point
    $("div#feature-nav a").mouseover(function(){
	    //make a variable and assign the hovered id to it
	    var hclass = $(this).attr('class');
	    //hide the image currently there
	    $("div#feature-highlight").addClass(hclass);;
    });
    
    $("div#feature-nav a").mouseout(function(){
	    //make a variable and assign the hovered id to it
	    var hclass = $(this).attr('class');
	    //hide the image currently there
	    $("div#feature-highlight").removeClass(hclass);;
    });
});