$JQ(document).ready(function(){
	
/*		
	adding clearBoth divs to the markup here = less code and mess in the markup		
*/
/*
	$JQ("#mainarea").append("<div class='clearBoth'></div>"); // adds clearBoth at the end of <div>
	$JQ("#content").append("<div class='clearBoth'></div>"); // adds clearBoth at the end of <div>
	$JQ("#sidebar").append("<div class='clearBoth'></div>"); // adds clearBoth at the end of <div>
*/	

	// contact
	$JQ("#btnContactFormSend").click(function(){
		$JQ('#contactForm').hide();
		$JQ("#thankyou").show();
		return false;
	});		

	// quotes slideshow
    $JQ('#quotes ul').cycle({
        fx:     'fade',		       	
		timeout: 6000		
    });		
    
	$JQ("#partOfRetouch #btnRetouch").click(function() {
		if($JQ("#partOfRetouch ul").is(":hidden")) {
			 $JQ("#partOfRetouch ul").slideDown("fast"); 
		} else {
			$JQ("#partOfRetouch ul").slideUp("fast"); 
		}
		return false;
	});
});

function updateErrorLabels() {
    $JQ('.btnError span').each(function(i, n) {
        if ($JQ(n).css("display") != "none")
            $JQ(n).parent().show();
        else
            $JQ(n).parent().hide();
    });
}






