switch(1) { case 1: /*documentHeight = document.documentElement.clientHeight ; documentWidth = document.documentElement.clientWidth ;*/ documentHeight = screen.height; documentWidth = screen.width; break; case 2: /*documentHeight = self.innerHeight ; documentWidth = self.innerWidth ;*/ documentHeight = screen.height; documentWidth = screen.width; break; case 3: /*documentHeight = window.innerHeight ; documentWidth = window.innerWidth ;*/ documentHeight = screen.height; documentWidth = screen.width; break; case 4: /*documentHeight = self.innerHeight ; documentWidth = self.innerWidth ;*/ documentHeight = screen.height; documentWidth = screen.width; break; case 5: /*documentHeight = self.innerHeight ; documentWidth = self.innerWidth ;*/ documentHeight = screen.height; documentWidth = screen.width; break; } switch(1) { case 1: chatvissza='left=0,top=0'; mag=0; szel=0; break; //BAL FENT case 2: szel=Math.round(documentWidth/2-189); mag=0; chatvissza='left='+szel+',top=0'; break; //KÖZÉP FENT case 3: szel=Math.round(documentWidth-378); mag=0; chatvissza='left='+szel+',top=0'; break; //JOBB FENT case 4: mag=Math.round(documentHeight/2-155); szel=0; chatvissza='left=0,top='+mag; break; //BAL case 5: mag=Math.round(documentHeight/2-155); szel=Math.round(documentWidth/2-189); chatvissza='left='+szel+',top='+mag; break; //KÖZÉP case 6: mag=Math.round(documentHeight/2-155); szel=Math.round(documentWidth-378); chatvissza='left='+szel+',top='+mag; break; //JOBB case 7: mag=Math.round(documentHeight-309); szel=0; chatvissza='left=0,top='+mag; break; //BAL LENT case 8: mag=Math.round(documentHeight-309); szel=Math.round(documentWidth/2-189); chatvissza='left='+szel+',top='+mag; break; //KÖZÉP LENT case 9: mag=Math.round(documentHeight-309); szel=Math.round(documentWidth-378); chatvissza='left='+szel+',top='+mag; break; //JOBB LENT } document.write("");