// accepts the object ID of the swf as per the SWFObject code in index.html -->
function thisMovie(movieName)
{
	var isIE = navigator.appName.indexOf("Microsoft") != -1;
    return (isIE) ? window[movieName] : document[movieName];
}

    function makeCall(str) {
        thisMovie("extint").asFunc(str);
    }

    function jsFunc(str) {
        document.inForm.inField.value = "AS > Hello " + str;
    }



function getCookie(name)
{
    var cookie="";
	
   if (document.cookie)
  {
   
	var cookies=document.cookie.split(";");
    for (var i=0; i<cookies.length; i++)
    {
      var varName=(cookies[i].split("=")[0]);
      var varValue=(cookies[i].split("=")[1]);

      while (varName.charAt(0)==" ")
        varName=varName.substr(1,varName.length);

      // the escape() function will url encode the value				
      if (varName==name)
        cookie=escape(varValue);
    }
  }
//  <!-- alert("getCookie called " + cookie) -->
   
  thisMovie("weatherUser").returnCookie(cookie);
}

function setCookie(name, value)
{
  document.cookie = name + "=" + value;
  //<!-- alert("setCookie called: " + name + " " + value + " ") -->
}
