function viewFlash(width,height,file, appendParam) {
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+width+"' height='"+height+"'>");
	document.write("<param name='movie' value='"+file+"'>");
	document.write("<param name='quality' value='high'>");
	document.write("<embed src='"+file+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></embed>");
	document.write("</object>");
    //alert(appendParam[1]);
    //document.write(appendParam[0]);
}

function viewFlash2(width,height,file, appendParam) {
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+width+"' height='"+height+"'>");
	document.write("<param name='movie' value='"+file+"'>");
	document.write("<param name='quality' value='high'>");
	document.write("<param name='wmode' value='transparent'>");
	document.write("<embed src='"+file+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+width+"' height='"+height+"'></embed>");
	document.write("</object>");
    //alert(appendParam[1]);
    //document.write(appendParam[0]);
}

self.onError=null;
currentX = currentY = 0;  
whichIt = null;
lastScrollX = 0; lastScrollY = 0;
action = window.setInterval("heartBeat()",1);

function heartBeat() {

// combowidth=layer_right_bottom.offsetWidth
// comboheight=layer_right_bottom.offsetHeight

        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.layer_right.style.pixelTop += percent;
//                document.all.layer_right_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.layer_right.style.pixelLeft += percent;
//                document.all.layer_right_bottom.style.pixelLeft += percent;
                lastScrollY = lastScrollY + percent;
        }        
}