$(document).ready(function(){

	$('input[type="text"]').focus(function() {
        if (this.value == this.defaultValue){
        	this.value = '';
    	}
        if(this.value != this.defaultValue){
	    	this.select();
        }
    });
    $('input[type="text"]').blur(function() {
        if (this.value == ''){
        	this.value = this.defaultValue;
    	}
    });
	
$("#top-sub-nav").hide();

	
	$("#top-nav").hover(function(){
		$("#top-sub-nav").slideDown("slow");
	});
	
	$("#close").click(function(){
		$("#top-sub-nav").slideToggle("slow");
	});
	
	
	
$('#fadein img:gt(0)').hide();
setInterval(function(){$('#fadein :first-child').fadeOut(1000).next('img').fadeIn(1000).end().appendTo('#fadein');}, 7000);

$('#slider-code').tinycarousel({ pager: true , display: 3 });
	
});
