	$(document).ready(function() {
$(".about-main").hide();
$(".about-main").fadeIn();
});	

$(function() {
$('#s1').cycle({ 
    fx:     'fade', 
    prev:   '.nav-back', 
    next:   '.nav-next', 
	speed: 800,
	timeout: 0,
	pager:  '.about-nav-pager'
});
});


$(function () {
		$('img').hide();//hide all the images on the page
		
		$('.portfolio-images dt').hide();
		$('.portfolio-images-nolink').hide();
		$('.extra-info-1').hide();
		$('.extra-info-2').hide();
		$('.extra-info-3').hide();
		$('.extra-info-4').hide();
		$('.extra-info-5').hide();
		$('.extra-info-6').hide();
		
		$('.header img').show();
		$('.divider-portfolio img').show();
	});

	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)",500);//500 is the fade in speed in milliseconds
	});

	function doThis() {
		var images = $('img').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
		}
		$('img:hidden').eq(0).fadeIn(500);//fades in the hidden images one by one
		i++;//add 1 to the count
		$('.portfolio-images dt:hidden').fadeIn(2000);
		$('.portfolio-images-nolink:hidden').fadeIn(2000);
		$('.extra-info-1:hidden').fadeIn(2000);
		$('.extra-info-2:hidden').fadeIn(2000);
		$('.extra-info-3:hidden').fadeIn(2000);
		$('.extra-info-4:hidden').fadeIn(2000);
		$('.extra-info-5:hidden').fadeIn(2000);
		$('.extra-info-6:hidden').fadeIn(2000);
		$("../../portfolio/_img/ajax-loader.gif img").hide();
	}
/*
$(document).ready(function(){ 
$("#preloader")[0].css("display","none");
$("#container")[0].css("display","block");
});


document.body.style.visibility= 'hidden';
window.onload= function() { document.body.style.visibility= 'visible'; };
*/

$(function() {
$('#portfolio-container').cycle({ 
    fx:     'fade', 
    prev:   '.nav-back-2', 
    next:   '.nav-next-2',
	startingSlide: 0,
	speed: 800,
	timeout: 0,
	pager:  '#pf-list',
	pagerAnchorBuilder: function(idx, slide) { 
        // return selector string for existing anchor 
        return '#pf-list li:eq(' + idx + ') a'; 
    }
	/*$('#direct').click(function() { 
        $('#pf-list li:eq(2) a').trigger('click'); 
        return false; 
    });*/ 
});
});



/*
$(document).ready(function() {
$(".portfolio-info").hide();
$("li.portfolio-info:first-child").fadeIn();
$("#pf-list li:first-child").fadeTo("slow", 0.5);


$("#pf-list li a").click(function() {
clicked_on = $("#pf-list li a").index($(this));
$(".portfolio-info").fadeOut();
$(".portfolio-info:eq("+clicked_on+")").fadeIn();
$(this).fadeTo("slow", 0.5);;
});

$("#pf-list li:first-child").click(function() {
$(this).fadeTo("slow", 1)
});
});
*/


function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
				
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
				
function MM_findObj(n, d) { //v4.01
var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
				
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}			