//
function checkGoodi(){
    //alert('checkGoodi');
    try{
        var my_url = String(top.location);
        return true;
    }catch(E){
        return false;
    } 
    
}

function doResizeLocal() { 
    try{
	setTimeout("parent.doResizeByParam(main.document.body.scrollHeight)",200);
	//parent.doResizeByParam(main.document.body.scrollHeight);
    }catch(e){
        alert('doResizeLocal');
        alert(e);
    }
} 


// scraper
var isLoadEnd	= false;
var notAlert	= false;
self.onError=null;
currentX = currentY = 0;
whichIt = null;
lastScrollX = 0; lastScrollY = 0;
action = window.setInterval("heartBeat()",1);

function heartBeat() {

	// combowidth=Remote_bottom.offsetWidth
	// comboheight=Remote_bottom.offsetHeight
	if ( document.all.Remote != null ) {
	    
		if (typeof(document.body) == "object")
		{
		    
			if (document.body != null)
			{
			    
				diffY = document.body.scrollTop;
				diffX = 0;
                
				if (diffY != lastScrollY) {
				    
					percent = .2 * (diffY - lastScrollY);
					
					if (percent > 0) {
						percent = Math.ceil(percent);
					} else {
						percent = Math.floor(percent);
					}
					document.all.Remote.style.pixelTop += percent;
			//		document.all.Remote_bottom.style.pixelTop = document.body.scrollTop+document.body.clientHeight-comboheight+percent-50;
							lastScrollY = lastScrollY + percent;
				}
				if (diffX != lastScrollX) {
					percent = .2 * (diffX - lastScrollX);
					if (percent > 0) {
						percent = Math.ceil(percent);
					} else {
						percent = Math.floor(percent);
					}
					document.all.Remote.style.pixelLeft += percent;
			//		document.all.Remote_bottom.style.pixelLeft += percent;
					lastScrollY = lastScrollY + percent;
				}
			}
		}
	}
}



