/* Dropdown Menu */
function suckerfish(type, tag, parentId) {
	if (window.attachEvent) {
		window.attachEvent("onload", function() {
			var sfEls = (parentId==null)?document.getElementsByTagName(tag):document.getElementById(parentId).getElementsByTagName(tag);
			type(sfEls);
		});
	}
}

sfHover = function(sfEls) {
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" hover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" hover\\b"), "");
		}
	}
}

sfFocus = function(sfEls) {
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onfocus=function() {
			this.className+=" focus";
		}
		sfEls[i].onblur=function() {
			this.className=this.className.replace(new RegExp(" focus\\b"), "");
		}
	}
}
suckerfish(sfHover, "LI", "menu");
suckerfish(sfFocus, "LI", "menu");

/*Slideshow*/
$(document).ready(function(){
	
$("#slides div").scrollable({ 
 
    size: 1,
    clickable: false,
    items :'#slides ul li',
    loop:true
    
 
}).circular().autoscroll({interval: 5000});

});