$(document).ready(function() {
   
$("a.signup").fancybox();

	jQuery("ul.sf-menu").supersubs({ 
        minWidth:    12,                                // minimum width of sub-menus in em units 
        maxWidth:    30,                                // maximum width of sub-menus in em units 
        extraWidth:  1                                  // extra width can ensure lines don't sometimes turn over 
                                                        // due to slight rounding differences and font-family 
    }).superfish({ 
        delay:       400,                               // 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: true                              // disable drop shadows 
});


    $('.slideshow').cycle({
    	fx: 'fade',
    	timeout: 4000
   
    	});
    	
    	
    	 $(".img-left").each(function() {
        var src = $(this).attr('src').replace("_thumb", "");
        var a = $('<a/>').attr('href', src).attr('rel','lightbox');
        $(this).wrap(a);
    });
   
   $(".img-right").each(function() {
        var src = $(this).attr('src').replace("_thumb", "");
        var a = $('<a/>').attr('href', src).attr('rel','lightbox');
        $(this).wrap(a);
    });
    
    
    $("a[rel=lightbox]").slimbox();

/*
 $(".img-left").each(function() {
        var src = $(this).attr('src').replace("_thumb", "");
        var a = $('<a/>').attr('href', src).attr('rel','overlay');
        $(this).wrap(a);
    });
   
   $(".img-right").each(function() {
        var src = $(this).attr('src').replace("_thumb", "");
        var a = $('<a/>').attr('href', src).attr('rel','overlay');
        $(this).wrap(a);
    });


 $("a[rel=overlay]").fancybox();
 */

});



// (c) 2009 SilvesterWebDesigns.com - Stuart Silvester. Thanks to the SevenUp Project.
$(document).ready(function(){function isCookieSet(){if(document.cookie.length>0){var i=document.cookie.indexOf("updateie6=");return(i!=-1);}
return false;}
var needUpgrade=/(MSIE 7|MSIE 6|MSIE 5.(\d+))/i.test(navigator.userAgent);if(needUpgrade&&!isCookieSet()){$("body").prepend('<div class="updateie6" style="display:none;" ><h3 style="margin: 0px;">Your web browser is outdated and  unsupported</h3>You can easily upgrade to the latest version by clicking <a href="http://www.microsoft.com/windows/internet-explorer/default.aspx" target="_blank">here</a>. <div id="whyupcontent" style="display:none;"> <h3>Why should I upgrade?</h3> <ul><li><strong>Websites load faster</strong>, often double the speed of this older version</li> <li><strong>Websites look better</strong> with more web standards compliance</li> <li><strong>Tabs</strong> let you view multiple sites in one window</li> <li><strong>Safer browsing</strong> with phishing protection</li> <li><strong>Convenient Printing</strong> with fit-to-page capability</li> </ul></div><span id="hideme" style="display: none;"><a href="#" id="whyupgrade">Why should I upgrade?</a> - <a href="#" id="goaway">Go Away!</a></span></div>');$('div.updateie6').slideDown('slow');$("span#hideme").fadeIn("slow");$("a#whyupgrade").click(function(){$("div#whyupcontent").slideDown("slow");});$("a#goaway").click(function(){$("div.updateie6").slideUp("fast",function(){$(this).remove()});var exp=new Date();exp.setTime(exp.getTime()+(7*24*3600000));document.cookie="updateie6=hide; expires="+exp.toUTCString();});};});

