/**
 *	jQCombo Plugin v. 1.0
 * 
 * Copyright (c) 2009 Francis David - (http://www.arcticwebsolutions.com)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 */
 
/**
 *	$.jQTabs(string, string, [event type, selected tab])
 *	Params:
 *	- string (string) Specifies a string ID of container which holds the individual tabs
 *	- string (string) Specifies a string ID of container which holds the content for each tab
 *	- object (object) Holds optional parameters
 *		- event type  (string) any event type such as click, mousover etc.
 *		- selected tab (int) index of selected tab
 */

(function($){$.jQTabs=function(tabs,tabsContent,options){var defaults={selected:0,evt:"click"}
var options=$.extend(defaults,options||{});var tabs=$("#"+tabs).children();var tabsContents=$("#"+tabsContent).children();tabs.each(function(){$(this).css("cursor","pointer");$(this).addClass("inactive");$(tabs.get(options.selected)).removeClass("inactive").addClass("active");});$(tabsContents).each(function(){$(this).hide();$(tabsContents.get(options.selected)).show();});$(tabs).bind("mouseover",function(event){$(this).hasClass("active")?$(this).removeClass("onover"):$(this).addClass("onover");event.stopPropagation();}).bind("mouseout",function(event){$(this).removeClass("onover");event.stopPropagation();});$(tabs).bind(options.evt,function(event){if(!$(this).hasClass("active")){tabsContents.each(function(){$(this).hide();});tabs.each(function(){$(this).removeClass("active").css("cursor","pointer").addClass("inactive");});$(this).addClass("active").removeClass("inactive onover");$(tabsContents.get(tabs.index(this))).css("display")=="none"?$(tabsContents.get(tabs.index(this))).stop().show():"";event.stopPropagation();event.preventDefault();}});$(window).unload(function(){$(tabs).unbind();});}})(jQuery);(function($){$.fn.jQSliderToggle=function(options,e,oClicker){var me=$(this);return this.each(function(){var getDemensions=function(){var cssPadding=0;cssPadding=me.css("display")=="none"?"10":"0";return{cssPadding:cssPadding}}
var oGetDem=null;var iSpeed=options.speed;oGetDem=options==null||options!=null?getDemensions():null;if(me.css("display")=="none"){if(options==null||options.iRadioBtnGroupIndex>0||options.iRadioBtnGroupIndex==null){$(this).show("slide",{direction:"up"},iSpeed).parent().css({"height":0}).animate({height:me.outerHeight(true)},iSpeed);options!=null&&options.parentID!=null?$("#"+options.parentID).animate({paddingBottom:oGetDem.cssPadding},iSpeed):"";}}
else{if(options==null||options.iRadioBtnGroupIndex==0||options.iRadioBtnGroupIndex==null){me.hide("slide",{direction:"up"},iSpeed).parent().css("height",me.outerHeight(true)).animate({height:0},iSpeed);options!=null&&options.parentID!=null?$("#"+options.parentID).animate({paddingBottom:oGetDem.cssPadding},iSpeed):"";}}})}})(jQuery);
