/*
* jQuery Baur Simple-Drop-Down Plugin $Revision: 1.3 $ - $Date: 2011/05/10 09:09:52 $
* @requires jQuery v1.3.2 or later 
* $Author: shollstein $
* Copyright: BAUR Versand, 96222 Burgkunstadt
* Doc: http://docs.jquery.com/Plugins/Authoring
* minified version created with : http://compressorrater.thruhere.net/ Compressor: YUI Compressor, Options: preserveAllSemi, disableOpt
*/
(function(b){var c={selectorDropDownHeader:".simpleDropDownHeader",selectorDropDownOptions:".simpleDropDownOptions",nameOfHoverClass:"simpleDropDownHover",cssSkipParameter:{position:"absolute",left:"-9999px",top:"-9999px",width:"auto",height:"auto"},borderSpacing:2,maxHeight:300,callFunctionAfterSuccess:function(){},debug:false,debugOuputMessagePrefix:"Baur Simple-Drop-Down : "};var a={init:function(e){var e=jQuery.extend({},c,e);var d=jQuery(this);if(d.length>0){if(e.debug){a.debugOutput({error:d});}d.hover(function(){var k=jQuery(this);var g=jQuery(e.selectorDropDownHeader,k);var i=g.position();var j=g.outerHeight();var f=g.outerWidth();if(!g.hasClass("active")){g.addClass(e.nameOfHoverClass);}var h=jQuery(e.selectorDropDownOptions,k);if(f>h.outerWidth()){h.width(Math.abs(f-e.borderSpacing));}if(e.maxHeight<h.outerHeight()){h.height(e.maxHeight).width(Math.abs(h.width()+18));}h.css({position:"absolute",left:i.left+"px",top:Math.abs(i.top+j)+"px"});},function(){var g=jQuery(this);var f=jQuery(e.selectorDropDownHeader,g);if(!f.hasClass("active")){f.removeClass(e.nameOfHoverClass);}jQuery(e.selectorDropDownOptions,g).css(e.cssSkipParameter);});e.callFunctionAfterSuccess();}else{if(e.debug){a.debugOutput({error:"no animation container found!"});}}},getActiveElements:function(e){var e=jQuery.extend({currentReturnValue:new Array()},e||{});e=jQuery.extend({},c,e);if(e.debug){a.debugOutput({error:"getActiveElements:"});}var d=jQuery(this);if(d.length>0){jQuery(e.selectorDropDownHeader+".active",d).each(function(){e.currentReturnValue.push(jQuery(this).text());});}if(e.debug){a.debugOutput({error:e.currentReturnValue});}return e.currentReturnValue;},debugOutput:function(e){var e=jQuery.extend({error:null,debugOuputMessagePrefix:""},e||{});e=jQuery.extend({},c,e);if(e.error&&(("console" in window)&&("firebug" in console))){d();}function d(){var f=(typeof(e.error)=="object"?e.error:e.debugOuputMessagePrefix+e.error);console.log(f);}}};jQuery.fn.simpledropdown=function(d){if(a[d]){return a[d].apply(this,Array.prototype.slice.call(arguments,1));}else{if(typeof d==="object"||!d){return a.init.apply(this,arguments);}else{jQuery.error("Method "+d+" does not exist on jQuery.simpledropdown");}}};})(jQuery);
