// Jquery Plugins function InitFormJS() { $("img.hoverButton").MyImgButton(); $("input[type=text], input[type=password], select, textarea").not(".whiteborder") .MyTextboxEffects(); $("input[type=text], input[type=checkbox], input[type=password], select, textarea") .MyInputInfoBox({Attr:"InfoText"}); $("img[TooltipText]").MyTooltip({Attr:"TooltipText"}); $(".MyPulldownContent").MyPulldownContent(); $(".MyButton2").each(function() {$(this).MyButton2(); }); // image zoom popups $("a[rel^='lightbox']").prettyPhoto({ animationSpeed: 'normal', /* fast/slow/normal */ padding: 40, /* padding for each side of the picture */ opacity: 0.35, /* Value betwee 0 and 1 */ showTitle: false, /* true/false */ allowresize: true /* true/false */ }); $(".TopLevelMenuBg").hover( function(){ $(this).addClass("TopLevelMenuBg_hover");}, function(){ $(this).removeClass("TopLevelMenuBg_hover"); }); } // AJAX Loading Display Functions function ShowAjaxLoading() { $div=$('#divModal'); if ($div==null || $div==undefined) return; var pos=$div.offset({ scroll: true }); if (pos!=undefined && pos!=null) $div.css({left:0, top:pos.top}); $div.fadeIn(100); } function HideAjaxLoading() { $div=$('#divModal'); if ($div==null || $div==undefined) return; $div.fadeOut(100); } function CreateAjaxLoading() { var strDiv=''; strDiv+='
\n'; $('body').append(strDiv); } // Document Ready Functions $(document).bind("readyAll",function() { InitFormJS(); }); $(document).bind("asyncReady",function() { $(document).trigger("readyAll"); // invoke readyAll event }); $(document).ready(function() { CreateAjaxLoading(); // Create AJAX loading div $(document).trigger("readyAll"); // invoke readyAll event }); // JQUERY AJAX $(document).ajaxStart(function(){ ShowAjaxLoading(); }); $(document).ajaxStop(function(){ HideAjaxLoading(); }); // ASP.NET AJAX => async request wait effect var prm = Sys.WebForms.PageRequestManager.getInstance(); prm.add_pageLoaded(function(sender, args) { }); prm.add_initializeRequest(function(sender, args) { }); prm.add_beginRequest(function(sender, args) { ShowAjaxLoading(); }); prm.add_endRequest(function(sender, args) { HideAjaxLoading(); $(document).trigger("asyncReady"); // invoke asyncReady event }); // Google Analytics Code Section try { var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); var pageTracker = _gat._getTracker("UA-171462-1"); pageTracker._trackPageview(); } catch (err) {}