var myWidth;var myHeight;function windowsize() {  myWidth = 0;  myHeight = 0;    if( typeof( window.innerWidth ) == 'number' ) {    //Non-IE    myWidth = window.innerWidth;    myHeight = window.innerHeight;  } else if( document.documentElement &&      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {    //IE 6+ in 'standards compliant mode'    myWidth = document.documentElement.clientWidth;    myHeight = document.documentElement.clientHeight;  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {    //IE 4 compatible    myWidth = document.body.clientWidth;    myHeight = document.body.clientHeight;  }} /* windowsize *//* Cookie functions */function getCookie(name) {  var dc = document.cookie;  var prefix = name + "=";  var begin = dc.indexOf("; " + prefix);  if (begin == -1) {    begin = dc.indexOf(prefix);    if (begin != 0) return null;  } else    begin += 2;  var end = document.cookie.indexOf(";", begin);  if (end == -1)    end = dc.length;  return unescape(dc.substring(begin + prefix.length, end));}// loadCookie: Load a CookieVal - It may contain several name/value pairs.// doc - The document object that should be used for the load// cStoreName - The actual cookie name that will be known by the browser.// returns - The CookieVal string or empty string if not found.function loadCookie(doc, cStoreName) {   var cCooking;  // Used to store intermediate strings   var cReturn;   // The return value   cCooking = doc.cookie; // Get all the Cookie name/values   if ("" == cCooking) return "";   // No values      // Now find the specific cStoreName cookie in the string   var nStart = cCooking.indexOf(cStoreName + "=");   if (-1 == nStart) return "";  // cStoreName not found   nStart += cStoreName.length + 1; // Point at first data char   var nEnd = cCooking.indexOf(";", nStart); // Find the end   if (-1 == nEnd) {      nEnd = cCooking.length; // Point at last char   }   cReturn = cCooking.substring(nStart, nEnd); // Extract the CookieVal   return cReturn;  // and return it}function deleteCookie (doc, cStoreName, cPath, cDomain) {  if (loadCookie(doc, cStoreName)) {    doc.cookie = cStoreName + "=" +       ((cPath) ? "; path=" + cPath : "") +      ((cDomain) ? "; domain=" + cDomain : "") +     "; expires=Thu, 01-Jan-70 00:00:01 GMT";  }  return true; } // saveCookie: Save a CookieVal - Save to Web browser. It may have several name/value pairs// doc - The document object that should be used for the save.// cStoreName - The actual cookie name that will be known by the browser.// cCookieVal - The CookieVal string to save.// nSeconds - (optional) (integer) The duration that the cookie should live, in seconds.// cDomain - (optional) The domain name.// cPath - (optional) The path associated with the cookie.// bSecure - (optional) (boolean) The secure option// returns - voidfunction saveCookie(doc, cStoreName, cCookieVal, nSeconds, cDomain, cPath, bSecure ) {   var cCooking;  // Used to store intermediate strings   var dtExpires; // Date this cookie expires   cCooking = cStoreName + "=" + cCookieVal // The name=value   if (nSeconds) {      // Calculate expiration date      dtExpires = new Date((new Date()).getTime() + 1000 * nSeconds);	  cCooking += "; expires=" + dtExpires.toGMTString();   }   if (cDomain) { // If the domain was supplied      cCooking += "; domain=" + cDomain;   }   if (cPath) {   // If the path was supplied      cCooking += "; path=" + cPath;   }   if (bSecure) { // If the secure parameter was supplied      cCooking += "; secure";   }   // Done cooking, now assign the cookie   doc.cookie = cCooking;}
