$(document).ready(function(){ //colorsvar lightcolor = "#999";var darkcolor  = "#333";//accordion	if($(".accordion").length > 0){$(".accordion").accordion({ autoHeight: false, animated: 'slide' });} //make sure one exists or it breaks everything	$('.accordion').bind('accordionchange', function(event, ui) {  ui.newHeader.children("a").addClass("current"); // jQuery object, activated header	ui.oldHeader.children("a").css({color: darkcolor}).animate({color: lightcolor}, 800);  ui.oldHeader.children("a").removeClass("current"); // jQuery object, previous header	});	

//pretty rollover effects thanks md ;)	$("a.fadehover").hoverIntent(		function () {			if (!$(this).hasClass('current')) {				if ($(this).is(':animated')) {					$(this).stop().animate({color: lightcolor}, 1);				} else {					$(this).css({color: '#000'}).animate({color: darkcolor}, 1);				}			}		},		function () {			if (!$(this).hasClass('current')) {				if ($(this).is(':animated')) {					$(this).stop().animate({color: lightcolor}, 800);				} else {					$(this).css({color: darkcolor}).animate({color: lightcolor}, 800);				}			}		});	
//had to hack it for wp... git er done$(".page_item").find("a").hoverIntent(		function () { 			if (!$(this).parent().hasClass('current_page_item')) {				if ($(this).is(':animated')) {					$(this).stop().animate({color: lightcolor}, 1);				} else {					$(this).css({color: '#000'}).animate({color: darkcolor}, 1);				}			}		},		function () {			if (!$(this).parent().hasClass('current_page_item')) {				if ($(this).is(':animated')) {					$(this).stop().animate({color: lightcolor}, 800);				} else {					$(this).css({color: darkcolor}).animate({color: lightcolor}, 800);				}			}		});
//wow need to write a plugin... this if or the welcome box on front page
	$("a.welcomefade").hoverIntent(		function () {			    				if ($(this).is(':animated')) {					$(this).stop().animate({backgroundColor: '#FFF'}, 1);				} else {					$(this).css({backgroundColor: '#eee'}).animate({backgroundColor: '#ddd'}, 1);				}					},		function () {							if ($(this).is(':animated')) {					$(this).stop().animate({backgroundColor: '#FFF'}, 1000);				} else {					$(this).css({backgroundColor: '#eee'}).animate({backgroundColor: '#FFF'}, 1000);				}					});	//setup scrolls in footer	$("#vscroll1, #vscroll2").vscroll();//toggle grid & styles		$("#grid").toggle(		function(){			$(".container").addClass("grid");}, 		function () {			$(".container").removeClass("grid");	 });	//toggle styles		$("#styles").toggle(		function(){			$('link[@rel*=style][title]').each(function(i) 				{ this.disabled = true;	});	},		function () {			$('link[@rel*=style][title]').each(function(i) 				{ this.disabled = false; });	});	//end toggle styles & grids});

