/**
 * native.js
 */

var mynative = {
	
	init: function() {
		
		mynative.resize_footer();
		mynative.slideshow();
		
		$(".gallery-items").yoxview({dataFolder:"/assets/js/yoxview/data/", lang:"en"});
		
		$('._blank').click(function() {
			window.open( $(this).attr('href') );
			return false;
		});
	}
	
	,resize_footer: function() {
	}

	,slideshow: function() {
		
		var len = $('.inner-image img').length;

		if( len > 1 ) {
			$(window).load(function() {
				$('.inner-image').cycle({
					fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
				});
			});
		}
		
	}

	
};

$(document).ready(mynative.init);
