jQuery(function($) {
jQuery('#show').click(function(){
 jQuery.blockUI({ 
	message: $('#popup_cat_subcat'),centerY: ($.browser.msie && parseInt($.browser.version) === 6) ? false : true ? false : true,
	css:{
	border: 'none',
	padding: '0',
	top:  100 + 'px', 
    left: (jQuery(window).width() - 955) /2 + 'px',
	backgroundColor: 'transparent',
	color: '#000',
	position: 'absolute'
	}

}); 
}); 

jQuery('.show_address, #shippingAddAddress').click(function(){
 
 jQuery.blockUI({ 
	message: $('#add_address'),centerY: ($.browser.msie && parseInt($.browser.version) === 6) ? false : true ? false : true,
	css:{
	border: 'none',
	padding: '0',
	top:  100 + 'px', 
    left: (jQuery(window).width() - 647) /2 + 'px',
	backgroundColor: 'transparent',
	color: '#000',
	position: 'absolute'
	}

}); 
 $("#select1").attr("checked", true);
});

jQuery('.edit_cc').click(function(){
 jQuery.blockUI({ 
	message: $('#edit_cc'),centerY: ($.browser.msie && parseInt($.browser.version) === 6) ? false : true ? false : true,
	css:{
	border: 'none',
	padding: '0',
	top:  100 + 'px', 
    left: (jQuery(window).width() - 586) /2 + 'px',
	backgroundColor: 'transparent',
	color: '#000',
	position: 'absolute'
	}
}); 
});

jQuery('.show').click(function(){
 jQuery.blockUI({ 
	message: $('#popup_cat_subcat'),centerY: ($.browser.msie && parseInt($.browser.version) === 6) ? false : true ? false : true,
	css:{
	border: 'none',
	padding: '0',
	top:  250 + 'px', 
    left: (jQuery(window).width() - 955) /2 + 'px',
	backgroundColor: 'transparent',
	color: '#000',
	position: 'absolute'
	}

}); 
}); 

jQuery('#add').click(function(){
 jQuery.blockUI({ 
	message: $('#add_address_error'),centerY: ($.browser.msie && parseInt($.browser.version) === 6) ? false : true ? false : true,
	css:{
	border: 'none',
	padding: '0',
	top:  (jQuery(window).height() - 650) /2 + 'px', 
    left: (jQuery(window).width() - 647) /2 + 'px',
	backgroundColor: 'transparent',
	color: '#000',
	position: 'absolute'
	}

}); 
}); 

jQuery('.compare_showquickview').click(function(){
 jQuery.blockUI({ 
	message: $('#popup_cat_subcat'),centerY: ($.browser.msie && parseInt($.browser.version) === 6) ? false : true ? false : true,
	css:{
	border: 'none',
	padding: '0',
	top:  250 + 'px', 
    left: (jQuery(window).width() - 955) /2 + 'px',
	backgroundColor: 'transparent',
	color: '#000',
	position: 'absolute'
	}

}); 
}); 

jQuery('.shownew_address').click(function(){
 jQuery.blockUI({ 
	message: $('#add_address_id'),centerY: ($.browser.msie && parseInt($.browser.version) === 6) ? false : true ? false : true,
	css:{
	border: 'none',
	padding: '0',
	top:  (jQuery(window).height() - 100) /2 + 'px', 
    left: (jQuery(window).width() - 585) /2 + 'px',
	backgroundColor: 'transparent',
	color: '#000',
	position: 'absolute'
	}

}); 
}); 

jQuery('#Wishlist_id1').click(function(){
 jQuery.blockUI({ 
	message: $('#edit_whishlist_id'),centerY: ($.browser.msie && parseInt($.browser.version) === 6) ? false : true ? false : true,
	css:{
	border: 'none',
	padding: '0',
	top:  (jQuery(window).height() - 100) /2 + 'px', 
    left: (jQuery(window).width() - 319) /2 + 'px',
	backgroundColor: 'transparent',
	color: '#000',
	position: 'absolute'
	}

}); 
}); 

jQuery('#Wishlist_id2').click(function(){
 jQuery.blockUI({ 
	message: $('#edit_whishlist_id'),centerY: ($.browser.msie && parseInt($.browser.version) === 6) ? false : true ? false : true,
	css:{
	border: 'none',
	padding: '0',
	top:  (jQuery(window).height() - 100) /2 + 'px', 
    left: (jQuery(window).width() - 319) /2 + 'px',
	backgroundColor: 'transparent',
	color: '#000',
	position: 'absolute'
	}

}); 
}); 

jQuery('#Wishlist_id3').click(function(){
 jQuery.blockUI({ 
	message: $('#edit_whishlist_id'),centerY: ($.browser.msie && parseInt($.browser.version) === 6) ? false : true ? false : true,
	css:{
	border: 'none',
	padding: '0',
	top:  (jQuery(window).height() - 100) /2 + 'px', 
    left: (jQuery(window).width() - 319) /2 + 'px',
	backgroundColor: 'transparent',
	color: '#000',
	position: 'absolute'
	}

}); 
}); 

jQuery('#Wishlist_id4').click(function(){
 jQuery.blockUI({ 
	message: $('#edit_whishlist_id'),centerY: ($.browser.msie && parseInt($.browser.version) === 6) ? false : true ? false : true,
	css:{
	border: 'none',
	padding: '0',
	top:  (jQuery(window).height() - 100) /2 + 'px', 
    left: (jQuery(window).width() - 319) /2 + 'px',
	backgroundColor: 'transparent',
	color: '#000',
	position: 'absolute'
	}

}); 
});
jQuery('#emailbottom').click(function(){
	$( 'html, body' ).animate( { scrollTop: 0 }, 0 );
 jQuery.blockUI({ 
	message: $('#email_sign_up_lb'),centerY: ($.browser.msie && parseInt($.browser.version) === 6) ? false : true ? false : true,
	css:{
	border: 'none',
	padding: '0',
	top:  150 + 'px', 
    left: (jQuery(window).width() - 319) /2 + 'px',
	backgroundColor: 'transparent',
	color: '#000',
	position: 'absolute'
	}

}); 
});

jQuery('#wishlistPopup').click(function(){
jQuery.blockUI({ 
 message: $('#wishlistContainer'),centerY: ($.browser.msie && parseInt($.browser.version) === 6) ? false : true ? false : true, baseZ: 1000,
 css:{
 border: 'none',
 padding: '0',
 top:  200 + 'px', 
    left: (jQuery(window).width() - 319) /2 + 'px',
 backgroundColor: 'transparent',
 color: '#000',
 position: 'absolute'
 }
}); 
          jQuery('#wishlistContent').show('fast');
          jQuery('#wishlistForm').hide('fast');
          jQuery('#wishlistSelect').show('fast');
});
 
jQuery('#newWishList').click(function(){
jQuery.blockUI({ 
 message: $('#wishlistContainer'),centerY: ($.browser.msie && parseInt($.browser.version) === 6) ? false : true ? false : true, baseZ: 1000,
 css:{
 border: 'none',
 padding: '0',
 top:  200 + 'px', 
    left: (jQuery(window).width() - 319) /2 + 'px',
 backgroundColor: 'transparent',
 color: '#000',
 position: 'absolute'
 }
});          
          jQuery('#wishlistSelect').hide('fast');
          jQuery('#wishlistForm').show('fast');
});




jQuery('#showpopupEmail, #showpopupEmail2').click(function(){
 jQuery.blockUI({ 
	message: $('#email_show'),centerY: ($.browser.msie && parseInt($.browser.version) === 6) ? false : true ? false : true,
	css:{
	border: 'none',
	padding: '0',
	top:  200 + 'px', 
    left: (jQuery(window).width() - 319) /2 + 'px',
	backgroundColor: 'transparent',
	color: '#000',
	position: 'absolute'
	}
}); 
										jQuery('#email_show').show('fast');
										jQuery('#email_loader').hide('fast');
										jQuery('#email_form').show('fast');
										
});

jQuery('.email-in-stock').click(function(){
 jQuery.blockUI({ 
	message: $('#email_instock_show'),centerY: ($.browser.msie && parseInt($.browser.version) === 6) ? false : true ? false : true,
	css:{
	border: 'none',
	padding: '0',
	top:  200 + 'px', 
    left: (jQuery(window).width() - 319) /2 + 'px',
	backgroundColor: 'transparent',
	color: '#000',
	position: 'absolute'
	}
}); 
 		jQuery('#email_instock_loader').hide('fast');
 		jQuery('#email_instock_form').show('fast');
});

jQuery('#quickcheck').click(function(){
 jQuery.blockUI({ 
	message: $('#quickshow'),centerY: ($.browser.msie && parseInt($.browser.version) === 6) ? false : true ? false : true,
	css:{
	border: 'none',
	padding: '0',
	top:  (jQuery(window).height() - 560) /2 + 'px', 
    left: (jQuery(window).width() - 674) /2 + 'px',
	backgroundColor: 'transparent',
	color: '#000',
	position: 'absolute'
	}

}); 
}); 


jQuery('#upperAdd, #lower_add').click(function(){
 jQuery.blockUI({ 
	message: $('#add_address_error'),centerY: ($.browser.msie && parseInt($.browser.version) === 6) ? false : true ? false : true,
	css:{
	border: 'none',
	padding: '0',
	top:  100 + 'px', 
    left: (jQuery(window).width() - 647) /2 + 'px',
	backgroundColor: 'transparent',
	color: '#000',
	position: 'absolute'
	}

}); 
  $('#bill2').attr('checked', 'checked');
				$('#bill_1').show();
				$('#bill_2').hide();
				$("#select1").attr("checked", "checked");
				$("#us").show();
				$('#canada').hide();
				$('#apo').hide();
				$('#international').hide();
}); 

});

