var pagina=window.location.href 
koekiestring=('adres='+pagina+'; path=/;'); 
document.cookie=koekiestring 
if (parent.location.href == self.location.href){
if (screen.width >= 900){window.location.href='index.html'}else{window.location.href='index800.html'}}