$(document).ready(function(){

	
	$('#slider1').tinycarousel({ interval: true, intervaltime: 8000, axis: 'x', duration: 1500  });

	
	
	
	$('input:text').bind({
   	 
  	    click: function() {
  	         
  	       $(this).val('');
  	  },
  	    mouseout: function() {
  		   if($(this).val() == ''){
  		       var Val = $(this).attr('title');
  		       $(this).val(Val);
  		  }
  	  }
  	});

	
	
$(".open").toggle(function(){
		
	    
		$("#offerBox").slideDown('slow').css({'z-index': '100'});
		$(".prev").hide();
		$(".next").hide();
		
	}, function(){
		
		 $("#offerBox").slideUp(1000).css({'z-index': '0'});  
		 $(".prev").show();
	     $(".next").show();
	    
	    
	});
	
	
$(".open2").toggle(function(){
	
	$("#header").slideDown('slow').show(function(){
		$(this).css({'opacity': '1', 'margin-top': '10px'});
	});
	$("#headerShadow").show();
	$("#offerBox").show();
	$("#leftSliderArrow").hide();
	$("#rightSliderArrow").hide();
	//$(".topHr").hide();
}, function(){
	 $("#header").slideUp('slow').hide(function(){
			$(this).css({'opacity': '0'});
		}); 
	 $("#offerBox").hide();
	 $("#headerShadow").hide();
	 $("#leftSliderArrow").show();
     $("#rightSliderArrow").show();
     //$(".topHr").show();
});



$(".openProjects").click(function(){
	
	$("#popUp").slideUp('slow').show();
	$("#popUpContent").show();
    
});


$(".close2").click(function(){
	$("#popUp").slideDown('slow').hide();
	$("#popUpContent").hide();
});
	
	
});





