jQuery.noConflict();
jQuery(document).ready(function($){

/*
 * Function to generate "viewport" for handeld devices
 */
//<![CDATA[

	function mobileViewport(){
	    if(((navigator.userAgent.match(/iPhone/i))||(navigator.userAgent.match(/iPod/i))||(navigator.userAgent.match(/Android/))||(navigator.userAgent.match(/webOS/)))){
	        $('head').append('<meta name = "viewport" content = "width=device-width; initial-scale=1; minimum-scale=1; maximum-scale=1" />');
			$(window).load(function() {
				$('.orbit-bullets').css('left', '15%');
			});
	    } 
	}
	$(function(){ mobileViewport(); });

//]]>

/*
 * Function to append media queries and less.js to head
 */
//<![CDATA[

	$(document).ready(function() {
		$('head').append('<link rel="stylesheet/less" href="' + RwGet.pathto() + 'less/media-queries.less" />');
	    $('head').append('<script type="text/javascript" src="' + RwGet.pathto() + 'less/less.js" />');
	});

//]]>

/*
 * Function hide the URL Bar on iPhone
 */
//<![CDATA[

	if (navigator.userAgent.indexOf('iPhone') != -1) {
		addEventListener("load", function() {
		setTimeout(hideURLbar, 0);
		}, false);
	}

	function hideURLbar() {
		window.scrollTo(0, 1);
	}
	
//]]>

});
