/** Redirect mobile urls
 *	pass two params if a non-mobile redirect is needed
 */

function redirect_mobile(mobileUrl, otherUrl) {
	if ( /(Android|iPhone|iPod|webOS|NetFront|Opera Mini|SEMC-Browser|SymbianOS|BlackBerry|Mobile Safari)/.test( navigator.userAgent ) ) {
		if (mobileUrl != null && mobileUrl !="") { document.location.replace(mobileUrl); }
	} else if (otherUrl != null && otherUrl !="") {
		document.location.replace(otherUrl);
	}
}

