j$(document).ready(function(){
    j$('#weekendSale').dialog({
				autoOpen: false,
				title: '10% Off Weekend Sale!',
				height: 200, // Change to swf width+30
				width: 470, // Change to swf height+30
				draggable: false,
				resizable: false,
				modal: true
	});
	
    j$('#weekendSale').css('display', 'block');
	
	j$('#saleBtn').click(function(){
		j$("#weekendSale").dialog('open');
	});
	
	j$('#saleBtn').mouseenter(function(){
	   j$('#saleBtn').css('cursor', 'pointer');
	});
	
	j$('#saleBtn2').click(function(){
		j$("#weekendSale").dialog('open');
	});
	
	j$('#saleBtn2').mouseenter(function(){
	   j$('#saleBtn2').css('cursor', 'pointer');
	});	
    
	/*********** Use This For Img Shop Now Button **************/	
	j$('#closer img').mouseenter(function(){
	   j$('#closer img').css('opacity', '.8');
	   j$('#closer img').css('filter', 'alpha(opacity=80)');
	}).mouseleave(function() {
		j$('#closer img').css('opacity', '1');
		j$('#closer img').css('filter', 'alpha(opacity=100)');
	});
	/************** End of Img Shop Now Button ****************/
	
    j$('#closer').click(function() {
		j$("#weekendSale").dialog('close');
        return false;
    });
		   
	/************************* New Close Button Code ************************/
		
	j$('#newCloseBtn').mouseenter(function(){
	   j$('#newCloseBtn').css('cursor', 'pointer');
	});	
	
	j$('#newCloseBtn').click(function() {
		j$("#weekendSale").dialog('close');
        return false;
    });
		
	/***************** This Allows X to float to top Right ******************/
	j$('.ui-dialog .ui-dialog-titlebar-close').css('display', 'none');
	j$('.ui-corner-all').css('overflow', 'visible');
	
});

