// JavaScript Document

$(document).ready(function() {	
		       




		// Keep the word "search" in the search box when not in use		       
		$('input[type="text"]').addClass("idleField");
    		$('input[type="text"]').focus(function() {
    			$(this).removeClass("idleField").addClass("focusField");
 		    if (this.value == this.defaultValue){ 
 		    	this.value = '';
			}
			if(this.value != this.defaultValue){
    			this.select();
    		}
 		});
 		$('input[type="text"]').blur(function() {
 			$(this).removeClass("focusField").addClass("idleField");
 		    if ($.trim(this.value) == ''){
		    	this.value = (this.defaultValue ? this.defaultValue : '');
			}
 		});		


/*************************************************/


		// Set the standard style for beauty tip tooltip
		$('.tipInfo').bt({
		  
		});




/*************************************************/



/*************************************************/
// Content Tabs


    	var tabContainers = $('div.tab-content > div');
		tabContainers.hide().filter(':first').slideDown();
		
		$('ul.contentTabs a').click(function () {
			//hide all tab containers
			tabContainers.hide();
			//show the selected tab container
			tabContainers.filter(this.hash).show();
			// clear the 'current' tab class
			$('ul.contentTabs a').removeClass('current');	
			// set the the 'current' tab class for newly selected tab	
			$('ul.contentTabs a')
			$(this).addClass('current');
			return false;		
			}).filter(':first').click();


    	var tabContainers2 = $('div.tab-content2 > div');
		tabContainers.hide().filter(':first').slideDown();
		
		$('ul.contentTabs2 a').click(function () {
			//hide all tab containers
			tabContainers2.hide();
			//show the selected tab container
			tabContainers2.filter(this.hash).show();
			// clear the 'current' tab class
			$('ul.contentTabs2 a').removeClass('current');	
			// set the the 'current' tab class for newly selected tab	
			$('ul.contentTabs2 a')
			$(this).addClass('current');
			return false;		
			}).filter(':first').click();



  });




