window.onload = function(e) {

    try
    {
        document.execCommand("BackgroundImageCache", false, true);
    }
    catch(err){}

};

function slideSwitch() 
{

}



$(function() 
{
        
        // find the elements to be eased and hook the hover event
      $('div.jimgMenu ul li a').hover(
      function() 
      {
            // if the element is currently being animated (to a easeOut)...
            if ($(this).is(':animated')) 
            {   
                //$(this).stop().animate({ opacity: 0.2 }, 30);
//                $(this).animate({ opacity: 1.0 }, 450);
                $(this).stop('animated:').animate({ opacity: 0.3}, {duration: 35});
                $(this).animate({ opacity: 1.0}, {duration: 465});
            } 
            else 
            {   
                //$(div.jimgMenu ul li a').stop().animate({width: "50px"}, {duration: 300, easing:"easeInOutQuad"})
//                
//                $(this).stop().animate({ opacity: 0.2 }, 30);
//                $(this).animate({ opacity: 1.0 }, 450);
                 //ease in quickly
                $(this).stop('animated:').animate({ opacity: 0.3}, {duration: 35});
                $(this).animate({ opacity: 1.0}, {duration: 465});
            }
      }, 
      function () 
      {
         //on hovering out, ease the element out
        if ($(this).is(':animated')) 
        {
            $(this).stop().animate({ opacity: 1.0}, {duration: 500})
        } 
        else 
        {
            // ease out slowly
            $(this).stop('animated:').animate({ opacity: 1.0}, {duration: 500});
        }
      });
        
});

$(document).ready(function() {
    setInterval( "slideSwitch()", 8000 );
    
    $('.lightbox').lightBox('',$('#baseUrl').text());
    
});
