// DO NOT REMOVE THESE COMMENTS - This code is for use by Mowbi clients only. Email info@mowbi.com for more information.	// Follow the steps below and then paste this code in the head section of your index page.	
// 1. Replace http://www.YourMobileSite.com with your mobile site URL	
// 2. Replace http://www.YourWebsite.com with your main site URL. Make sure you add the - ?view=full - at the end of your main site.        
// 3. Add a link to your mobile site like "Visit Our Main Website" and link it to your site with ?view=full appended. So, the link http://www.Website.com should look like http://www.Website.com?view=full	
// 4. Add a link to your main site like "Visit our mobile site" and link it like normal. Example: http://www.MobileSite.com             

var qry = parent.document.URL.substring(parent.document.URL.indexOf('?'), parent.document.URL.length);        
var ua = navigator.userAgent.toLowerCase(); if (screen.width < 600 && qry != '?view=full') window.location = "http://barharbor.mowbi.com"; else if ((ua.indexOf("ipad") > -1 || ua.indexOf("sch-i800") > -1 || ua.indexOf("xoom") > -1 || ua.indexOf("kindle") > -1) && qry != '?view=full') window.location = "http://barharborinfo.com?view=full";
