//all image preload
$(function () {
			$('.listserv img').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
			var int = setInterval("doThis(i)",300);//500 is the fade in speed in milliseconds
		});

		function doThis() {
			var imgs = $('img').length;//count the number of images on the page
			if (i >= imgs) {// Loop the images
				clearInterval(int);//When it reaches the last image the loop ends
			}
			$('img:hidden').eq(0).fadeIn(500);//fades in the hidden images one by one
			i++;//add 1 to the count
		}


 //all image preload
$(function () {
			$('.nextsect img').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
			var int = setInterval("doThis(i)",300);//500 is the fade in speed in milliseconds
		});

		function doThis() {
			var imgs = $('img').length;//count the number of images on the page
			if (i >= imgs) {// Loop the images
				clearInterval(int);//When it reaches the last image the loop ends
			}
			$('img:hidden').eq(0).fadeIn(500);//fades in the hidden images one by one
			i++;//add 1 to the count
		}


    //all image preload
$(function () {
			$('.portf img').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
			var int = setInterval("doThis(i)",300);//500 is the fade in speed in milliseconds
		});

		function doThis() {
			var imgs = $('img').length;//count the number of images on the page
			if (i >= imgs) {// Loop the images
				clearInterval(int);//When it reaches the last image the loop ends
			}
			$('img:hidden').eq(0).fadeIn(500);//fades in the hidden images one by one
			i++;//add 1 to the count
		}


//fade effect   to image
 jQuery(window).load(function() {
	jQuery(".portf").show();
	jQuery(".portf img").fadeTo('normal', 1, function() {
		$get_id = jQuery(this).parent().parent().attr("class");
		if($get_id != ""){
			jQuery(this).parent().parent().addClass($get_id);
			$(this).hover(function(){
				$(this).fadeTo('normal', 0.5);

			}, function() {
					$(this).fadeTo('normal', 1);
			});
		}
    });
});



//fade effect   to image
 jQuery(window).load(function() {
	jQuery(".listserv").show();
	jQuery(".listserv img").fadeTo('normal', 1, function() {
		$get_id = jQuery(this).parent().parent().attr("class");
		if($get_id != ""){
			jQuery(this).parent().parent().addClass($get_id);
			$(this).hover(function(){
				$(this).fadeTo('normal', 0.5);

			}, function() {
					$(this).fadeTo('normal', 1);
			});
		}
    });
});

//fade effect   to image
 jQuery(window).load(function() {
	jQuery(".nextsect").show();
	jQuery(".nextsect img").fadeTo('normal', 1, function() {
		$get_id = jQuery(this).parent().parent().attr("class");
		if($get_id != ""){
			jQuery(this).parent().parent().addClass($get_id);
			$(this).hover(function(){
				$(this).fadeTo('normal', 0.5);

			}, function() {
					$(this).fadeTo('normal', 1);
			});
		}
    });
});


