var ns4up = (document.layers) ? 1 : 0;
 var ie4up = (document.all) ? 1 : 0;
 var ns6up = (document.getElementById&&!document.all) ? 1 : 0;
var anatabloX
var anatabloY
var Orta
function OrtaBul()
{var TableWidth = 940
     if (ie4up){
         doc_width = document.body.clientWidth;
         doc_height = document.body.clientHeight;
     }
     else if (ns6up){
         doc_width = window.innerWidth
         doc_height = window.innerHeight
     }
     else if (ns4up) {
         doc_width = self.innerWidth;
         doc_height = self.innerHeight;
     }
     if (doc_width>TableWidth)
       {Orta = Math.round((doc_width-TableWidth )/2)-1}
     else       {Orta = 0}
}

function reposition(object,x,y) {
 if (ie4up){
     document.all[object].style.pixelTop = y;
     document.all[object].style.pixelLeft =Orta + x + 1;
     }
     else if (ns6up){
     document.getElementById(object).style.top=y;
     document.getElementById(object).style.left=Orta + x + 1;
     }
     else if (ns4up) {
     document.layers[object].top = y;
     document.layers[object].left = Orta + x - 7;
     }
}

function resizeHandle(e){
 OrtaBul();
 yerlestir();
}

OrtaBul();
window.onresize=resizeHandle;
