function MAX_getClientSize() {
        if (window.innerHeight >= 0) {
                return [window.innerWidth, window.innerHeight];
        } else if (document.documentElement && document.documentElement.clientWidth > 0) {
                return [document.documentElement.clientWidth,document.documentElement.clientHeight];
        } else if (document.body.clientHeight > 0) {
                return [document.body.clientWidth,document.body.clientHeight];
        } else {
                return [0, 0]
        }
}

function MAX_adlayers_place_scroller() {
        var c = document.getElementById('MAX_scroller');

        if (!c) return false;

        var clientSize = MAX_getClientSize();
        ih = clientSize[1];
        iw = clientSize[0];

        if(document.all && !window.opera) {
                sl = document.body.scrollLeft || document.documentElement.scrollLeft;
                st = document.body.scrollTop || document.documentElement.scrollTop;
                of = 0;
        }
        else
        {
                sl = window.pageXOffset;
                st = window.pageYOffset;

                if (window.opera)
                        of = 0;
                else
                        of = 16;
        }

        c['style'].right = parseInt(sl+10) + (window.opera?'':'px');
        c['style'].top = parseInt(st+0) + (window.opera?'':'px');
}


function MAX_simplepop_scroller() {

        var clientSize = MAX_getClientSize();
        var iw = clientSize[0];
        if(iw > 900) {
		MAX_scroller  = "<"+"div id=\"MAX_scroller\" style=\"position:absolute; width:120px; height:600px; z-index:99; right: 0px; top: 0px; \">\n";
		MAX_scroller += "<iframe src='http://ad.smilemedia.co.il/html.ng/s=zr&zrch=hmr&ft=t120&affiliate=zvru&tile=1324567890' frameborder='0' width='120' height='600' marginwidth='0' marginheight='0' scrolling='no'></iframe>\n";
		MAX_scroller += "<"+"/div>\n";

		document.write(MAX_scroller);
		//setTimeout("document.getElementById('MAX_scroller').innerHTML=dc_rtower", 2000);

		var c = document.getElementById('MAX_scroller');

		if (!c) return false;
		if (c.style) c = c.style;

		MAX_adlayers_timerid_scroller = window.setInterval('MAX_adlayers_place_scroller()', 15);
	}
}

MAX_simplepop_scroller();