// Tabs | Addons
jQuery(document).ready(function($) {
$(".tab_content").hide(); //Hide all content
$("ul.tabs li:first").addClass("active").show(); //Activate first tab
$(".tab_content:first").show(); //Show first tab content
$("ul.tabs li").click(function() {
$("ul.tabs li").removeClass("active"); //Remove any "active" class
$(this).addClass("active"); //Add "active" class to selected tab
$(".tab_content").hide(); //Hide all tab content
var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
$(activeTab).show(); //Fade in the active ID content
return false;
});
});

// PNG Fix
$.noConflict();
jQuery(document).ready(function($) {
 $(document).pngFix( );
});
// Website table hover
jQuery(function($) {
$('.hover').tooltip({
	track: true,
	delay: 0,
	showURL: false,
	showBody: " - ",
	extraClass: "hover",
	fixPNG: true,
	left:0
});
});
// Accordion
jQuery(document).ready(function($) {
$('.accordion').accordion({
    collapsible:true,
	active:true
});
});
// Accordion image Hover
jQuery(function($) {
$('img.imageTooltip').tooltip({
delay: 0,
showURL: false,
bodyHandler: function() {
return $("<img/>").attr("src", this.src);
}
});
});
// Accordion image Hover - custom design
jQuery(function($) {
$('img.exampleImageTooltip').tooltip({
delay: 0,
showURL: false,
bodyHandler: function() {
return $("<img/>").attr("src", this.src);
}
});
});
// Template Slider
function formatText(index, panel) {
return index + "";
}
jQuery(function($) {
$('.templateSlider').windowSlider({
easing:"easeInOutExpo",
autoPlay:true,
delay: 12000,
startStopped:false,
animationTime:800,
hashTags:false,
pauseOnHover:true,
navigationFormatter:formatText
});
$(".slide-jump").click(function(){
$('.templateSlider').windowSlider(5);
});
})