//**************************************************
//* (c) 2006 by M.E. Koch, http://www.AdOptimize.de
//**************************************************

    var w3c = 0;
    var ie = 0;
    var ns = 0;
    var obj_show = 1;

    if(document.getElementById) w3c = 1;
    else if (document.all) ie = 1;
    else { 
        browserVersion = parseInt(navigator.appVersion); 
        if ((navigator.appName.indexOf('Netscape') != -1) && (browserVersion == 4)) ns = 1; 
    }
    
    function getlayer(lname,lstyle) {
        if(lstyle == 1) {
            if (w3c) if(dc = document.getElementById(lname)) return(dc.style);
            else if (ie) if(dc = document.all[lname]) return (dc.style); 
            else if (ns) if(dc = document.layers[lname]) return (dc);
        } else {
            if (w3c) if(dc = document.getElementById(lname)) return (dc); 
            else if (ie) if((dc = document.all[lname])) return (dc); 
            else if (ns) if(dc = document.layers[lname]) return (dc);
        }
    } // ENDE getlayer
	
	function position_lay() {
	// find the position
		wh = (window.top.innerHeight)/2;
		wb = (window.top.innerWidth)/2;
		pos = getlayer('center_img',1);
		if((wh-143)>0) {
			pos.top = (wh-143 -20) + 'px';
		}
		if((wb-248)>0) {
			pos.left = (wb-248) + 'px';
		}
	} // position_lay