function cDim() {
        var docwidth, docheight;
        if (window.innerWidth || window.innerHeight){
                docwidth = window.innerWidth;
                docheight = window.innerHeight;
        }
        if (document.body.clientWidth || document.body.clientHeight){
                docwidth = document.body.clientWidth;
                docheight = document.body.clientHeight;
        }
        var lft = 0;
        var trs = 800;
        if (docwidth > trs) {
                lft += (docwidth - trs) /2;
        }
        var top = 0;
        trs = 580;
        if (docheight > trs) {
                top += (docheight - trs) /2;
        }
	var nav = nav = 420;
	var ok = 0;
	if (docheight - 158 < nav) {
		nav = docheight - 158; 
		ok = 420- nav;
	}

	top = 0;	
        return {left:lft+"px", top:top+"px", nav:nav+"px", ok:ok+"px" };
}

function eventTarget(e) {
	return e?e.target:window.event.srcElement
}


