/*
 *	jQuery Innerfade
 *  This plugin is used on the homepage.
*/


/* Application Showcase */
jQuery.noConflict();	
	jQuery(document).ready(function(){  	
		jQuery('#slider').innerfade({
				animationtype: 'fade', 
				speed: '3000',
				timeout: 7000,
				type: 'sequence',
				containerheight: 'auto'
		});	
});

/* Client Testimonials */
jQuery.noConflict();	
	jQuery(document).ready(function(){  	
		jQuery('#slider2').innerfade({
				animationtype: 'fade', 
				speed: '3000',
				timeout: 5000,
				type: 'sequence',
				containerheight: 'auto'
		});	
});

/* Screenshots */
jQuery.noConflict();	
	jQuery(document).ready(function(){ 
		jQuery('.boxgrid.captionfull').hover(function(){ //On hover...
			jQuery(".cover", this).fadeIn("fast");
		}, 
		function() { //On hover out...
			jQuery(".cover", this).fadeOut("fast");
		});

});

/* Table Style */
jQuery.noConflict();	
	jQuery(document).ready(function(){  	
		//jQuery("#table-a tr:odd").addClass("alt");	 class="tblSwitch"
        jQuery("table.tblSwitch tbody tr:even").addClass("alt");
	});
	
/* Lightbox */
jQuery.noConflict();	
    jQuery(document).ready(function(){
        jQuery('.boxgrid a').lightBox();
    });

jQuery(document).ready(function($){
        
        // When a link is clicked
        $("a.tab").click(function () {
            
            
            // switch all tabs off
            $(".active").removeClass("active");
            
            // switch this tab on
            $(this).addClass("active");
            
            // slide all content up
            $(".tabcontent").slideUp();
            
            // slide this content up
            var content_show = $(this).attr("title");
            $("#"+content_show).slideDown();
          
        });
    
      });
