
jQuery(function( $ ){
				$('#feebsubstext').focus(function(evt){
			if ($(this).attr('value') == "your e-mail here..."){
				$(this).attr('value','');
			}
	});
	$('#feebsubstext').blur(function(evt){
			if ($(this).attr('value') == ''){
				$(this).attr('value','your e-mail here...');
			}
	});

			
/*------*/			
// Superfish
/*------*/
	$('ul.sf-menu').superfish();


/*------*/
// Quote Show with JQuery UI Tabs 
/*------*/
	$("#quoteshow-container").tabs({
			fx: { opacity: 'toggle' }
	});
	$("#quoteshow-container").tabs("rotate",5000, true);

/*------*/
// Slide Show with JQuery UI Tabs 
/*------*/
	$("#slideshow-container").tabs({
			fx: { opacity: 'toggle' }
	});
	// trigger to rotate 
	$("#slideshow-container").tabs("rotate",10000, true);
	// Get total number of slides 
	var totalSlide = ($("#slideshow-container .ui-tabs-panel").size());

	// NEXT	button is click
	$('#slidenext').click(function() { 

		var selected = $( "#slideshow-container" ).tabs( "option", "selected" );
		//alert ("selected+1: " + (selected+1) + "|| totalSlide: " + totalSlide );
		// If it is the last tab, go to first.
		if(selected+1 == totalSlide ){
			$( "#slideshow-container" ).tabs( "option", "selected", 0 );
		}
		else {
			$( "#slideshow-container" ).tabs( "option", "selected", selected+1 );
		}
		return false;
	});
	
	// PREV	button is click
	$('#slideprev').click(function() { 

		var selected = $( "#slideshow-container" ).tabs( "option", "selected" );
		//alert ("selected+1: " + (selected+1) + "|| totalSlide: " + totalSlide );
		// If it is first tab, go to last.
		if(selected+1 == 1 ){
			$( "#slideshow-container" ).tabs( "option", "selected", totalSlide-1 );
		}
		else {
			$( "#slideshow-container" ).tabs( "option", "selected", selected-1 );
		}
		return false;
	});

		
		// When user mouse is over the slideshow pane.
		$("#slideshow-container").mouseover(function() {
		});
		
/*		$(".ui-tabs-panel").each(function(i){
	
			  var totalSize = $(".ui-tabs-panel").size() - 1;
	
			  if (i != totalSize) {
			      next = i + 2;
		   		  $(this).append("<a href='#' class='next-tab mover' rel='" + next + "'>Next Page &#187;</a>");
			  }
	  
			  if (i != 0) {
			      prev = i;
		   		  $(this).append("<a href='#' class='prev-tab mover' rel='" + prev + "'>&#171; Prev Page</a>");
			  }
   		
		});
		
		
		$('.next-tab, .prev-tab').click(function() { 
		           $tabs.tabs('select', $(this).attr("rel"));
		           return false;
		});
*/		
		
});


