/* Author: 

*/

$(document).ready(function(){

		$('#promo').css("height", "150px");

	});

///////////////////////////////////ColorBox
$(document).ready(function(){
			//Examples of how to assign the ColorBox event to elements
			//$(".group1").colorbox({rel:'group1'});
			//$(".group2").colorbox({rel:'group2', transition:"fade"});
			//$(".group3").colorbox({rel:'group3', transition:"none", width:"75%", height:"75%"});
			//$(".group4").colorbox({rel:'group4', slideshow:true});
			//$(".ajax").colorbox();
			//$(".youtube").colorbox({iframe:true, innerWidth:425, innerHeight:344});
			//$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
			//$(".inline").colorbox({inline:true, width:"50%"});
			//$(".callbacks").colorbox({
			//	onOpen:function(){ alert('onOpen: colorbox is about to open'); },
			//	onLoad:function(){ alert('onLoad: colorbox has started to load the targeted content'); },
			//	onComplete:function(){ alert('onComplete: colorbox has displayed the loaded content'); },
			//	onCleanup:function(){ alert('onCleanup: colorbox has begun the close process'); },
			//	onClosed:function(){ alert('onClosed: colorbox has completely closed'); }
			//});
			
			//Example of preserving a JavaScript event for inline calls.
			$("#click").click(function(){ 
				$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
				return false;
			});
		});




///////////////////////////////////jflickr
$(document).ready(function(){

	$('#portfolio-1').jflickrfeed({
		limit: 14,
		qstrings: {
			set: '72157628025840587', 
			nsid: '69620971@N07'
		},
		itemTemplate: '<li>'+
						'<a rel="colorbox" href="{{image}}" title="{{title}}">' +
							'<img src="{{image_s}}" alt="{{title}}" />' +
						'</a>' +
					  '</li>'
	}, function(data) {
		$('#portfolio-1 a').colorbox();
	});
	
		$('#portfolio-2').jflickrfeed({
		limit: 14,
		qstrings: {
			set: '72157628025524117', 
			nsid: '69620971@N07'
		},
		itemTemplate: '<li>'+
						'<a rel="colorbox" href="{{image}}" title="{{title}}">' +
							'<img src="{{image_s}}" alt="{{title}}" />' +
						'</a>' +
					  '</li>'
	}, function(data) {
		$('#portfolio-2 a').colorbox();
	});
		
		$('#portfolio-3').jflickrfeed({
		limit: 14,
		qstrings: {
			set: '72157628025468797', 
			nsid: '69620971@N07'
		},
		itemTemplate: '<li>'+
						'<a rel="colorbox" href="{{image}}" title="{{title}}">' +
							'<img src="{{image_s}}" alt="{{title}}" />' +
						'</a>' +
					  '</li>'
	}, function(data) {
		$('#portfolio-3 a').colorbox();
	});
		
		$('#portfolio-4').jflickrfeed({
		limit: 14,
		qstrings: {
			set: '72157628018999665', 
			nsid: '69620971@N07'
		},
		itemTemplate: '<li>'+
						'<a rel="colorbox" href="{{image}}" title="{{title}}">' +
							'<img src="{{image_s}}" alt="{{title}}" />' +
						'</a>' +
					  '</li>'
	}, function(data) {
		$('#portfolio-4 a').colorbox();
	});
		
		$('#portfolio-5').jflickrfeed({
		limit: 14,
		qstrings: {
			set: '72157628143952428', 
			nsid: '69620971@N07'
		},
		itemTemplate: '<li>'+
						'<a rel="colorbox" href="{{image}}" title="{{title}}">' +
							'<img src="{{image_s}}" alt="{{title}}" />' +
						'</a>' +
					  '</li>'
	}, function(data) {
		$('#portfolio-5 a').colorbox();
	});
		
		$('#portfolio-6').jflickrfeed({
		limit: 14,
		qstrings: {
			set: '72157628018870563', 
			nsid: '69620971@N07'
		},
		itemTemplate: '<li>'+
						'<a rel="colorbox" href="{{image}}" title="{{title}}">' +
							'<img src="{{image_s}}" alt="{{title}}" />' +
						'</a>' +
					  '</li>'
	}, function(data) {
		$('#portfolio-6 a').colorbox();
	});
		
		$('#portfolio-7').jflickrfeed({
		limit: 14,
		qstrings: {
			set: '72157628018834693', 
			nsid: '69620971@N07'
		},
		itemTemplate: '<li>'+
						'<a rel="colorbox" href="{{image}}" title="{{title}}">' +
							'<img src="{{image_s}}" alt="{{title}}" />' +
						'</a>' +
					  '</li>'
	}, function(data) {
		$('#portfolio-7 a').colorbox();
	});
		
		$('#portfolio-8').jflickrfeed({
		limit: 14,
		qstrings: {
			set: '72157628018255893', 
			nsid: '69620971@N07'
		},
		itemTemplate: '<li>'+
						'<a rel="colorbox" href="{{image}}" title="{{title}}">' +
							'<img src="{{image_s}}" alt="{{title}}" />' +
						'</a>' +
					  '</li>'
	}, function(data) {
		$('#portfolio-8 a').colorbox();
	});
		
		$('#portfolio-9').jflickrfeed({
		limit: 14,
		qstrings: {
			set: '72157628143150154', 
			nsid: '69620971@N07'
		},
		itemTemplate: '<li>'+
						'<a rel="colorbox" href="{{image}}" title="{{title}}">' +
							'<img src="{{image_s}}" alt="{{title}}" />' +
						'</a>' +
					  '</li>'
	}, function(data) {
		$('#portfolio-9 a').colorbox();
	});
		
		$('#portfolio-10').jflickrfeed({
		limit: 14,
		qstrings: {
			set: '72157628018055775', 
			nsid: '69620971@N07'
		},
		itemTemplate: '<li>'+
						'<a rel="colorbox" href="{{image}}" title="{{title}}">' +
							'<img src="{{image_s}}" alt="{{title}}" />' +
						'</a>' +
					  '</li>'
	}, function(data) {
		$('#portfolio-10 a').colorbox();
	});
		
		$('#portfolio-11').jflickrfeed({
		limit: 14,
		qstrings: {
			set: '72157628017784603', 
			nsid: '69620971@N07'
		},
		itemTemplate: '<li>'+
						'<a rel="colorbox" href="{{image}}" title="{{title}}">' +
							'<img src="{{image_s}}" alt="{{title}}" />' +
						'</a>' +
					  '</li>'
	}, function(data) {
		$('#portfolio-11 a').colorbox();
	});
		
		
});



