function getApp(movieName){ var isIE = navigator.appName.indexOf("Microsoft") != -1; if(isIE){ return window[movieName]; }else{ return document[movieName]; } }