function checkAndDisplayIEmessage() {
		if (navigator.appName == 'Microsoft Internet Explorer'){
			var ver = getInternetExplorerVersion();
			if ( ver > 6 ) {
				if($.cookie("ieMessage") == null){
					$ieMessage = "<div id='ieMessage' style='display:none;'>";
					$ieMessage += "<div><h2>You seem to be using Internet Explorer.</h2>";
					$ieMessage += "<p>Some content on our website might not display as intended on Internet Explorer</p>";
					$ieMessage += "<p>This site is best viewed with browsers such as <a class='more-link' href='http://www.mozilla.com/firefox/' target='_blank'>Mozilla Firefox</a>, <a class='more-link' href='http://www.google.com/chrome/' target='_blank'>Google Chrome</a>, <a class='more-link' href='http://www.apple.com/safari/download/' target='_blank'>Apple Safari</a> or <a class='more-link' href='http://www.opera.com/download/' target='_blank'>Opera</a></p>";
					$ieMessage += "<p>To contact us, please call +91.966.508.1892 or email us at <a class='more-link' href='mailto:info@authenticaleisure.com'>info@authenticaleisure.com</a></p><p style='color:#666'>To close, hit the ESC key or click outside of this box</p></div></div>";
					$('body').append($ieMessage); 
					$("#ieMessage").overlay({
						top: 260, 
						mask: {color: '#fff',loadSpeed: 200,opacity: 0.5}, 
						closeOnClick: true, 
//						load: true, // disable to show IE warning
						load: false, 
						onLoad: function(){
							var $overlay = this;
							setTimeout(function(){$overlay.close()}, 10000);
						}
					});
					$.cookie("ieMessage", "authentica");
				}
			} else {
				window.location = "/UpgradeIE.php";
			}
		}
}

function getInternetExplorerVersion()
// Returns the version of Internet Explorer or a -1
// (indicating the use of another browser).
{
  var rv = -1; // Return value assumes failure.
  if (navigator.appName == 'Microsoft Internet Explorer')
  {
    var ua = navigator.userAgent;
    var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
    if (re.exec(ua) != null)
      rv = parseFloat( RegExp.$1 );
  }
  return rv;
}

function checkIEVersion()
{
  var msg = "You're not using Internet Explorer.";
  var ver = getInternetExplorerVersion();
  if ( ver > -1 )
  {
    if ( ver >= 6.0 ) 
      msg = "You're using a recent copy of Internet Explorer."
    else
      msg = "You should upgrade your copy of Internet Explorer.";
  }
  alert( msg );
}

function checkVersion()
{
	var ver = getInternetExplorerVersion();
	if ( ver > -1 )
  	{
		if (screen.width < 1400) {
			document.getElementById('ie-warning').style.visibility = "visible";
			return true;
		}
	}
	return false;
}

/* About US Scrolling */
function scrollModelNext(){
	$(".scrollable:eq(1)").data("scrollable").move(1);
}
function scrollModelPrevious(){
	$(".scrollable:eq(1)").data("scrollable").move(-1);
}

function scrollToModel(){
	$("#main").scrollable("scrollable").seekTo(1);
}
function scrollToTeam(){$("#main").scrollable("scrollable").seekTo(2);}
function scrollToPartners(){$("#main").scrollable("scrollable").seekTo(3);}

/* End About US Scrolling */

/* Form Functions */

/* Rating Scales
$.fn.stars = function() {
    return $(this).each(function() {
        // Get the value
        var val = parseFloat($(this).html());
        // Make sure that the value is in 0 - 5 range, multiply to get width
        var size = Math.max(0, (Math.min(5, val))) * 16;
        // Create stars holder
        var $span = $('<span />').width(size);
        // Replace the numerical value with stars
        $(this).html($span);
    });
}
*/
// JavaScript Document// JavaScript Document
