jQuery(document).ready(function() {
    jQuery('input[type="text"]').addClass("inpidle"); 
	jQuery('textarea').addClass("inpidle"); 
    
	jQuery('input[type="text"]').focus(function() {  
            jQuery(this).removeClass("inpidle").addClass("inpfocus");  
            if (this.value == this.defaultValue){  
                this.value = '';  
            }  
            if(this.value != this.defaultValue){  
                this.select();  
           }  
    });  
	jQuery('input[type="text"]').blur(function() {  
         jQuery(this).removeClass("inpfocus").addClass("inpidle");  
          if ($.trim(this.value) == ''){  
             this.value = (this.defaultValue ? this.defaultValue : '');  
         }  
    });  
	jQuery('textarea').focus(function() {  
            jQuery(this).removeClass("inpidle").addClass("inpfocus");  
    });  

	jQuery('textarea').blur(function() {  
           jQuery(this).removeClass("inpfocus").addClass("inpidle");  
    });  
	jQuery("dd:not(:first)").hide();
	jQuery("dt a").click(function(){
		jQuery("dd:visible").slideUp("slow");
		jQuery(this).parent().next().slideDown("slow");
		return false;
	});
 	
	
	jQuery(".txs").hide();
	jQuery("a#single_image").fancybox(); 
	jQuery("a#inline").fancybox({ 'hideOnContentClick': true }); 
	jQuery("a.box").fancybox({ 'zoomSpeedIn': 300, 'zoomSpeedOut': 300, 'overlayShow': false, 'imageScale':false,'centerOnScroll':false,'easingIn': 'easeOutBack', 'easingOut': 'easeInBack' }); 	
	jQuery("a.iframe").fancybox({ 'zoomSpeedIn': 300, 'zoomSpeedOut': 300, 'overlayShow': false, 'frameWidth':520,'frameHeight':480 }); 	

    jQuery('ul#furniture').animatedinnerfade({
	speed: 5000,
	timeout: 15000,
	type: 'sequence',
	containerheight: '267px',
	containerwidth: '501px',
	animationSpeed: 15000,
	animationtype: 'fade',
	bgFrame: 'none',
	controlBox: 'none',
	displayTitle: 'none'
	});

});

function loadcart() {
	jQuery("#hd_cr").load("/p/cart.php");
}

function gotocart(){
	window.location = "/p/my-order.php";
}
				  
