$(function() { // Datepicker $('#datepicker').datepicker({ changeMonth: true, changeYear: true, minDate: 0, duration: 0 }); // Tabs $("#tabs").tabs({ select: tabFunc }).tabs("select", 0); $("#tabs").find("ul").find("li:last").hide(); $("#tabsContact").tabs(); $("#tabsGroup").tabs(); $.fn.ezpz_tooltip.positions.topLeft = function(contentInfo, mouseX, mouseY, offset, targetInfo) { contentInfo['top'] = 0; contentInfo['left'] = 0; return contentInfo; }; }); function tabFunc(event, ui) { if ($("#MessageConfig").length == 0) return true; if (ui.index == 1) { if ($("#hdnIds").val()==="") { alert("Please select at least one recipient before you configure your message."); return false; } else { $("#MessageConfig").overlay().load(); updateSend2($("#ctl00_Main_ddlSend").val()); return false; } } } var path = "/login.aspx"; function toggleInfo() { $('#pageInfo').slideToggle(300, function() { infoToggle(); }); } function infoToggle() { var date = new Date(); date.setTime(date.getTime() + (365 * 24 * 60 * 60 * 1000)); if ($('#pageInfo').is(':visible')) { try { $('#infoToggle').html($('#infoToggle').html().replace('/images/expand.gif', '/images/collapse.gif').replace(' SHOW ', ' HIDE ')); } catch(ex) {} $.cookie(path, 'Y', { path: '/', expires: date }); } else { try { $('#infoToggle').html($('#infoToggle').html().replace('/images/collapse.gif', '/images/expand.gif').replace(' HIDE ', ' SHOW ')); } catch(ex) {} $.cookie(path, null, { path: '/' }); } } $(document).ready(function() { if ($.cookie(path) == null) $('#pageInfo').hide(); infoToggle(); }); function hideSelects() { return; window["selects"] = $("select:visible"); window["selects"].hide(); } function showSelects() { return; if (!window["selects"]) return; window["selects"].show(); window["selects"] = null; }