// borrow3d from the best online mag ever A List Apart http://www.alistapart.com/articles/alternate/

$(document).ready(function(){
    // Drop Down Menu
    $("#side-nav")
        .superfish({
            animation : { opacity:"show"}
    });
});

function setActiveStyleSheet(title) {
   var i, a, main;
   for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
     if(a.getAttribute("rel").indexOf("style") != -1
        && a.getAttribute("title")) {
       a.disabled = true;
       if(a.getAttribute("title") == title) a.disabled = false;
     }
   }
}

// Document Ready
//jQuery(document).ready(function() { 
//        // superfish menus
//		jQuery('#side-nav').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 
//        }); 
//		// open a link in a new window
//		jQuery("a[href$='.pdf'], ._blank").click(function(){
//			var newwindow = window.open(this.href, '_blank');
//			newwindow.focus();
//			return false;
//		});
//});