function cat_subcatBox()
{
	jQuery('#open').click(function(){
							   
	$("#popup_cat_subcat").css('opacity', '1');							   
 jQuery.blockUI({ 
	message: $('#popup_cat_subcat'),centerY: ($.browser.msie && parseInt($.browser.version) === 6) ? false : true ? false : true,
	css:{
	border: 'none',
	padding: '0',
	top:  (jQuery(window).height() - 647) /2 + 'px', 
    left: (jQuery(window).width() - 647) /2 + 'px',
	backgroundColor: 'transparent',
	color: '#000',
	position: 'absolute'
	}

});
});
	}
	
function addNewBox()
{
	jQuery('#addnew').click(function(){
				   
					   
 jQuery.blockUI({ 
	message: $('#addressBox1'),centerY: ($.browser.msie && parseInt($.browser.version) === 6) ? false : true ? false : true,
	css:{
	border: 'none',
	padding: '0',
	top:  (jQuery(window).height() - 647) /2 + 'px', 
    left: (jQuery(window).width() - 647) /2 + 'px',
	backgroundColor: 'transparent',
	color: '#000',
	position: 'absolute'
	}

});
});
	
}	
	function emailLaunchBox()
{
	jQuery('#launchBox1, #launchBox2, #launchBox3').click(function(){
				   
					   
 jQuery.blockUI({ 
	message: $('.popup_main'),centerY: ($.browser.msie && parseInt($.browser.version) === 6) ? false : true ? false : true,
	css:{
	border: 'none',
	padding: '0',
	top:  (jQuery(window).height() - 647) /2 + 'px', 
    left: (jQuery(window).width() - 647) /2 + 'px',
	backgroundColor: 'transparent',
	color: '#000',
	position: 'absolute'
	}

});
});

		

	}
	
