// JavaScript Document
$(document).ready(function() { 
$("#nav").superfish({ 
delay:       500,                             // .5 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 
}); 
});
$(function(){
	$("#nav ul.third").each(function(){
		var hasthird = $(this).find("li").size();
		if(hasthird==0)
		{
			$(this).addClass("thirdNone");
		}						   
	})	
})
function loadImage(url, callback) {
    var img = new Image(); 
     img.src = url;
   
    if (img.complete) { 
         callback.call(img);
        return; 
     }

     img.onload = function () { 
         callback.call(img);
     };
	 
};
document.execCommand("BackgroundImageCache", false, true);
