jQuery.noConflict()(function(){
(function (c) {
	c.fn.tabs = function (a) {
		var b = {
			activeTab: 0
		};
		a = c.extend(b, a);
		return this.each(function () {
			c(this).addClass('activeTab');
			c(this).find('ul.tabs').addClass('activeTab');
			c(this).find('ul li a').removeClass('active');
			c(this).find('ul li a').eq(a.activeTab).addClass('active');
			c(this).children('div').removeClass('show');
			c(this).children('div').eq(a.activeTab).addClass('show');
			sentTabs()
		})
	};
	c(document).ready(function () {
		c('ul.tabs li a').click(function () {
			whichActiveTab = c(this).parent().parent().children().children().index(this);
			c(this).parent().parent().find('li a').each(function () {
				c(this).removeClass('active')
			});
			c(this).addClass('active');
			tabSet = c(this).parent().parent().siblings();
			c(tabSet).each(function () {
				c(this).removeClass('show')
			});
			c(tabSet).eq(whichActiveTab).addClass('show');
			return false
		});
		sentTabs = function () {
			whereitat = window.location + "";
			splitUrl = whereitat.split("#");
			var i = 0;
			currentTabs = new Array();
			c("div.tabs").children("div").each(function () {
				currentTabs[i] = c(this).attr("id");
				i += 1
			});
			for (j = 0; j < currentTabs.length; j++) {
				if (currentTabs[j] == splitUrl[1] || (currentTabs[j] + "/") == splitUrl[1]) {
					c("div.activeTab").find('ul li a').removeClass('active');
					c("div.activeTab").find('ul li a').eq(j).addClass('active');
					c("div.activeTab").children('div').removeClass('show');
					c("div.activeTab").children('div').eq(j).addClass('show')
				}
			}
		}
	})
})(jQuery);
});
