	function setPosFloating(a, v, u){				
		var x = a;
		document.write('<div class="right"  id="object1" style="border:1px solid #ccc;width:155px;height:600px;position:absolute; visibility:show;left:' + x + 'px;top:' + v + 'px; z-index:5">');
		document.write('<iframe src="' + u + '" width=155 height=600 frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe>');
		document.write('</div>');
	}

	function getPageScroll(){ 
	    var X, Y; 
	    if(typeof window.pageXOffset == 'number'){ 
	        X = window.pageXOffset; 
	        Y = window.pageYOffset; 
	    }else{ 
	        if((window.document.compatMode)&& 
	                  (window.document.compatMode == 'CSS1Compat')){ 
	            X = window.document.documentElement.scrollLeft; 
	            Y = window.document.documentElement.scrollTop; 
	        }else{ 
	            X = window.document.body.scrollLeft; 
	            Y = window.document.body.scrollTop; 
	        } 
	    } 
	    return {scrollX:X,scrollY:Y}; 
	} 
	
	function setPosFloating(a, v, u){		
		var x = a;
		document.write('<div class="right"  id="object1" style="border:1px solid #ccc;width:155px;height:600px;position:absolute; visibility:show;left:' + x + 'px;top:' + v + 'px; z-index:5">');
		document.write('<iframe src="' + u + '" width=155 height=600 frameborder=0 marginheight=0 marginwidth=0 scrolling=no></iframe>');
		document.write('</div>');
	}
	function stayFloating(){		
		document.getElementById('object1').style.top = getPageScroll().scrollY + ad_position;
		t = window.setTimeout( "stayFloating()", ad_interval );  			
	}
	
	function moreThanZero(v){
		if(v<0)
			v=1;	
		return v;	
	}		
	// document.documentElement.clientHeight;  	screen.availHeight;   , screen.Height;
	var vAlignTop = 0;
	var vAlignMiddle = moreThanZero(parseInt((document.documentElement.clientHeight - 600)/2));
	var vAlignBottom = moreThanZero(parseInt(document.documentElement.clientHeight - 600));
				