
var flashvars = {};
flashvars.xml = "assets/flash/config_shapeshifter.xml";
flashvars.font = "assets/flash/font.swf";
var attributes = {};
attributes.wmode = "transparent";
attributes.id = "slider";
swfobject.embedSWF("assets/flash/cu3er.swf", "cu3er-container", "590", "300", "9", "expressInstall.swf", flashvars, attributes);

$(document).ready(function(){
					   	
	// LocalScroll w/ #hash support	
	$.localScroll.hash({
		target: 'body', // Could be a selector or a jQuery object too.
		queue:true,
		offset: {top:-39},
		duration:1500
	});

	/* 	$('#navigation,#tophat').localScroll({ */
	$.localScroll({
		target: 'body', // could be a selector or a jQuery object too.
		queue:true,
		duration:1000,
		hash:true,
		offset: {top:-39},
		onBefore:function( e, anchor, $target ){
			// The 'this' is the settings object, can be modified
		},
		onAfter:function( anchor, settings ){
			// The 'this' contains the scrolled element (#content)
		}
	});
	
	// init gMap
	$('#map_canvas').googleMaps({
	    	latitude: 42.351505,
	        longitude: -103.094455,
			depth: 4,
			scroll: false,
			controls: {
				type: {control: 'GMapTypeControl'},
				zoom: {control: 'GLargeMapControl3D'},
				mapType: [{ remove: 'G_SATELLITE_MAP' }, { remove: 'G_HYBRID_MAP' }]
			},
			feed: 'http://nsibrew.com/assets/kml/clientMap3.kml'
	});
	// init ColorBox
	$("a[rel^='gallery']").colorbox({speed:"1000"});
	
});
