jQuery(document).ready(function(){
	

	/*
	Admin menu hacks... 
	*/

	/*make it so that the menu item fieldset is open by default*/
	if(jQuery("fieldset.menu-item-form").length > 0) jQuery("fieldset.menu-item-form").removeClass("collapsed");
	
	/* except when adding blog posts -- then close the menu items fieldset */
	if (jQuery(".page-node-add-blog").length > 0) jQuery("fieldset.menu-item-form").addClass("collapsed");
					
	/*make it so that pathauto fieldset is collapsed by default*/
	if (jQuery("#edit-pathauto-perform-alias-wrapper").length > 0) jQuery("#edit-pathauto-perform-alias-wrapper").parents("fieldset").addClass("collapsed");
	

	
	/* 	
	UI Hacks... 	
	*/
	
	/* apply cycle() if front page's ".pics" div is found. */
	if (jQuery(".pics").length > 0) {

		jQuery(".pics").cycle({
			fx:    "fade",
			speed:  5000
		});
	}
	
	
	
	sfHover = function() {

	var sfEls = document.getElementById("block-menu_block-1").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

	

	
	
});

