/* Name: jQuery Simple Drop Down Plugin Author: Etienne Fardet Version: 1.3 Comments: Packed version */ (function($){$.simpledropdown=function(a){$(a).children("ul").addClass("dropdown");$("ul.dropdown>li:first-child").addClass("selected");$("ul.dropdown>li").not(".dropdown>li:first-child").addClass("drop");$(a).prepend("
");var b=['TopLeft','TopMiddle','TopRight','VerticalLeft','Middle','VerticalRight'];var c=['BottomLeft','BottomMiddle','BottomRight'];var d=['BottomLeftSelected','BottomMiddleSelected','BottomRightSelected'];for(i in b){e=$("
").attr("class",b[i]);$(".mycorners").append(e)}for(i in c){f=$("
").attr("class",c[i]);$(".drop").append(f)}$("ul.dropdown").bind("click",function(){var g=$(this).parent().attr("id")=='undefined'?"."+$(this).parent().attr("class"):"#"+$(this).parent().attr("id");var h=$(this).find(".drop ul li");var j=$(this).find(".selected");$(g+" ul.dropdown").toggleClass("current");h.slideToggle("fast",function(){h.click(function(){var k=$(this).text();j.text(k).fadeOut(5,function(){$(this).fadeIn(400)})})});$(g+" .current ul li:last-child").hover(function(){for(i in c){$(g+" .current").parents("div").find("."+c[i]).toggleClass(d[i])}});if(!$(g+" ul.dropdown").hasClass("current"))$(g+" ul.dropdown").toggleClass("current")})}})(jQuery);