var getBrowser = { info : navigator.userAgent.toLowerCase(), isFirefox : function(){ return ( this.info.indexOf("firefox")!=-1 ) ? true : false; }, isSafari : function(){ return ( this.info.indexOf("safari")!=-1 ) ? true : false; }, isChrome: function(){ return ( this.info.indexOf("chrome")!=-1 ) ? true : false; }, isOpera: function(){ return ( this.info.indexOf("opera")!=-1 ) ? true : false; }, isIE: function(){ return ( this.info.indexOf("msie")!=-1 || this.info.indexOf("trident")!=-1 || this.info.indexOf("explorer")!=-1 ) ? true : false; }, isIE8: function(){ return ( this.info.indexOf("msie 8")!=-1 ) ? true : false; }, isIE7: function(){ return ( this.info.indexOf("msie 7")!=-1 ) ? true : false; }, isIE6: function(){ return ( this.info.indexOf("msie 6")!=-1 && this.info.indexOf("msie 8")==-1 && this.info.indexOf("msie 7")==-1 ) ? true : false; } } function addFavorite(){ var title = "게임짱"; var url = "http://gamejjang.com"; if(window.sidebar && window.sidebar.addPanel){//firefox window.sidebar.addPanel(title, url,""); } else if(window.opera && window.print){//opera var elem = document.createElement('a'); elem.setAttribute('href',url); elem.setAttribute('title',title); elem.setAttribute('rel','sidebar'); elem.click(); } else if(document.all){//msie window.external.AddFavorite( url, title); } else{ alert("해당브라우저는 즐겨찾기 추가기능이 지원되지 않습니다.\n\n수동으로 즐겨찾기에 추가해주세요."); return true; } } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i