function rotating_images() {
//
//
// Change cookie name, below, if needed.
   
var CookieName = "rotating_images";
   
//
//
//
var Init = true;
var Cookie = '';
var Separator = ',';
var Chunk = new Array();
var MaxContentNumber = 7;
var DispositionTimes = 0;
var Disposition = 'unique';
if(document.cookie.length > 0) {
   var spot = CookieName + '=';
   var cookiebegin = document.cookie.indexOf(spot);
   var cookieend = 0;
   if(cookiebegin > -1) {
      cookiebegin += spot.length;
      cookieend = document.cookie.indexOf(";",cookiebegin);
      if(cookieend < cookiebegin) { cookieend = document.cookie.length; }
      Cookie = document.cookie.substring(cookiebegin,cookieend);
      }
   }
if(Cookie.length > 1)
{
   Chunk = Cookie.split(Separator);
   if(Disposition == 'same') {
      var chunk = parseInt(Chunk[1]);
      chunk++;
      Chunk[1] = chunk;
      Init = false;
      if((DispositionTimes > 0) && (Chunk[1] > 0)) { Init = true; }
      }
   }
if(Init == true) {
   var nextnum = Math.ceil(Math.random() * MaxContentNumber);
   if(Chunk[0] > 0) {
      while(nextnum == Chunk[0]) { nextnum = Math.ceil(Math.random() * MaxContentNumber); }
      }
   Chunk[0] = nextnum;
   Chunk[1] = '1';
   }
if((Chunk[0] < 1) || (Chunk[0] > MaxContentNumber)) {
   Chunk[0] = Math.floor(Math.random() * (MaxContentNumber+1));
   Chunk[1] = '1';
   }
if((Chunk[0] < 1) || (Chunk[0] > MaxContentNumber)) { Chunk[0] = 1; }
var exp = '';
if(0 > 0) {
   var now = new Date();
   then = now.getTime() + (0 * 24 * 60 * 60 * 1000);
   now.setTime(then);
   exp = '; expires=' + now.toGMTString();
   }
var cookiecontent = Chunk.join(Separator);
document.cookie = CookieName + "=" + cookiecontent + '; path=/' + exp;
if(Chunk[0] == 1) {
   document.writeln('<div class="header-one"></div>');
   }
if(Chunk[0] == 2) {
   document.writeln('<div class="header-two"></div>');
   }
if(Chunk[0] == 3) {
   document.writeln('<div class="header-three"></div>');
   }
if(Chunk[0] == 4) {
   document.writeln('<div class="header-four"></div>');
   }
if(Chunk[0] == 5) {
   document.writeln('<div class="header-five"></div>');
   }
if(Chunk[0] == 6) {
   document.writeln('<div class="header-six"></div>');
   }
if(Chunk[0] == 7) {
   document.writeln('<div class="header-seven"></div>');
   }
}
rotating_images();
//-->