$(function(){
	
	$('div.navigation').css({'width':'460px','float':'left'});
	
	$('div.gallery').css('display', 'block');

	// Galleriffic

	if( $("#gallery").length ) {			
		$('#thumbs').galleriffic({
			imageContainerSel:      '#slideshow',
			loadingContainerSel:    '#loading'
		});
	}
	
	// Call to Action
	
	$("#call-to-action").hide();
	
	if($("#call-to-action").length) {
		$("#call-to-action").show();
		$("#call-to-action").children().hide();
		$("#call-to-action").children("li").each(function(index) {
			$(this).delay((index)*1000).fadeIn(800);
		});
	}
	
	// Pretty Photo
	
	$("a[rel^='prettyPhoto']").each(function() {
		$(this).hover(function() {$(this).children('.zoom').fadeIn(250);}, function() {$(this).children('.zoom').fadeOut(250);});
	})
	.append('<img src="/themes/site_themes/shine/images/build/zoom.png" alt="zoom" class="zoom" />')
	.prettyPhoto({
		showTitle: true,
		counter_separator_label: " of "
	});
	
	// Bubble
	
/*	$('.bubble').CreateBubblePopup({
		innerHtmlStyle: {
			color:'#FFFFFF', 
			'text-align':'center'
		},
		themeName: 	'all-grey',
		themePath: 	'/themes/site_themes/shine/images/jquerybubblepopup-theme'
	});
	
	// Type of Work
	
	$('ul.type-of-work a').click(function() {
		$(this).css('outline','none');
		$('ul.type-of-work .current').removeClass('current');
		$(this).parent().addClass('current');
		var filterVal = $(this).text().toLowerCase().replace(' ','-');		
		if(filterVal == 'all') {
			$('ul.clients li.hidden').fadeIn('slow').removeClass('hidden');
		} else {
			$('ul.clients li').each(function() {
				if(!$(this).hasClass(filterVal)) {
					$(this).fadeOut('normal').addClass('hidden');
				} else {
					$(this).fadeIn('slow').removeClass('hidden');
				}
			});
		}
		return false;
	});	*/
		
});
