function init() { document.onmousedown = rightClick; } function callExternalInterface() { thisMovie("EzFolio").rightClick(); } function thisMovie(movieName) { if (navigator.appName.indexOf("Microsoft") != -1) { return window[movieName] } else { return document[movieName] } } function rightClick(){ if ( event.button == 2 ){ callExternalInterface() event.stopPropagation(); return false; } } document.oncontextmenu=new Function("callExternalInterface();return false")