$(document).ready(function(){
	
	$('#navigation ul.menu').supersubs({ 
		minWidth:    12,   // minimum width of sub-menus in em units 
		maxWidth:    27,   // maximum width of sub-menus in em units 
		extraWidth:  1
	}).superfish({
		autoArrows: false
	});
	
	jQuery.fn.cleardefault = function() {
		return this.focus(function() {
			if( this.value == this.defaultValue ) {
				this.value = "";
			}
		}).blur(function() {
			if( !this.value.length ) {
				this.value = this.defaultValue;
			}
		});
	};
	$(".auto-clear").cleardefault();
	
	//$(".GuestBox p").text("All Things UNCHARTED is the most active UNCHARTED-only community today. Get started with the options below!")
	$("#FacebookAuth").remove();
	$("#TwitterAuth").remove();
});

function setupSlider() {
	$("#navigation ul li#menu-item-860").addClass('current-menu-item');
	$('#features').nivoSlider({
        effect:'sliceDown',
        slices:15,
        animSpeed:500,
        pauseTime:6000,
        startSlide:0,
        directionNav:true,
        directionNavHide:false,
        controlNav:false,
        pauseOnHover:true,
        manualAdvance:false,
        captionOpacity:1
    }).find('a.nivo-prevNav').html('&lsaquo;').end().find('a.nivo-nextNav').html('&rsaquo;');
}
