/* ************************************************************************* */
					/* ANIMATED PRELOADER EFFECT */
/* ************************************************************************* */
 $(document).ready(function () {
	$('.attachment-fadeIn').hide();//hide all the images on the page
	});

	var i = 0;//initialize
	var int=0;//Internet Explorer Fix
	$(window).bind("load", function() {//The load event will only fire if the entire page or document is fully loaded
		int = setInterval("doThis(i)",500);
	});

	function doThis() {
		var images = $('.attachment-fadeIn').length;//count the number of images on the page
		if (i >= images) {// Loop the images
			clearInterval(int);//When it reaches the last image the loop ends
			delete int;
		}
		$('.attachment-fadeIn:hidden').eq(0).fadeIn(500);//fades in the hidden images one by one
		i++;//add 1 to the count
	} 

/* ************************************************************************* */
					/* GALLERY PAGE POP-UPS */
/* ************************************************************************* */

/* FULL DETAILS ABOUT PLUGIN HERE: http://www.pirolab.it/pirobox/ */


    $(document).ready(function() {
	$().piroBox({
			my_speed: 600, //animation speed
			bg_alpha: 0.5, //background opacity
			radius: 4, //caption rounded corner
			scrollImage : false, // true == image follows the page, false == image remains in the same open position
			pirobox_next : 'piro_next_out', // Nav buttons -> piro_next == inside piroBox , piro_next_out == outside piroBox
			pirobox_prev : 'piro_prev_out',// Nav buttons -> piro_prev == inside piroBox , piro_prev_out == outside piroBox
			close_all : '.piro_close',// add class .piro_overlay(with comma)if you want overlay click close piroBox
			slideShow : 'false', // just delete slideshow between '' if you don't want it.
			slideSpeed : 3 //slideshow duration in seconds(3 to 6 Recommended)
	});
});

/* ************************************************************************* */
					/* AUTOMATIC TABLE ROW HIGHLIGHTING */
/* ************************************************************************* */
$(document).ready(function() {

$('table tr:odd').addClass('odd');
$('table tr:even').addClass('even');

});


