// image input rollover effects
jQuery(function($) {
	$('.rollbtn').mouseover(function(){		
		this.src = this.src.replace(/(.*)(\.gif)/gi, '$1-over$2');
	})
	$('.rollbtn').mouseout(function(){
		this.src = this.src.replace(/(.*)(-over)(\.gif)/gi, '$1$3');
	})
});

//course tabs
jQuery(function($) {
	var tabButtons = $("ul#tab-buttons li");
    if (tabButtons.length > 0) {
		tabButtons.each(function(i){
			var tabid = $("a", this).attr("href");
			if ($(tabid).length == 0){
				$(this).remove();
			}
		});
		//create tabs
		tabButtons.parent().tabs(".course-tab", { history: true });
	}
});

// style switcher