function addNewBox()
{
	jQuery('#addBox, #addBox1').click(function(){
				   
					   
 jQuery.blockUI({ 
	message: $('#addNewbox2'),centerY: ($.browser.msie && parseInt($.browser.version) === 6) ? false : true ? false : true,
	css:{
	border: 'none',
	padding: '0',
	top:  (jQuery(window).height() - 647) /2 + 'px', 
    left: (jQuery(window).width() - 647) /2 + 'px',
	backgroundColor: 'transparent',
	color: '#000',
	position: 'absolute'
	}

});
});
}
function openWishList(){
jQuery.blockUI({ 
	message: $('#wishlistContainer'),centerY: ($.browser.msie && parseInt($.browser.version) === 6) ? false : true ? false : true, baseZ: 1000,
	css:{
	border: 'none',
	padding: '0',
	top:  200 + 'px', 
    left: (jQuery(window).width() - 319) /2 + 'px',
	backgroundColor: 'transparent',
	color: '#000',
	position: 'absolute'
	}
}); 
		jQuery('#wishlistContent').show('fast');
          jQuery('#wishlistForm').hide('fast');
          jQuery('#wishlistSelect').show('fast');
}

function openEmailFriend(){
	jQuery.blockUI({ 
	message: $('#email_show'),centerY: ($.browser.msie && parseInt($.browser.version) === 6) ? false : true ? false : true,
	css:{
	border: 'none',
	padding: '0',
	top:  200 + 'px', 
    left: (jQuery(window).width() - 319) /2 + 'px',
	backgroundColor: 'transparent',
	color: '#000',
	position: 'absolute'
	}
}); 
		jQuery('#email_show').show('fast');
		jQuery('#email_loader').hide('fast');
		jQuery('#email_form').show('fast');
}
