
$(document).ready(function(){
    try{$('.rounded').corner({
			  tl: { radius: 4 },
			  tr: { radius: 4 },
			  bl: { radius: 4 },
			  br: { radius: 4 },
			  antiAlias: false,
			  autoPad: true });}catch(eer){}
			  
			  
	// Overlay stuff
   try{ $(document).click(function(e) {
        $('.overlay').remove();
        $('#translate-dialog').remove();
    });  }catch(eer){}
    try{$('.overlay .dialog').click(function(e) {
        e.stopPropagation();
    });}catch(eer){}
    try{$('.overlay .close').click(function() {
        $('.overlay').remove();
        return false;
    }); }catch(eer){}
    try{$('.overlay .accept').click(function() {
        $.cookie($('.overlay .dialog').attr('id'), 'true', { expires: 365 });
        $('.overlay').remove();
        window.open($(this).attr('href'));
        return false;
    });  }catch(eer){}
    try{$('.overlay .postpone').click(function() {
        $.cookie($('.overlay .dialog').attr('id'), 'true', { expires: 1 });
        $('.overlay').remove();
        return false;
    });   }catch(eer){}
   try{ $('.overlay .decline').click(function() {
        $.cookie($('.overlay .dialog').attr('id'), 'true', { expires: 365 });
        $('.overlay').remove();
        return false;
    }); }catch(eer){}
});
