//  Custom jQuery Functions
//  Version 1.0
//  Insight Advertising Agency
//	interactive@insightadvertising.com

//	----- Search Box focus/blur effect -----	
$(document).ready(function(){
	
	// Get the text from the label element
	var labelTxt = 'Type and Press Search';
	// Put the text from the label element into the search field's value	
	$('#s').attr('value',labelTxt);
	// Focus & blur effects
	$('#s').focus(function(){
		if ((this.value == '') || (this.value == labelTxt)) {
			$(this).val('');
		}
	});
	$('#s').blur(function(){
		if (this.value == '') {
			$(this).val(labelTxt);
		}
	});
});

// -----  Tab Section on Main Page -----
$(document).ready(function(){
    var tabContainers = $('div#hot > div');
    $('div#hot ul#tabnavigation a').click(function () {
        tabContainers.hide().filter(this.hash).show();
        $('div#hot ul#tabnavigation a').removeClass('selected');
        $(this).addClass('selected');
        return false;
    }).filter(':first').click();
});

