jQuery(document).ready(function($){
	
	$.prettyLoader();
	
	$('#slideShow').cycle({ 
    fx:      'fade', 
    speed:    2000, 
    timeout:  7000
}); 
        var searchStr = $('#topSearchInput').val();
        
        $('#topSearchInput').focus(function() {
                    if ($(this).val() == searchStr) {
                        $(this).val('');}
                                  }
        );
        
        $('#topSearchInput').blur(function() {
                if ($(this).val() == '') {
                    $(this).val(searchStr);}
                  }
        );
		var randH = (90 + Math.random()*35 ).toFixed(2);
		var randV = ( Math.random()*100 ).toFixed(2);
		
		
		$('#header.innerHeader').css('background-position',randH+'% ' + randV + '%');
		
		$('.searchField').each(function() {

			var searchString = $(this).val();
			
			$(this).focus(function(){
					if ($(this).val() == searchString) {
						$(this).val('').removeClass('unselected');
					}			
			});
	
			$(this).blur(function(){
					if ($(this).val() == '') {
						$(this).val(searchString).addClass('unselected');
					}			
			});

			
		});
				
});

