				var myWidth = 0;
				var myHeight = 0;
				var newW = 0;
				function alertSize() {
			if( typeof( window.innerWidth ) == 'number' ) {
				//Non-IE
				myWidth = window.innerWidth;
				myHeight = window.innerHeight;
			} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
				//IE 6+ in 'standards compliant mode'
				myWidth = document.documentElement.clientWidth;
				myHeight = document.documentElement.clientHeight;
			} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
				//IE 4 compatible
				myWidth = document.body.clientWidth;
				myHeight = document.body.clientHeight;
			}	 			 					
		 //window.alert( 'Width = ' + myWidth );
		// window.alert( 'Height = ' + myHeight );
			newW = myWidth;
			// if(newW >768) {
			//	newW = 768;
			//}
		}	
	function checkmob(newLoc) {
//window.alert( 'Im in redirect.js ... newW = ' + myWidth );
//window.alert( 'navigator.userAgent ' + navigator.userAgent );
//window.alert( 'Conditions 1 newW !=0 = ' + newW !=0  );
//window.alert( 'Conditions 2 newW!=null !=0 = ' + newW!=null  );
//window.alert( 'Conditions 3 newW more than 768 = ' + newW <'768'  );
		if(
		    (myWidth !=0 && myWidth!=null && myWidth < 768) ||  //if screen is detected and is less than limit
		    (navigator.userAgent!=undefined  &&       (navigator.userAgent.match(/iphone/i)  ||   navigator.userAgent.match(/ipad/i) || navigator.userAgent.match(/ipod/i) || navigator.userAgent.match(/Android/i)  )) //if user agent is available and is containing insensitive webkit
			) 
			{
			var answer = confirm ("Redirecting you to the mobile version..")
			
			if (answer)
			{
			//	alert ("Redirecting.");
			   location.href=newLoc;  
			   }
			 else
			alert ("Keeping you in flash/HTML.")
			} 		
}
