﻿  // Stop from loading inside of another frame

  if (top.location != self.location)
    top.location = self.location;


  function InitSync()
  {
      if(typeof(top.deeptree) == "object" && typeof(top.deeptree.Sync) == "unknown")
      {
        top.deeptree.Sync();
      }
  }
//check for DOM  
  if (!document.getElementById || !document.createTextNode)
  	window.location.replace('/errors/nodom.aspx');

//check for cookies

if (document.cookie=='') {
    var thisDomain = window.location.hostname;
    splitThisDomain = thisDomain.split('.');
    thisDomain = splitThisDomain[splitThisDomain.length - 2] + '.' + splitThisDomain[splitThisDomain.length - 1];
    
    var date = new Date();
    date.setDate(date.getDate()+ 5) ;   
  
    document.cookie = 'z=1; expires=' + date.toUTCString() + '; path=/; domain=' + thisDomain;  
    if (document.cookie=='') 
        window.location.replace('/errors/nocookies.aspx');
    date.setDate(date.getDate() - 10);           
    document.cookie = 'z=; expires=' + date.toUTCString()+ '; path=/; domain=' + thisDomain;
}



