//http://docs.jquery.com/Using_jQuery_with_Other_Libraries
jQuery.noConflict();
//Page Load
addthis_pub="WebSolutionsInc";addthis_options="email,favorites,facebook,myspace,digg,google,linkedin,more";addthis_logo="http://www.websolutions.com/images/WebSolutions-logo.gif";addthis_logo_color="666666";var addthisJsHost=(("https:"==document.location.protocol)?"https://secure.":"http://s7.");document.write(unescape("%3Cscript src='"+addthisJsHost+"addthis.com/js/152/addthis_widget.js' type='text/javascript'%3E%3C/script%3E"));window.addEvent("domready",function(){$$(".wsManagementBtn").each(function(a){a.inject("wsManagementBarLeft","bottom")});$$(".Menu").each(function(a){if($defined(a.getElement("img"))){if(!a.getElement("img").get("src").contains("-on.")){a.getParent().addEvent("mouseover",function(){if(!a.getElement("img").get("src").contains("-hover.")){a.getElement("img").set("src",a.getElement("img").get("src").replace(".","-hover."))}});a.getParent().addEvent("mouseout",function(){a.getElement("img").set("src",a.getElement("img").get("src").replace("-hover.","."))})}}});$$(".addThis").each(function(a){a.addEvent("mouseover",function(){return addthis_open(this,"","[URL]","[TITLE]")});a.addEvent("mouseout",function(){addthis_close()});a.addEvent("click",function(){return addthis_sendto()})});$$(".printPage").each(function(a){a.addEvent("click",function(b){var b=new Event(b).stop();window.print()})});$$(".scrollTop").each(function(a){a.addEvent("click",function(b){var b=new Event(b).stop();new Fx.Scroll(window).toTop()})});$$(".dhtmlMenu").each(function(a){new DropdownMenu(a)});$$(".wsManagementLinks a").each(function(a){if(a.get("href")=="#"){a.addEvent("click",function(b){var b=new Event(b).stop()})}});$$('form').each(function(form){new FormCheck(form,{display:{showErrors:0,closeTipsButton:0,flashTips:1,tipsOffsetY:5}});});$$('input.DatePicker').each( function(el){new DatePicker(el);});});
//Dropdown
var DropdownMenu=new Class({initialize:function(a){$A($(a).childNodes).each(function(b){if(b.nodeName.toLowerCase()=="li"){$A($(b).childNodes).each(function(c){if(c.nodeName.toLowerCase()=="ul"){var d=new Fx.Tween($(c),{duration:250});$(c).setStyles({display:"block",visibility:"hidden",opacity:0});b.addEvent("mouseover",function(){b.getElement("a").addClass("hover");d.cancel();d.start("opacity",1);return false});b.addEvent("mouseout",function(){b.getElement("a").removeClass("hover");d.cancel();d.start("opacity",0)});new DropdownMenu(c)}})}});return this}});
//Font Resizer
window.addEvent("domready", function () {
    var b = Cookie.read("FontSize"); if (b == null) { b = Cookie.write("FontSize", "Small", { duration: 180, path: "/" }); } if ($$(".FontResizer").length > 0) { var a = new Asset.css('/includes/style' + Cookie.read("FontSize") + ".css", { id: "style" + Cookie.read("FontSize") }); } $$(".FontResizer").each(function (d) { var c = ""; if (d.hasClass("resizeLarge")) { c = "Large"; } else { if (d.hasClass("resizeMedium")) { c = "Medium"; } else { c = "Small"; } } if (Cookie.read("FontSize") == c) { d.addClass("on"); } d.addEvent("click", function (e) { e = new Event(e).stop(); if ($defined(a)) { a.destroy(); } b = Cookie.write("FontSize", c, { duration: 180, path: "/" }); a = new Asset.css('/includes/style' + Cookie.read("FontSize") + ".css", { id: "style" + Cookie.read("FontSize") }); $$(".FontResizer").each(function (f) { f.removeClass("on"); }); d.addClass("on"); }); });

    //updated dhtml menu - last two items
    try {
        $('Menu6').getParent('li').getFirst('ul').setStyle("left", "auto");
        $('Menu6').getParent('li').getFirst('ul').setStyle("right", "0px");
        $('Menu7').getParent('li').getFirst('ul').setStyle("left", "auto");
        $('Menu7').getParent('li').getFirst('ul').setStyle("right", "0px");
    }
    catch (err) {
        //alert(err);
    }
});
