// shadow box start //
Shadowbox.loadSkin('classic', 'skin/');
Shadowbox.loadLanguage('en', 'build/lang');
Shadowbox.loadPlayer(['swf','img'], 'build/player');
window.onload = function(){
    Shadowbox.init();
};

jQuery(document).ready(function($) {
	// for the image scroller on the address/map page //
	$('#home_pics')
	.cycle({
	fx:     'fade',
	speed:  'slow',
	timeout: 0,
		pager:  '.nav_map',
	    pagerAnchorBuilder: function(idx, slide) {
	        // return selector string for existing anchor
	        return '.nav_map li:eq(' + idx + ') a';
	    }
		});
		
		
		//portfolio bubbles //
		$(".port1 a").hoverIntent(
			function() {
		  	$(this).next("div").animate({opacity: "show", top: "187"}, "slow");
			}, 
			function() {
		  	$(this).next("div").animate({opacity: "hide", top: "177"}, "fast");
			} 
		);
		$(".port2 a").hoverIntent(
			function() {
		  	$(this).next("div").animate({opacity: "show", top: "187"}, "slow");
			}, 
			function() {
		  	$(this).next("div").animate({opacity: "hide", top: "177"}, "fast");
			} 
		);
		$(".port3 a").hoverIntent(
			function() {
		  	$(this).next("div").animate({opacity: "show", top: "187"}, "slow");
			}, 
			function() {
		  	$(this).next("div").animate({opacity: "hide", top: "177"}, "fast");
			} 
		);
		$(".port4 a").hoverIntent(
			function() {
		  	$(this).next("div").animate({opacity: "show", top: "278"}, "slow");
			}, 
			function() {
		  	$(this).next("div").animate({opacity: "hide", top: "268"}, "fast");
			} 
		);
		$(".port5 a").hoverIntent(
			function() {
		  	$(this).next("div").animate({opacity: "show", top: "278"}, "slow");
			}, 
			function() {
		  	$(this).next("div").animate({opacity: "hide", top: "268"}, "fast");
			} 
		);
		$(".port6 a").hoverIntent(
			function() {
		  	$(this).next("div").animate({opacity: "show", top: "278"}, "slow");
			}, 
			function() {
		  	$(this).next("div").animate({opacity: "hide", top: "268"}, "fast");
			} 
		);
		$(".port7 a").hoverIntent(
			function() {
		  	$(this).next("div").animate({opacity: "show", top: "368"}, "slow");
			}, 
			function() {
		  	$(this).next("div").animate({opacity: "hide", top: "358"}, "fast");
			} 
		);
		$(".port8 a").hoverIntent(
			function() {
		  	$(this).next("div").animate({opacity: "show", top: "368"}, "slow");
			}, 
			function() {
		  	$(this).next("div").animate({opacity: "hide", top: "358"}, "fast");
			} 
		);
		$(".port9 a").hoverIntent(
			function() {
		  	$(this).next("div").animate({opacity: "show", top: "368"}, "slow");
			}, 
			function() {
		  	$(this).next("div").animate({opacity: "hide", top: "358"}, "fast");
			} 
		);
		$(".port_demo a").hoverIntent(
			function() {
		  	$(this).next("div").animate({opacity: "show", top: "250"}, "slow");
			}, 
			function() {
		  	$(this).next("div").animate({opacity: "hide", top: "228"}, "fast");
			} 
		);
})