/* topmenu Show-Hide Layers */ function MM_findObj(n, d) { //v4.0 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&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&&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\n') document.write('.submenu{display: none;}\n') document.write('a:link,a:visited,a:active { text-decoration:none; color:#3f3f3f;}\n') document.write('a:hover { text-decoration:underline; color:#005AAD;}\n') document.write('\n') } function SwitchMenu(obj){ if(document.getElementById){ var el = document.getElementById(obj); var ar = document.getElementById("maindiv").getElementsByTagName("div"); if(el.style.display != "block"){ for (var i=0; i\n"; sDiv += sNScroll + sNScroll sDiv += '\n' document.write(sDiv); window.setTimeout("NScroll()",nNScrollDelay); } function startNScrollDown() { sDiv = "
\n"; sDiv += sNScrollDown + sNScrollDown sDiv += '
\n' document.write(sDiv); window.setTimeout("NScroll()",nNScrollDelay); } function NScroll() { if (bNScrollPause && bNScrollWait) { tmp = document.getElementById('gongjitxt').style; tmp.top = parseInt(tmp.top)-nNScrollSpeed; if (s_pos++ > s_amount) { bNScrollWait=0; s_pos=0; nNScrollPos++ if (nNScrollPos>=nNScrollLen) { tmp.top = 0; nNScrollPos = 0; } window.setTimeout("bNScrollWait=1",nNScrollDelay); } } window.setTimeout("NScroll()",60); } function NvScroll() {this.version = "0.2";this.name = "NvScroll";this.item = new Array();this.itemcount = 0;this.currentspeed = 0;this.scrollspeed = 50;this.pausedelay = 1000;this.pausemouseover = false;this.stop = false;this.type = 1;this.height = 100;this.width = 100;this.stopHeight=0;this.add =function () {var text = arguments[0];this.item[this.itemcount] = text;this.itemcount = this.itemcount + 1;};this.start = function () {this.display();this.currentspeed = this.scrollspeed;setTimeout(this.name+'.scroll()',this.currentspeed);};this.display =function () {document.write('
');for(var i = 0; i < this.itemcount; i++) {if ( this.type == 1) {document.write('
');document.write(this.item[i]);document.write('
');} else if ( this.type == 2 ) {document.write('
');document.write(this.item[i]);document.write('
');}}document.write('
');};this.scroll = function () {this.currentspeed = this.scrollspeed;if ( !this.stop ) { for (i = 0; i < this.itemcount; i++) {obj = document.getElementById(this.name+'item'+i).style;if ( this.type == 1 ) {obj.top = parseInt(obj.top) - 1;if ( parseInt(obj.top) <= this.height*(-1) ) obj.top = this.height * (this.itemcount-1);if ( parseInt(obj.top) == 0 || ( this.stopHeight > 0 && this.stopHeight - parseInt(obj.top) == 0 ) ) this.currentspeed = this.pausedelay;} else if ( this.type == 2 ) {obj.left = parseInt(obj.left) - 1;if ( parseInt(obj.left) <= this.left*(-1) ) obj.left = this.left* (this.itemcount-1);if ( parseInt(obj.left) == 0 ) this.currentspeed = this.pausedelay;}}}window.setTimeout(this.name+".scroll()",this.currentspeed);};this.onmouseover = function () {if ( this.pausemouseover ) {this.stop = true;}};this.onmouseout = function () {if ( this.pausemouseover ) {this.stop = false;}};} /* box rotation */ var pictures =[ '', '', '' ]; // À̹ÌÁö °»½Å ÁÖ±â( 1000 == 1ÃÊ ) var refreshTime = 5000; /** * óÀ½ ½ÇÇàµÇ´Â ÇÔ¼ö·Î½á * Math.floor( Math.random() * pictures.length ) ºÎºÐÀ» ÅëÇØ¼­ * ÇØ´ç ¹è¿­ ±æÀÌ ¾È¿¡¼­ ·£´ýÇÑ ¼ö¸¦ »Ì¾Æ¿Â ÈÄ * viewImage() ÇÔ¼ö¿¡ ÇØ´ç ·£´ýÇÑ ¼ö¸¦ ³Ñ°ÜÁָ鼭 È£ÃâÇÑ´Ù. */ function outRandomImage() { randomId = Math.floor( Math.random() * pictures.length ); // ·£´ý °ª ÃßÃâ viewImage( randomId ); // viewImage È£Ãâ } /** * viewImage() ÇÔ¼ö¿¡¼­´Â ¹ÞÀº randomId °ªÀ» 1 Áõ°¡ ½ÃŲ´ÙÀ½ * ±× °ªÀÌ ¹è¿­ Å©±â¿Í °°À» °æ¿ì ¹è¿­ÀÇ °¡Àå óÀ½ ºÎºÐÀ» °¡¸®Å°°Ô ÇÑ´Ù. * ±×·± ´ÙÀ½ image.innerHTML = pictures[ randomId ] À» ÅëÇÏ¿© * À̹ÌÁö¸¦ Ãâ·ÂÇÑ´Ù. * setTimeout( "viewImage(" + randomId + ")", 1000 ) ºÎºÐÀº * 1000 ( 1ÃÊ ) ¸¶´Ù ´Ù½Ã viewImage ÇÔ¼ö¸¦ È£ÃâÇÔÀ¸·Î½á ´Ù¸¥ À̹ÌÁö·Î °»½ÅÇÑ´Ù. */ function viewImage( randomId ) { randomId++; // ·£´ý°ª 1Áõ°¡ if( randomId == pictures.length ) randomId = 0; // ·£´ý°ªÀÌ ¹è¿­ Å©±â¿Í °°À» °æ¿ì °¡Àå óÀ½ À̹ÌÁö.. image.innerHTML = pictures[ randomId ]; // À̹ÌÁö Ãâ·Â setTimeout( "viewImage(" + randomId + ")", refreshTime ); // 1Ãʸ¶´Ù À̹ÌÁö °»½Å }