jQuery(document).ready(function() {

	/* Use this js doc for all application specific JS */


	<!--  fix ie and ipad z-index problem for drop-down navigation //-->
//	if ($.browser.msie && $.browser.version.substring(0, 1) < 8) {
	//if ($.browser.msie || navigator.userAgent.match(/iPad/i) != null) {
		$(function() {
			var zIndexNumber = 1000;
			$('div').each(function() {
				$(this).css('zIndex', zIndexNumber);
				zIndexNumber -= 10;
			});
		});
	//}



	<!-- Orbit slider //-->
	if ((screen.width>500) && (screen.height>500)) { // exlclude Orbit function for phones
	
		jQuery('#featured').orbit({
			animation: 'fade',                  // fade, horizontal-slide, vertical-slide, horizontal-push
			 animationSpeed: 1500,                // how fast animtions are
			 timer: true, 			 // true or false to have the timer
			 advanceSpeed: 4000, 		 // if timer is enabled, time between transitions 
			 pauseOnHover: false, 		 // if you hover pauses the slider
			 startClockOnMouseOut: false, 	 // if clock should start on MouseOut
			 startClockOnMouseOutAfter: 1000, 	 // how long after MouseOut should the timer start again
			 directionalNav: false, 		 // manual advancing directional navs
			 captions: false, 			 // do you want captions?
			 captionAnimation: 'fade', 		 // fade, slideOpen, none
			 captionAnimationSpeed: 1000, 	 // if so how quickly should they animate in
			 bullets: false,			 // true or false to activate the bullet navigation
			 bulletThumbs: false,		 // thumbnails for the bullets
			 bulletThumbLocation: '',		 // location from this file where thumbs will be
			 afterSlideChange: function(){} 	 // empty function 
		
		});

	}

});
