// JavaScript Document
/* function importScript(url){
     var tag = document.createElement("script");
     tag.type="text/javascript";
     tag.src = url;
     document.body.appendChild(tag);
 }
 window.onload = function(){
     // imports go here
     importScript("includes/jQuery-package/jquery-1.4.4.min.js"); // example
 };
*/
function switchWeb(URL) {
	var userAgent = navigator.userAgent.toLowerCase();
	
	var CellPhone = ['iphone', 'android', 'htc_sensation','htc_flyer_','htc_wildfire', 'windows phone' ,'htc_touch_cruise'];
 
	for (I in CellPhone ) {
		if ( ( userAgent.indexOf(CellPhone[I]) > 0 ) || ( navigator.platform.indexOf(CellPhone[I]) > 0 ) ) {
		 window.location.href = 'http://' + URL;
		 //alert(URL);
		}
	}
	
}
/*jQuery.browser = {
    version: (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [])[1],
    safari: /webkit/.test( userAgent ),
    opera: /opera/.test( userAgent ),
    msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),
    mozilla: /mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)
};
*/

