$(document).ready(function(){
	$('input:submit, input:button, input:reset').each(function(){
		   if ($(this).attr("class") != "button" || $(this).attr("class") != "next") {
               $(this).addClass("button");
           } 
	});
 
    $('input:text').each(function(){
           if ($(this).attr("class") != "inputtext") {
               $(this).addClass("inputtext");
           } 
    }); 
    
    $('.btn-small-add2basket, .btn-add2basket').fancybox({
       frameHeight: 70,
       hideOnContentClick: false,
       hideOnOverlayClick: true,
       enableEscapeButton: true
   });
   
    var text = $("#subscribe input:text").val();
    var newText = false;
    $("#subscribe input:text").focus(function(){
        if (!newText) {
            $(this).attr("value", "");
            newText = true;
        }
    });
    $("#subscribe input:text").blur(function(){
        if (!$(this).val()) {
            $(this).attr("value", text);
            newText = false;
        } 
    });   
});