﻿document.write('<st'+'yle>');
document.write('td {font-size:12px; font-family:±¼¸²; text-decoration:none; }');
document.write('A:link,A:active,A:visited{text-decoration:none;font-size:12PX;color:#333333;}');
document.write('A:hover {text-decoration:none; color:ff9900}');
document.write('font { font-size: 9pt; }');
document.write('.cnj_input {background-color:rgb(240,240,240);border-width:1pt; height:16pt;cursor:hand;}');
document.write('.cnj_input2 {border-width:1; border-color:rgb(204,204,204); border-style:solid;cursor:hand;}');
document.write('.cnj_input3 { border-width:1; border-style:solid; border-color:#000000; color:#0084D4; background-color:white;cursor:hand;}');
document.write('.cnj_input4 { scrollbar-face-color: #FFCC33;scrollbar-shadow-color: #ffffff;scrollbar-highlight-color: #F3f3f3;scrollbar-3dlight-color: #ffffff;scrollbar-darkshadow-color: #F3f3f3;scrollbar-track-color: #ffffff;scrollbar-arrow-color: #f9f9f9;cursor:hand; }');
document.write('</st'+'yle>');
// L¹??L®¸°?≫??Zμ¿8·?v}μ? ¼?º ³?¹?￡´??

function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG"||event.srcElement.tagName=="href") document.body.focus(); 
} 
document.onfocusin=bluring; 

function cnj_win_view(img){
img_conf1= new Image();
img_conf1.src=(img);
cnj_view_conf(img);
}

function cnj_view_conf(img){
if((img_conf1.width!=0)&&(img_conf1.height!=0)){
cnj_view_img(img);
} else{
funzione="cnj_view_conf('"+img+"')";
intervallo=setTimeout(funzione,20);
}
}

var cnj_img_view = null;
function cnj_view_img(img){
if(cnj_img_view != null) {
if(!cnj_img_view.closed) { 
cnj_img_view.close(); 
}
}
cnj_width=img_conf1.width+20;
cnj_height=img_conf1.height+20;
str_img="width="+cnj_width+",height="+cnj_height;

cnj_img_view=window.open("about:blank","",str_img);
cnj_img_view.document.open(); // document.open() 
cnj_img_view.document.writeln("<html>");
cnj_img_view.document.writeln("<head>");
cnj_img_view.document.writeln("<title>Schweizz</title>");
cnj_img_view.document.writeln("<meta http-equiv='content-type' content='text/html; charset=utf-8'>");
cnj_img_view.document.writeln("<meta http-equiv='imagetoolbar' content='no'>");
var start="<";
cnj_img_view.document.writeln("<script language='javascript'>");
cnj_img_view.document.writeln("function click() {");
cnj_img_view.document.writeln("if ((event.button==1) || (event.button==2)) {");
cnj_img_view.document.writeln("top.close();");
cnj_img_view.document.writeln(" }");
cnj_img_view.document.writeln("}");
cnj_img_view.document.writeln("document.onmousedown=click");
cnj_img_view.document.writeln(start+"/script>");
cnj_img_view.document.writeln("</head>");
cnj_img_view.document.writeln("<body>");
cnj_img_view.document.writeln("<img src="+ img +" border=0 style='cursor:hand'>") // ¼?º ?½º? ºκ?
cnj_img_view.document.writeln("</body></html>");
cnj_img_view.document.close(); // ¹?? document.close() ´???? ?
cnj_img_view.focus();
return;
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);



// 스크롤
function CheckUIElements()
{
        var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;
                bottomheight = 100; // 밑바닥에 크기.
                imgheight = 223; // 그림의 세로크기
                HHHHH = document.body.clientHeight; // 창의 세로크기

//              yMenuTo     = document.body.scrollTop + 127; // 위쪽 위치
//              yMenuTo     = HHHHH-imgheight; // 그림의 세로기준

		yMenuFrom   = parseInt (divMenu.style.top, 10);
		yMenuTo     = document.body.scrollTop + 223; // 위쪽 위치

		if (document.body.scrollHeight < (yMenuTo + imgheight + bottomheight)) {
		yMenuTo	 = document.body.scrollHeight - imgheight - bottomheight;
		}
   
        timeoutNextCheck = 500;
 
        if ( yMenuFrom != yMenuTo ) {
                yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 );
                if ( yMenuTo < yMenuFrom )
                        yOffset = -yOffset;
                        divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;
                	timeoutNextCheck = 10;
        }
	
        setTimeout ("CheckUIElements()", timeoutNextCheck);        
        
        
}



function OnLoad()
{
        var y;
     



		divMenu.style.top = document.body.scrollTop + 223;
                divMenu.style.visibility = "visible";
//	alert(document.body.scrollHeight);

	CheckUIElements();
        return true;
}

