/* Author: kurt htmlcssguru.com

*/

/* Member Login Window written by Kurt Menne */
 $('#login_trigger').click( function() { $('#login_window').toggle('blind', 500) });
    $('#hdr_close').click( function() { $('#login_window').toggle('blind', 500) });
/* Member Login Window written by Kurt Menne */

/* Float Label written by Kurt Menne */
(function ($) {
 $.fn.floatLabel = function(){
 	return $(this).each(function(){
 	  var label = $(this).parent().find('label');
 	  label.show();

 		if ($(this).val() != '') 
 			label.hide();

 		$(this)
   		.focus(function(){
   			label.hide();
   		})
   		.blur(function(){
   			if ($(this).val() == '')
   				label.show();
   		});
 	})
 }
})(jQuery);


 $("#search_text").floatLabel(); 
// $("#login").floatLabel(); 
// $("#password").floatLabel(); 
/* Float Label written by Kurt Menne */

/* Tabs written by Kurt Menne */
$(document).ready(function() {  
	$(function() { $("#tabs").tabs({ fx: { opacity: 'toggle' } }); });
	var $tabs = $('#tabs').tabs();   
}); 
/* Tabs written by Kurt Menne */

/* Slider written by Kurt Menne */
function swapImages(){
	var $active = $('#sponsor_slider .active');
	var $next = ($('#sponsor_slider .active').next().length > 0) ? $('#sponsor_slider .active').next() : $('#sponsor_slider img:first');
	$active.fadeOut('slow').removeClass('active');
	$next.fadeIn('slow').addClass('active');
}

$(document).ready(function(){ setInterval('swapImages()', 4000); });
/* Slider written by Kurt Menne */

/* containers bg color change for odd numbered in list written by Kurt Menne */
$('.pro_wrap:odd').css('background', '#ECF6FC');
/* containers bg color change for odd numbered in list written by Kurt Menne */

/* YouTube Tab link written by Kurt Menne */
$('#tabs').tabs({
    select: function(event, ui) {
        var url = $.data(ui.tab, 'load.tabs');
        if( url ) {
            location.href = url;
            return false;
        }
        return true;
    }
});


$('#message').delay(5000).fadeOut(5000, function () { $(this).remove(); });






