
function MM_openBrWindow(theURL,winName,features){window.open(theURL,winName,features);}
$(document).ready(function(){$('input.imgdelcheck').click(function(){if($(this).is(":checked"))return confirm('The image will be deleted when you update the page');})
$('input.tinyins').click(function(){try{window.tinyMCE.execCommand('mceInsertContent',true,$(this).attr('alt'));}catch(e){}});$('#checkall').change(function(){$('#emaillist input').each(function(){$(this)[0].checked=$('#checkall')[0].checked;});});$('body').click(function(event){if($(event.target).is('.del')){return confirm('Are you sure?');}else if($(event.target).is('.dosend')){return confirm('Are you sure you want to send this email to all mailing list subscribers?');}});$('#advtoggle').toggle(function(){$('.adv').fadeIn(function(){$('#advtoggle').addClass('advhide').text('Hide advanced settings');});},function(){$('.adv').fadeOut(function(){$('#advtoggle').removeClass('advhide').text('Show advanced settings');});});$('.imgopt').toggle(function(){$('#'+$(this).attr('rel')).slideDown();},function(){$('#'+$(this).attr('rel')).slideUp();});$('.img_click').change(function(){var sel=$(this)[0].options.selectedIndex;var mum=$(this).parent().parent().parent();if(sel===0){$('.img_row',mum).hide();}else if(sel==1){$('.img_row',mum).show();$('.img_link1',mum).show();$('.img_link2',mum).hide();}else{$('.img_row',mum).show();$('.img_link1',mum).hide();$('.img_link2',mum).show();}});});
