/* component rotateTabs start */
$.fn.rotateTabs = function(options) { var theTab = $(this);	var stop = 0; var tOout = ""; setTimeout("rotStart()", options.firstChangeSpeed); $("a", theTab).mouseover(function() { clearTimeout(tOout);tOout = null;$(this).rotSel();return false;});	
	$("a", theTab).add($("#rotator")).mouseout(function() {	tOout = setTimeout("rotStart()", options.restartChangeSpeed);return false;}); $("a", theTab).click(function(){return false;})
	$("#rotator").mouseover(function() { clearTimeout(tOout);tOout = null;return false;});	
	rotStart = function() {	if($("a.sel", theTab).length == 0 || $("a.sel", theTab).attr("href") == $("a:last", theTab).attr("href"))$("a:first", theTab).rotSel(); else  $("a.sel", theTab).parent().next().find("a", theTab).rotSel(); }

	$.fn.rotSel = function() {if(!$(this).addClass("sel").parent().hasClass('on')) { $("#"+options.rotatePannelID+" div").fadeOut(options.outSpeed).hide();	$($(this).attr("href")).fadeIn(options.inSpeed);
		$($(this).attr("href") + " div").show(); $("a", theTab).removeClass("sel").parent().removeClass("on");	$(this).addClass("sel").parent().addClass("on");}
		clearTimeout(tOout);if(tOout != null)tOout = setTimeout("rotStart()", options.changeSpeed);}
};
/* component rotateTabs end */
