var JQ2=jQuery.noConflict();function openAudioWindow(a,b){window.open(a,b,"location=no,toolbar=no,menubar=no,directories=no,status=no,resizable=yes,scrollbars=no,channelmode=no,titlebar=no,height=200,width=400",false)}function openAudioWindow2(a,b){window.open(a,b,"location=no,toolbar=no,menubar=no,directories=no,status=no,resizable=yes,scrollbars=no,channelmode=no,titlebar=no,height=160,width=398",false)}function openAudioWindow3(a,b){window.open(a,b,"location=no,toolbar=no,menubar=no,directories=no,status=no,resizable=yes,scrollbars=no,channelmode=no,titlebar=no,height=180,width=398",false)}function generateHash(c,b){var a=Crypto.SHA256(Crypto.SHA256(Crypto.MD5(c))+b);return a}function generateHash2w(b,a){return stringToHex(des(a,b,1,0,0,2))}function addit(b){index=b.options[b.selectedIndex].value;var a=JQ2.find('[id="webinar_register_form"],[id="membership_register_form"]');if(index){JQ2(a).find('[id="first-name11"]').val(aFName[index]);JQ2(a).find('[id="last-name11"]').val(aLName[index]);JQ2(a).find('[id="title_level"]').val(aTitle[index]);JQ2(a).find('[id="job_function"]').val(aJob[index]);JQ2(a).find('[id="email11"]').val(aEmail[index]);JQ2(a).find('[id="phone11"]').val(aPhone[index]);JQ2(a).find('[id="inst_name"]').val(aCompany[index])}else{JQ2(a).find('[id="first-name11"]').val("");JQ2(a).find('[id="last-name11"]').val("");JQ2(a).find('[id="title_level"]').val("");JQ2(a).find('[id="job_function"]').val("");JQ2(a).find('[id="email11"]').val("");JQ2(a).find('[id="phone11"]').val("");JQ2(a).find('[id="inst_name"]').val("")}}function createCookie(c,d,e){if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));var a="; expires="+b.toGMTString()}else{var a=""}document.cookie=c+"="+d+a+"; path=/"}JQ2(document).ready(function(){JQ2("#dialog").dialog({modal:true,zIndex:9999,height:120,resizable:false,draggable:false}).dialog("close").bind("ajaxStart",function(){JQ2(this).dialog("open")}).bind("ajaxStop",function(){JQ2(this).dialog("close")});JQ2(".ui-dialog-titlebar").hide();JQ2("input").keydown(function(a){if(a.keyCode==13){JQ2(this).parents("form").find('input[class^="submit"][type="button"][id!="add_attendee"][id!="submitLoginForm2"][id!="submitRegisterForm3"],input[class^="submit"][type="submit"][id!="add_attendee"][id!="submitLoginForm2"][id!="submitRegisterForm3"],input[type="submit"][id="SearchButton"],input[type="submit"][id="get_daily_email_btn"]').click();return false}});JQ2('[id^="search-arrow"]').click(function(){var b=new String(JQ2(this).attr("id")).replace("search-arrow-","");var a=JQ2("#search-tabs-"+b);if(a.css("display")=="none"){a.slideDown();JQ2(this).removeClass("inactive").addClass("active").attr("title","Collapse results")}else{a.slideUp();JQ2(this).removeClass("active").addClass("inactive").attr("title","Expand results")}return false});JQ2("input[name='reg-type']").change(function(){JQ2("#vendor_registration_form").submit()});JQ2("#add_vendor_category").click(function(){JQ2("#vendor_categories_block").append('<div class="field"><select name="vendor_categories[]">{{ vendor_categories | raw }}</select></div>')});JQ2("#title_level").change(function(){if(JQ2("#title_level option:selected").text()=="--Other Title Level--"){JQ2("#title_other_fr").show()}else{JQ2("#title_other_fr").hide();JQ2("#title_other").val("")}});JQ2("#job_function").change(function(){if(JQ2("#job_function option:selected").text()=="--Other Job Function--"){JQ2("#job_other_fr").show()}else{JQ2("#job_other_fr").hide();JQ2("#job_other").val("")}});JQ2("#state").change(function(){if(JQ2("#state option:selected").text()=="--Other State--"){JQ2("#state_other_fr").show()}else{JQ2("#state_other_fr").hide();JQ2("#state_other").val("")}});JQ2("#country").change(function(){if(JQ2("#country option:selected").val()!="US"){JQ2("#state_other_fr").show();JQ2("#state").val("");JQ2("#state").val("")}else{JQ2("#state").val(2);JQ2("#state_other").val("");JQ2("#state_other_fr").hide()}});JQ2("#close_alert").click(function(){JQ2("#alert-box").attr("style","display:none");document.cookie="hideAlertBox=1;path=/"})});
