function FlashReturn(ename, sizex, sizey) { var url = "http://www.digimix.co.kr/templates/default/"+ename+".swf"; var flash = null; flash = ''; flash += ''; flash += ''; flash += ''; flash += ''; flash += ''; flash += ''; flash += ''; flash += ''; flash += ''; flash += ''; return flash; try { return flash; } finally { obj = null; } } function flash(ename, sizex, sizey, alphavar) { var name = "http://www.digimix.co.kr/templates/default/"+ename+""; document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); document.write(''); if(alphavar == 'Y'){ document.write(''); } document.write(''); document.write(''); document.write(''); } function topmenu() { var flash = FlashReturn("fla/sub_menu", 991, 78); document.getElementById("sub_menu").innerHTML = flash; } function GoMove( tar ) { window.location.href( "http://www.digimix.co.kr/"+tar ); } function GoHome() { //alert("www.digimix.co.kr"); window.location.href( "http://www.digimix.co.kr" ); } function PortfolioView(code, file, sizex, sizey) { var flash = PortfolioReturn2(code, file, sizex, sizey); var arrayPageSize = getPageSize(); //alert( arrayPageSize[0] ); var tag = ''; tag += ''; tag += ''; tag += ''; tag += ''; tag += ''; tag += ''; tag += ''; tag += '
'; tag += ''; tag += ''; tag += ''; tag += ''; tag += ''; tag += ''; tag += ''; tag += ''; tag += '
'+flash+'
'; var vx = parseInt(sizex)+80; var vy = parseInt(sizey)+80; var mx = String((arrayPageSize[0]/2)-(vx/2)); var my = String((arrayPageSize[1]/2)-(vy/2)); document.getElementById("popup").style.width = vx+"px"; document.getElementById("popup").style.height = vy+"px"; document.getElementById("popup").style.top = my+"px"; document.getElementById("popup").style.left = mx+"px"; document.getElementById("popup").style.display = "block"; document.getElementById("popup").innerHTML = tag; } function PortfolioReturn2(code, file, sizex, sizey) { var url = "upload/portfolio/"+code+"/"+file; var flash = null; flash = ''; flash += ''; flash += ''; flash += ''; flash += ''; flash += ''; flash += ''; flash += ''; flash += ''; flash += ''; return flash; } function PortfolioClose() { document.getElementById("popup").style.display = "none"; document.getElementById("popup").innerHTML = ""; } // LAYER SHOW HIDE function cu(stat){ if (stat == 1){ document.getElementById("cu1").style.display = "block"; document.getElementById("cu2").style.display = "none"; } else if (stat == 2){ document.getElementById("cu1").style.display = "none"; document.getElementById("cu2").style.display = "block"; } } // 새창 열기 function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } function PopUp( urls, winName, wsize, hsize ) { //alert( urls ); var wins = window.open(urls,winName,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+wsize+',height='+hsize+',top=0,left=0'); } function getPageSize(){ var xScroll, yScroll; if (window.innerHeight && window.scrollMaxY) { xScroll = document.body.scrollWidth; yScroll = window.innerHeight + window.scrollMaxY; } else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac xScroll = document.body.scrollWidth; yScroll = document.body.scrollHeight; } else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari xScroll = document.body.offsetWidth; yScroll = document.body.offsetHeight; } var windowWidth, windowHeight; if (self.innerHeight) { // all except Explorer windowWidth = self.innerWidth; windowHeight = self.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode windowWidth = document.documentElement.clientWidth; windowHeight = document.documentElement.clientHeight; } else if (document.body) { // other Explorers windowWidth = document.body.clientWidth; windowHeight = document.body.clientHeight; } // for small pages with total height less then height of the viewport if(yScroll < windowHeight){ pageHeight = windowHeight; } else { pageHeight = yScroll; } // for small pages with total width less then width of the viewport if(xScroll < windowWidth){ pageWidth = windowWidth; } else { pageWidth = xScroll; } arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) return arrayPageSize; }