//////////////////////////////fullscreen jQuery(function($){
				
		jQuery(function($){
			$.supersized({
			
				//Functionality
				slideshow               :   1,		//Slideshow on/off
				autoplay				:	1,		//Slideshow starts playing automatically
				start_slide             :   1,		//Start slide (0 is random)
				random					: 	0,		//Randomize slide order (Ignores start slide)
				slide_interval          :   5000,	//Length between transitions
				transition              :   1, 		//0-None, 1-Fade, 2-Slide Top, 3-Slide Right, 4-Slide Bottom, 5-Slide Left, 6-Carousel Right, 7-Carousel Left
				transition_speed		:	750,	//Speed of transition
				new_window				:	1,		//Image links open in new window/tab
				pause_hover             :   0,		//Pause slideshow on hover
				keyboard_nav            :   1,		//Keyboard navigation on/off
				performance				:	1,		//0-Normal, 1-Hybrid speed/quality, 2-Optimizes image quality, 3-Optimizes transition speed // (Only works for Firefox/IE, not Webkit)
				image_protect			:	1,		//Disables image dragging and right click with Javascript
				image_path				:	'img/', //Default image path
				
				//Size & Position
				min_width		        :   0,		//Min width allowed (in pixels)
				min_height		        :   0,		//Min height allowed (in pixels)
				vertical_center         :   1,		//Vertically center background
				horizontal_center       :   1,		//Horizontally center background
				fit_portrait         	:   1,		//Portrait images will not exceed browser height
				fit_landscape			:   0,		//Landscape images will not exceed browser width  
				
				//Components
				navigation              :   1,		//Slideshow controls on/off
				thumbnail_navigation    :   1,		//Thumbnail navigation
				slide_counter           :   1,		//Display slide numbers
				slide_captions          :   1,		//Slide caption (Pull from "title" in slides array)
				
				//Flickr
				source					:	1,						//1-Set, 2-User, 3-Group
				set                     :   '72157628026781579', 				//Flickr set ID (found in URL)
				user					:	'69620971@N07',				//Flickr user ID (http://idgettr.com/)
				group					:	'######', 				//Flickr group ID (http://idgettr.com/)
				total_slides			:	100,					//How many pictures to pull (Between 1-500)
				image_size              :   'b', 					//Flickr Image Size - t,s,m,z,b  (Details: http://www.flickr.com/services/api/misc.urls.html)
				
				/**
	    		FLICKR API KEY
	    		NEED TO GET YOUR OWN -- http://www.flickr.com/services/apps/create/
	    		**/
				api_key					:	'4dd45c83acb28f30329309e9bc1fbc87'		//Flickr API Key
				//secret                :   'a3145406f8557e6a	' 
			}); 
		});		


  WebFontConfig = {
    google: { families: [ 'Abel::latin', 'Cantarell:400,700,400italic,700italic:latin', 'Megrim::latin' ] }
  };
  (function() {
    var wf = document.createElement('script');
    wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
      '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
    wf.type = 'text/javascript';
    wf.async = 'true';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(wf, s);
  })(); 















