/* create a timeOut function in jQuery */
jQuery.fn.idle = function(time){
    return this.each(function(){
        var i = $(this);
        i.queue(function(){
            setTimeout(function(){
            i.dequeue();
            }, time);
        });
    });
};

$(document).ready(function(){

	// more info 
	$("a.moreInfo").fancybox();

	if (document.getElementById("portfolioNavWrapper")){
		// portfolio carousel
		$('#mycarousel').jcarousel({
			wrap: 'circular'
		});
	}

	// portfolio
	if (document.getElementById("contentPortfolio")){
		
		//$("#contentPortfolio a").fancybox();
		$("#contentPortfolio a[href$=.jpg],a[href$=.png],a[href$=.gif]").fancybox();
	
	}
});



