function footerfx(){
	var first = 0;
	var speed = 700;
	var pause = 3500;
	
	function removeFirst(){
		first = $('ul#listticker li:first').html();
		$('ul#listticker li:first')
		.animate({opacity: 0}, speed)
		.fadeOut('slow', function() {$(this).remove();});
		addLast(first);
	}
	
	function addLast(first){
		last = '<li style="display:none">'+first+'</li>';
		$('ul#listticker').append(last)
		$('ul#listticker li:last')
		.animate({opacity: 1}, speed)
		.fadeIn('slow')
	}
	
	interval = setInterval(removeFirst, pause);
}

function bannerfx(){
	$("#featured").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
	$("#featured").hover(
		function() {
			$("#featured").tabs("rotate",0,true);
		},
		function() {
			$("#featured").tabs("rotate",5000,true);
		}
	);
}

function formatSearch(){
	var field = document.forms[0].elements[1];
	if (field.value == "Search"){
		field.value = "";
	}
	field.style.color="#000";
}

function mainmenu(){
 	$(" #mainMenu li ul ").css({display: "none"}); // Opera Fix
	var navTimers = [];  
    $( "#mainMenu li" ).hover(  
         function () {  
             var id = jQuery.data( this );  
             var $this = $( this );  
             navTimers[id] = setTimeout( function() {  
                 $this.children( 'ul' ).fadeIn();  
                 navTimers[id] = "";  
             }, 0 );  
         },  
         function () {  
             var id = jQuery.data( this );  
             if ( navTimers[id] != "" ) {  
                 clearTimeout( navTimers[id] );  
             } else {  
                 $( this ).children( "ul" ).fadeOut();  
             }  
         }  
    );  
}