// JavaScript Document - https://github.com/carhartl/jquery-cookie 

function getParameterByName(name)
{
  name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
  var regexS = "[\\?&]" + name + "=([^&#]*)";
  var regex = new RegExp(regexS);
  var results = regex.exec(window.location.href);
  if(results == null){
	return "";
  }
  else{
	var ret = decodeURIComponent(results[1].replace(/\+/g, " "));
	//alert(ret);
	return ret;
  }
}	
$(document).ready(function() {		
		$.cookie('CyAirCookie', null);
		
		//get query string value 
		if (getParameterByName("from") == 'google')
			$.cookie('CyAirCookie', 'google'); //create session cookie

		if ($.cookie('CyAirCookie') == 'google')
			$('#phonechange').html('1.888.748.1440'); //This should be the google number
		else
			$('#phonechange').html('1.888.740.8440');	//This should be the main number 1.888.740.8440

});
