//document.domain = "joins.com";

var nowtab = 1;
function naviChangeLayer(n) {   
	document.getElementById('menuset'+nowtab).style.display = "none";
	document.getElementById('menuset'+n).style.display = "block";

	document.getElementById('mainnav'+nowtab).style.display = "none";
	document.getElementById('mainnav'+n).style.display = "block";
	
	nowtab = n;
}

function getCookie(varname) {
	varname += "=";
	startpos = document.cookie.indexOf(varname);
	if (startpos >= 0) {
		startpos += varname.length;
		endpos = document.cookie.indexOf(";", startpos);
		if (endpos == -1) endpos = document.cookie.length;
  		return unescape(document.cookie.substring(startpos, endpos));
    }
}

this.jd_url = "http://joongangdaily.joins.com";

// Think English ¼ÒºÐ·ù
this.Think_Menu = [
  	['<div align=right>Current Issue</div>','think',this.jd_url + '/article/list.asp?cat_code=060402','060402'],
	['Feature Story','think',this.jd_url + '/article/list.asp?cat_code=060403','060403'],
	['Editorial Reading','think',this.jd_url + '/article/list.asp?cat_code=060404','060404'],
	['Pictionary','think',this.jd_url + '/article/list.asp?cat_code=060405','060405'],
	['Writing Clinic','think',this.jd_url + '/article/list.asp?cat_code=060406','060406'],
	['¿µ¾î ÀÌ¾ß±â','think',this.jd_url + '/article/list.asp?cat_code=060407','060407']
];

// ´ëºÐ·ù
this.F_Menu = [
	["National","03"], 
	["Business","05"], 
	["Opinion","01"],
	["Culture","02"],
	["Foreign community","04"],
	["English clinic","06"],
	["Sports","07"],	 
    ["Customer services","CS"],	
    ["","ET"],	    
    ["","NL"], // ¿ÞÂÊ¸Þ´º ¾ø´Â °Íµé¸¸À» À§ÇÑ ´ëºÐ·ù(°Ë»ö, PDF, ½Ã°£)
    ["Policy","CO"],  // Company(Policyµî)    
    ["About Us","AB"]
];    

// ÁßºÐ·ù
this.S_Menu = new Array(F_Menu.length);
 
 // National    
this.S_Menu[0] = [
	['Politics','politics',this.jd_url + '/article/list.asp?cat_code=030101','030101'],
	['Social affairs','social',this.jd_url + '/article/list.asp?cat_code=030201','030201'],
	['Education','edu',this.jd_url + '/article/list.asp?cat_code=030301','030301'],
	['People','people',this.jd_url + '/article/list.asp?cat_code=030401','030401']
];
// Business
this.S_Menu[1] = [
	['Economic policy','economic',this.jd_url + '/article/list.asp?cat_code=050101','050101'],
	['Finance','finance',this.jd_url + '/article/list.asp?cat_code=050201','050201'],
	['Industry','industry',this.jd_url + '/article/list.asp?cat_code=050301','050301'],
	['IT/Science','it',this.jd_url + '/article/list.asp?cat_code=050501','050501'],
	['Stock market','stock',this.jd_url + '/article/list.asp?cat_code=050401','050401'],
	['Special series','Special',this.jd_url + '/article/list.asp?cat_code=050601','050601'],	

	['Glimpse of Business in Seoul','Special_s',this.jd_url + '/article/list.asp?cat_code=050602','050602'],	
	['Korea¡Çs conglomerates','Special_s',this.jd_url + '/article/list.asp?cat_code=050603','050603'],
	['Old brand, brand new','Special_s',this.jd_url + '/article/list.asp?cat_code=050604','050604'],
	['SERI Report','Special_s',this.jd_url + '/article/list.asp?cat_code=050606','050606'],
	['Guest Report','Special_s',this.jd_url + '/article/list.asp?cat_code=050607','050607']
];	
// Opinion
this.S_Menu[2] = [
	['Editorials','editorials',this.jd_url + '/article/list.asp?cat_code=010101','010101'],
	['Columns','column',this.jd_url + '/article/list.asp?cat_code=010201','010201'],
	['Fountain','fountain',this.jd_url + '/article/list.asp?cat_code=010301','010301'],
	['Cartoons','cartoons',this.jd_url + '/article/list.asp?cat_code=010401','010401'],
	['Letters','letters',this.jd_url + '/article/list.asp?cat_code=010501','010501']
];	
// Culture
this.S_Menu[3] = [
	['Features','features',this.jd_url + '/article/list.asp?cat_code=020101','020101'],
	['Arts','arts',this.jd_url + '/article/list.asp?cat_code=020201','020201'],
	['Entertainment','Entertainment',this.jd_url + '/article/list.asp?cat_code=020301','020301'],
	['Trend Living','trend',this.jd_url + '/article/list.asp?cat_code=020401','020401'],
	['Food£¦Trips','food',this.jd_url + '/article/list.asp?cat_code=020501','020501'],
	['Ticket','ticket',this.jd_url + '/article/list.asp?cat_code=020601','020601'],
	['Horoscope','horoscope',this.jd_url + '/etc/horoscope/index.html','029901'],
	['Special series','Special',this.jd_url + '/article/list.asp?cat_code=020701','020701'],

	['Art in everyday thing¡Çs','Special_s',this.jd_url + '/article/list.asp?cat_code=020702','020702'],
	['Foreign CEO¡Çs cooking korean ','Special_s',this.jd_url + '/article/list.asp?cat_code=020706','020706'],
	['Brian¡Çs Gwangdae  ','Special_s',this.jd_url + '/article/list.asp?cat_code=020707','020707'],
	['Chef ¡¯s Special','Special_s',this.jd_url + '/article/list.asp?cat_code=020703','020703'],
	['Old Seoul: frame by frame','Special_s',this.jd_url + '/article/list.asp?cat_code=020704','020704'],
	['CUP','Special_s',this.jd_url + '/article/list.asp?cat_code=020705','020705']

];		
// Foreign community
this.S_Menu[4] = [
	['Activities','activities',this.jd_url + '/article/list.asp?cat_code=040101','040101'],
	['Events','events','http://bbs.joins.com/list.asp?tb_name=jd_event','049901'],
	['Diplomatic pouch','diplomatic','http://bbs.joins.com/list.asp?tb_name=jd_pouch2','040201'],
	['About Korea','about',this.jd_url + '/article/list.asp?cat_code=040301','040301'],
	['Special series','Special',this.jd_url + '/article/list.asp?cat_code=040401','040401'],

	['G-20 Summit','Special_s',this.jd_url + '/article/list.asp?cat_code=040405','040405'],
	['Diplomatic Waltz','Special_s',this.jd_url + '/article/list.asp?cat_code=040402','040402'],
	['Kitchen talk','Special_s',this.jd_url + '/article/list.asp?cat_code=040403','040403'],
	['blogsphere','Special_s',this.jd_url + '/article/list.asp?cat_code=040404','040404']
];		
// English Clinic
this.S_Menu[5] = [
	['Audio news','voice',this.jd_url + '/article/list.asp?cat_code=060101','060101'],
	['Bilingual column','bilingual',this.jd_url + '/article/list.asp?cat_code=060201','060201'],
	['Teen Teen world','teen',this.jd_url + '/article/list.asp?cat_code=060301','060301'],
	['THINK English','think',this.jd_url + '/article/list.asp?cat_code=060401','060401'],

	['Current Issue','think_s',this.jd_url + '/article/list.asp?cat_code=060402','060402'],
	['Feature Story','think_s',this.jd_url + '/article/list.asp?cat_code=060403','060403'],
	['Editorial Reading','think_s',this.jd_url + '/article/list.asp?cat_code=060404','060404'],
	['Pictionary','think_s',this.jd_url + '/article/list.asp?cat_code=060405','060405'],
	['Writing Clinic','think_s',this.jd_url + '/article/list.asp?cat_code=060406','060406'],
	['¿µ¾î ÀÌ¾ß±â','think_s',this.jd_url + '/article/list.asp?cat_code=060407','060407']

	//['Q & A','qna','http://bbs.joins.com/list.asp?tb_name=jd_qna','069901']
];		
// Sports
this.S_Menu[6] = [
	['Domestic','Domestic',this.jd_url + '/article/list.asp?cat_code=070101','070101'],
	['International','International',this.jd_url + '/article/list.asp?cat_code=070201','070201']

	//['Q & A','qna','http://bbs.joins.com/list.asp?tb_name=jd_qna','069901']
];		
// Customer Service
this.S_Menu[7] = [
	['Subscription','subscription','http://joongangdaily.joins.com/etc/subscribe','CS0101'],
	['Sample Request','sample',this.jd_url + '/etc/sample/request.asp','CS0201'],
	['Newsletter Request','teen',this.jd_url + '/etc/newsletter/index.html','CS0301']
];	

// BBS
this.S_Menu[8] = [
	['Notice','notice','http://bbs.joins.com/list.asp?tb_name=jd_notice','ET0101'],
	['AD community','adcommunity','http://bbs.joins.com/list.asp?tb_name=jd_ad','ET0201']	
];

// °Ë»ö, PDF, ½Ã°£µî ¿ÞÂÊ¸Þ´º°¡ ÇÊ¿ä¾ø´Â °Íµé ¸ðÀ½
this.S_Menu[9] = [
	['Search','search','http://joongangdaily.joins.com/search/index.html','NL0101'],
	['Time Difference','time','http://joongangdaily.joins.com/etc/time/','NL0201'],
	['PDF service','pdf','http://joongangdaily.joins.com/etc/pdf/','NL0301'],	
	['Sitemap','sitemap','http://joongangdaily.joins.com/company/sitemap.html','NL0401']	
];

// Company(Policy)
this.S_Menu[10] = [
	['Terms of Use','terms','http://joongangdaily.joins.com/company/terms.html','CO0101'],	
	['Copyright Policy','copyright','http://joongangdaily.joins.com/company/copyright.html','CO0201'],	
	['Privacy Policy','privacy','http://joongangdaily.joins.com/company/privacy.html','CO0301'],	
	['E-mail address privacy','email','http://joongangdaily.joins.com/company/email.html','CO0401']
];

// About Us
this.S_Menu[11] = [
	['About the paper','about','http://joongangdaily.joins.com/company/about1.html','AB0101'],	
	['Contact Us','contact','http://joongangdaily.joins.com/company/contact.html','AB0201'],	
	['Advertising','advertising','http://joongangdaily.joins.com/company/advertising.html','AB0301'],	
	['FAQ','faq','http://joongangdaily.joins.com/company/faq_eng.html','AB0401'],
	['Q & A','qna','http://joongangdaily.joins.com/company/qna.asp','AB0501']//,
	//['Event','event','http://joongangdaily.joins.com/company/intern.html','AB0601']
];



// ¼­ºê Å¸ÀÌÆ²(S_Menu¿Í Â÷ÀÌÁ¡-->ÀÌ ¹è¿­¿¡ °ªÀÌ ¾øÀ¸¸é ³ëÃâÀÌ ¾ÈµÊ)
this.S_MenuTitle = [    
    ['040201','Diplomatic pouch'],
    ['049901','Events'],
    ['060501','THINK English'],    
    //['069901','Q&A'],    
    ['CS0101','Subscription'],
    ['CS0201','Sample Request'],
    ['CS0301','Newsletter Request'],
    ['ET0101','Notice'],
    ['ET0201','AD community'],    
    ['NL0101','Search'],
    ['NL0201','Time Difference'],
    ['NL0301','PDF service'],
    ['CO0101','Terms of Use'],  
    ['CO0201','Copyright Policy'],  
    ['CO0301','Privacy Policy'],  
    ['CO0401','E-mail address privacy'],        
    ['AB0101','About the paper'],  
    ['AB0201','Contact Us'],  
    ['AB0301','Advertising'],  
    ['AB0401','FAQ']// ,
	//['AB0601','Event']
]
	
	
var weekDayname = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
var monthName   = new Array("January","February","March","April","May","June","July","August","September","October","November","December");


document.write("<body style='padding:0 0 0 0' >");    

document.write("<div id='div_gn' style='margin-bottom:15px;' align='center'></div>");
document.write("<div id='div_logo' style='margin-bottom:6px;' align='center'></div>");
document.write("<div id='div_menu' style='margin-bottom:8px;' align='center'></div>");

if(typeof(PAGE_TYPE) == "undefined") PAGE_TYPE = "LEFTMENU";

// ¿ÞÂÊ¸Þ´º°¡ ÀÖ´Â ±¸Á¶ÀÏ °æ¿ì
if(PAGE_TYPE=="LEFTMENU"){
    document.write("<div align='center' style='margin-bottom:20px'>");
    document.write("<table width='960' cellspacing='0' cellpadding='0' border='0' align='center'>");
    document.write("<tr>");
    document.write("<td width='140' valign='top' id='td_leftmenu'></td>");
    document.write("<td width='22' valign='top'></td>");
    document.write("<td width='542' valign='top'>");
}else{
    document.write("<table width='960' cellspacing='0' cellpadding='0' border='0' align='center'>");
    document.write("<tr>");
    document.write("<td width='704' valign='top'>");   
}       
   
//location    
// ±â»çº¸±â ÆäÀÌÁö°¡ ¾Æ´Ï¸é ¿©¹éÀ» ÁÜ
if(location.href.indexOf("/article/view.asp")<0) document.write("	<div style='margin-bottom:15px;display:none' id='div_location'>");
document.write("	<table width='100%' cellspacing='0' cellpadding='0' border='0'>");
document.write("	<tr>");
document.write("	<td height='20' class='gulim gray' id='td_location'>");

document.write("	</td></tr>");
document.write("	<tr>");
document.write("	<td width='100%' height='2' style='background:url(http://images.joins.com/ui_jmn/daily07/bg_wline.gif) repeat-x;'></td>");
document.write("	</tr>");
document.write("	</table>");
if(location.href.indexOf("/article/view.asp")<0) document.write("</div>");


// ¼­ºê Å¸ÀÌºí ¿µ¿ª 
// S_MenuTitle ¹è¿­¿¡  servicecode¿¡ ÇØ´çÇÏ´Â °ªÀÌ ÀÖÀ» °æ¿ì¿¡¸¸ display:blockÀ¸·Î º¯°æµÊ
document.write("<div align='center' style='margin-bottom:18px;display:none' id='div_subtitle'>");
document.write("<table width='100%' cellpadding='0' cellspacing='0' border='0'>");
document.write("<tr>");
document.write("<td class='times' id='td_subtitle'></td>");
document.write("</tr>");
document.write("</table>");
document.write("</div>");
    

// ÇöÀç½Ã°£ Ç¥½Ã(60ÃÊ¸¶´Ù ÇÑ¹ø ½ÇÇà)
function setCurrentTime(){
    var gdCurDate = new Date();
    var giYear = gdCurDate.getFullYear();
    var giMonth = gdCurDate.getMonth();
    var giDay = gdCurDate.getDate();
    var giWeek = gdCurDate.getDay();    
    var giHours = gdCurDate.getHours();
    var giMinute = gdCurDate.getMinutes();
    
    
    document.getElementById("div_time").innerHTML = weekDayname[giWeek] + ", "+ monthName[giMonth] +" "+ giDay +", "+ giYear +" KST "+ giHours +":"+ giMinute +" (GMT+9)";
    setTimeout("setCurrentTime()",60000);
}


// locationÇ¥½Ã 
function setLocation(ServiceCode){
	FCode = ServiceCode.substring(0,2);
	SCode = ServiceCode;    	
	
	if(ServiceCode!="000000"){    
        var strTemp = " <span class='js_top'><a href='http://joongangdaily.joins.com'> Home</a> ";
    	for(i=0;i<F_Menu.length;i++){ 
            if(FCode==F_Menu[i][1]){	      
                if(F_Menu[i][0]!="") strTemp += " > " + F_Menu[i][0];
			       	for(j=0;j<S_Menu[i].length;j++){
	                    if(S_Menu[i][j][3]==SCode){	  
						if(SCode.substr(0,4) == "0604" && SCode !="060401"){strTemp += " > "+S_Menu[5][3][0];}
						if(SCode.substr(0,4) == "0506" && SCode !="050601"){strTemp += " > "+S_Menu[1][5][0];}
						if(SCode.substr(0,4) == "0207" && SCode !="020701"){strTemp += " > "+S_Menu[3][7][0]; }
						if(SCode.substr(0,4) == "0404" && SCode !="040401"){strTemp += " > "+S_Menu[4][4][0];}
                        strTemp += " > <strong>"+ S_Menu[i][j][0] +"</strong></span>";
                        break;
                    }
                }
                break;
            }
        }                
        if(document.getElementById("td_location")!=null) document.getElementById("td_location").innerHTML = strTemp;
        if(document.getElementById("div_location")!=null) document.getElementById("div_location").style.display = "block";
    }
}

// ¼­ºêÅ¸ÀÌÆ² Ç¥½Ã
function setSubTitle(ServiceCode){
    
	FCode = ServiceCode.substring(0,2);
	SCode = ServiceCode;    

    for(i=0;i<S_MenuTitle.length;i++){    
		if(ServiceCode==S_MenuTitle[i][0]){    
				if(FCode=="04" || FCode=="06"){
					document.getElementById("td_subtitle").innerHTML = "<img src='http://images.joins.com/ui_jmn/daily07/icon_point04_r.gif' align='absmiddle' style='margin:0 6 0 0px'><span class='jd_pagetit_r' id=''>"+ S_MenuTitle[i][1] +"</span>";                
				}else{
					document.getElementById("td_subtitle").innerHTML = "<img src='http://images.joins.com/ui_jmn/daily07/icon_point04.gif' align='absmiddle' style='margin:0 6 0 0px'><span class='jd_pagetit' id=''>"+ S_MenuTitle[i][1] +"</span>";                
				}

			}
            document.getElementById("div_subtitle").style.display = "block";
            return;
    }    
    document.getElementById("div_subtitle").style.display = "none";
}

// ´ëºÐ·ù ÇÏ´Ü ¼­ºê¸Þ´º »ý¼º(´ëºÐ·ùÁß 6°³¸¸)
function setSubMenu(ServiceCode){

	FCode = ServiceCode.substring(0,2);
	SCode = ServiceCode;
	
    var strResult = '';
    var tabIdx = 1;
    var padding = '';
	for(i=0;i<7;i++){   // ´ë¸Þ´º 6°³¸¸ 	
	    if(i==0) padding = 'padding-left:10';
	    else if(i==1) padding = 'padding-left:12';
	    else if(i==2) padding = 'padding-left:45';
	    else if(i==3) padding = 'padding-left:45';
	    else if(i==4) padding = 'padding-left:210';
	    else if(i==5) padding = 'padding-left:230';
		else if(i==6) padding = 'padding-left:320';
	         
	    if(FCode==F_Menu[i][1]){
	        divStyle = "display:block;" + padding;
	        tabIdx = i+1;
	    }else
	        divStyle = "display:none;" + padding;	    
	        
	    strResult += "<div id='mainnav"+ (i+1) +"' style='"+ divStyle +"'>";	    
        for(j=0;j<S_Menu[i].length;j++){

//s) Think English ¿¹¿ÜÃ³¸®
if(S_Menu[i][j][1]=="think_s" || S_Menu[i][j][1]=="Special_s") {
} else {
//e) Think English ¿¹¿ÜÃ³¸®

            if(j>0) strResult += "<span style='color:#C30202'>&nbsp;<strong><img src='http://images.joins.com/ui_jmn/daily07/bullet_dt_red.gif' style='margin:0 4 3 4px'></strong>&nbsp;</span>";

            if(S_Menu[i][j][3]==SCode)                    
                strResult += "<a href='"+ S_Menu[i][j][2] +"'>"+ S_Menu[i][j][0] +"</a>";
            else 
                strResult += "<a href='"+ S_Menu[i][j][2] +"'>"+ S_Menu[i][j][0] +"</a>";
}
        }
	    strResult += "</div>";
	}    	
	setTimeout("naviChangeLayer("+ tabIdx +");",100);
	return strResult;
}

// ¿ÞÂÊ¸Þ´º html»ý¼º(foreign,english clinic´ëºÐ·ùÀÏ °æ¿ì ºÓÀº »ö °è¿­ÀÇ ¸ð¾çÀÌ ³ª¿È)
function setLeftMenu(ServiceCode){
	FCode = ServiceCode.substring(0,2);
	SCode = ServiceCode;    
	
	if(ServiceCode=='000000') return '';	
	
	//strResult = "<div id='div_leftmenu'>";		
	//strResult = "<table border='0' width='100%' cellspacing='0' cellpadding='0'>";
	//strResult += "<tr><td>";
	strResult = "";	
	strResult += "<div style='margin-bottom:11px;'>";	
	for(i=0;i<F_Menu.length;i++){    	    
        if(FCode==F_Menu[i][1]){	  
              
            strResult += "<table width='100%' cellpadding='0' cellspacing='0' border='0'>";
            strResult += "<tr>";
            strResult += "<td><img src='http://images.joins.com/ui_jmn/daily07/img_leftsub_"+ F_Menu[i][1] +".gif' alt='' width='140' height='34'></td>";
            strResult += "</tr>";
            strResult += "</table>";
            if(FCode!="04" && FCode!="06")
                strResult += "<table width='140' cellpadding='0' cellspacing='0' border='0' bgcolor='F9F1EC' style='border-left:1px solid; border-bottom:1px solid; border-right:1px solid;  border-color:#B55915;'>";
            else
                strResult += "<table width='140' cellpadding='0' cellspacing='0' border='0' bgcolor='FFF2ED' style='border-left:1px solid; border-bottom:1px solid; border-right:1px solid;  border-color:#B1454F;'>";
            
            for(j=0;j<S_Menu[i].length;j++){
                if(j>0){
                    strResult += "<tr>";
                    strResult += "<td height='1' style='background:url(http://images.joins.com/ui_jmn/daily07/bg_leftmenu01.gif) repeat-x; height:1px'></td>";
                    strResult += "</tr>";
                }
                if(S_Menu[i][j][3]==SCode){
                    if(FCode!="04" && FCode!="06")
                        td_style = "bgcolor='#ffffff' class='leftmenu01'";
                    else
                        td_style = "bgcolor='#ffffff' class='leftmenu_r01'";

//s) Think English ¿¹¿Ü
                    if(FCode=="06"&& S_Menu[i][j][1]=="think_s"  || FCode=="05"&& S_Menu[i][j][1]=="Special_s" || FCode=="02"&& S_Menu[i][j][1]=="Special_s" || FCode=="04"&& S_Menu[i][j][1]=="Special_s") td_style += " align=right ";
//e) Think English ¿¹¿Ü

                }else{
                    if(FCode!="04" && FCode!="06")
                        td_style = "class='leftmenu'";

                    else
                        td_style = "class='leftmenu_r'";
//s) Think English ¿¹¿Ü
                    if(FCode=="06"&& S_Menu[i][j][1]=="think_s"  || FCode=="05"&& S_Menu[i][j][1]=="Special_s" || FCode=="02"&& S_Menu[i][j][1]=="Special_s" || FCode=="04"&& S_Menu[i][j][1]=="Special_s") td_style += " align=right ";
//e) Think English ¿¹¿Ü
                }    
                strResult += "<tr>";
                strResult += "<td height='26' "+ td_style +" style='padding-left:11px;padding-right:5px;'><a href='"+ S_Menu[i][j][2] +"'>"+ S_Menu[i][j][0] +" </a></td>";
                strResult += "</tr>";

//s Think English ¿¹¿Ü
/*
				if(FCode=="06"&&S_Menu[i][j][1]=="think"){
					for(ti=0;ti<Think_Menu.length;ti++){
						strResult += "<tr>";
						strResult += "<td height='26' "+ td_style +" style='padding-left:11px;'><a href='"+ Think_Menu[ti][2] +"'><div align=right>"+ Think_Menu[ti][0] +"&nbsp;&nbsp;</div></a></td>";
						strResult += "</tr>";
					}
				}
*/
//e Think English ¿¹¿Ü
            }
			
			strResult += "</table>";    
        }    
    }
    strResult += "</div>";
    
 
	// English Clinic
	if(FCode!="06"){
    	var imgFix = "";
    	var titClass = "blue bold";
    	 
    	if(FCode=="04" || FCode=="06"){ 
    	    imgFix = "_r" 
    	    titClass = "redpink bold";
    	};
    	
    	strResult += "<div style='margin-bottom:11px;'>";
    	strResult += "<table width='140' cellspacing='0' cellpadding='0' border='0'>";
    	strResult += "<tr>";	
    	strResult += "<td height='28' style='background:url(http://images.joins.com/ui_jmn/daily07/bx_subec01"+ imgFix +".gif) no-repeat;padding-left:8' class='"+ titClass +"'><a href='http://joongangdaily.joins.com/article/list.asp?cat_code=060101'>English Clinic</a></td>";
    	strResult += "</tr>";
    	strResult += "<tr>";
    	strResult += "<td>";
    	if(FCode=="04" || FCode=="06")
    	    strResult += "	<table width='100%' cellpadding='0' cellspacing='0' border='0' style='border-left:1px #D97B84 solid; border-right:1px #D97B84 solid;'>";	    
    	else
    	    strResult += "	<table width='100%' cellpadding='0' cellspacing='0' border='0' style='border-left:1px #C7C7C7 solid; border-right:1px #C7C7C7 solid;'>";
    	strResult += "	<tr>";
    	strResult += "	<td height='24' class='gray' style='padding:2 0 0 7px'><img src='http://images.joins.com/ui_jmn/daily07/icon_ec01"+ imgFix +".gif' style='margin-right:6px' align='absmiddle'><a href='http://joongangdaily.joins.com/article/list.asp?cat_code=060101'>Audio news</a></td>";
    	strResult += "	</tr>";
    	strResult += "	<tr>";
    	strResult += "	<td height='1' class='dtline'></td>";
    	strResult += "	</tr>";
    	strResult += "	<tr>";
    	strResult += "	<td height='24' class='gray' style='padding:2 0 0 7px'><img src='http://images.joins.com/ui_jmn/daily07/icon_ec02"+ imgFix +".gif' style='margin-right:6px' align='absmiddle'><a href='http://joongangdaily.joins.com/article/list.asp?cat_code=060201'>Bilingual column</a></td>";
    	strResult += "	</tr>";
    	strResult += "	<tr>";
    	strResult += "	<td height='1' class='dtline'></td>";
    	strResult += "	</tr>";
    	strResult += "	<tr>";
    	strResult += "	<td height='24' class='gray' style='padding:2 0 0 7px'><img src='http://images.joins.com/ui_jmn/daily07/icon_ec03"+ imgFix +".gif' style='margin-right:6px' align='absmiddle'><a href='http://joongangdaily.joins.com/article/list.asp?cat_code=060301'>Teen Teen World</a></td>";
    	strResult += "	</tr>";
    	strResult += "	<tr>";
    	strResult += "	<td height='1' class='dtline'></td>";
    	strResult += "	</tr>";
    	strResult += "	<tr>";
    	strResult += "	<td height='24' class='gray' style='padding:2 0 0 7px'><img src='http://images.joins.com/ui_jmn/daily07/icon_ec04"+ imgFix +".gif' style='margin-right:6px' align='absmiddle'><a href='"+ this.jd_url + "/article/list.asp?cat_code=060401'>THINK English</a></td>";
    	strResult += "	</tr>";
    	strResult += "	<!--tr>";
    	strResult += "	<td height='1' class='dtline'></td>";
    	strResult += "	</tr>";
    	strResult += "	<tr>";
    	strResult += "	<td height='21' valign='bottom' class='gray' style='padding:0 0 1 7px;'><img src='http://images.joins.com/ui_jmn/daily07/icon_ec05"+ imgFix +".gif' style='margin-right:6px' align='absmiddle'><a href='http://bbs.joins.com/list.asp?tb_name=jd_qna'>Q & A</a></td>";
    	strResult += "	</tr-->";
    	strResult += "	</table>";
    	strResult += "</td>";
    	strResult += "</tr>";
    	strResult += "<tr>";
        strResult += "<td height='5' style='background:url(http://images.joins.com/ui_jmn/daily07/bx_subec02"+ imgFix +".gif) no-repeat;padding-left:8'></td>";
    	strResult += "</tr>";
    	strResult += "</table>";
    	strResult += "</div>";
    }
	
	//strResult += "</td></tr><tr><td id='td_photoscroll' style='position:relative;'>";
	
	strResult += "<div id='div_leftmenu' style='position:relative;'>";		

	strResult += "<div id='divLeftPhoto' style='position:absolute; z-index:10;'>";
	strResult += "<table width='100%' cellspacing='0' cellpadding='0' border='0' style='background-color:#fff;border:2px #d6d6d6 solid;'>";
	strResult += "<tr>";
	strResult += "<td>";
	strResult += "	<div style='margin:1 1 11 1px;'>";		
	strResult += "	<table cellspacing='0' cellpadding='0' border='0'>";
	strResult += "	<tr>";
	strResult += "	<td width='134' height='22' bgcolor='#E1DFDF' class='gray' valign='bottom' style='padding:0 0 4 4px;'><strong>Today's photo</strong><a href='http://joongangdaily.joins.com/article/list.asp?ctype=P' target='_parent'><img src='http://images.joins.com/ui_jmn/daily07/btn_more01.gif' alt='more' width='30' height='9' align='absmiddle' style='margin-left:10px'></a></td>";
	strResult += "	</tr>";
	strResult += "	<tr>";
	strResult += "	<td style='padding:11 8 0 8px;'>";		
	strResult += "  <iframe name='fraLeftPhoto' src='http://joongangdaily.joins.com/_include/html/2007_leftphoto.html' width='100%' height='490' frameborder='0' scrolling='no'></iframe>";	
	strResult += "	</td>";
	strResult += "	</tr>";
	strResult += "	</table>";	
	strResult += "	</div>";
	strResult += "</td>";
	strResult += "</tr>";
	strResult += "</table>";
	strResult += "</div>";
	
	strResult += "</div>";
	
    if(document.getElementById("td_leftmenu")!=null){   
         document.getElementById('td_leftmenu').innerHTML = strResult;
         setTimeout("Initializedivleftphoto();",100);
    }
}

// GN/Logo/TopMenu¼³Á¤
function setTop(serviceCode){

    // gn and logo
    var strGn = "";
    strGn += "<table width='960' border='0' cellspacing='0' cellpadding='0'>";
    strGn += "<tr> ";
    strGn += "<td height='19' align='right' style='background:url(http://images.joins.com/ui_jmn/daily07/bg_gn01.gif) repeat-x; height:19px;'>";
   
	strGn += "<table width='505' cellspacing='0' cellpadding='0' border='0'>";
	strGn += "<tr>";
	strGn += "<td align='left' bgcolor='#FFFFFF'><img src='http://images.joins.com/ui_jmn/daily07/img_gn01.gif' width='3' height='4'></td>";
	strGn += "</tr>";
	strGn += "<tr>";
	strGn += "<td align='right'>";
	
	strGn += "<a href='http://www.joins.com/'><img src='http://images.joins.com/ui_jmn/daily07/btn_gn_joins.gif'></a>";
	strGn += "<a href='http://enports.joins.com/'><img src='http://images.joins.com/ui_jmn/daily07/btn_gn_is.gif'></a>";
	strGn += "<a href='http://magazine.joins.com/center/index.asp'><img src='http://images.joins.com/ui_jmn/daily07/btn_gn_mgz.gif'></a>";
	strGn += "<a href='http://myfriday.joins.com/'><img src='http://images.joins.com/ui_jmn/daily07/btn_gn_mf.gif'></a>";
	strGn += "<a href='http://cnn.joins.com/'><img src='http://images.joins.com/ui_jmn/daily07/btn_gn_cnn.gif'></a>";
	strGn += "<a href='http://www.patzzi.com/'><img src='http://images.joins.com/ui_jmn/daily07/btn_gn_pz.gif'></a>";
	strGn += "<a href='http://joongangdaily.joins.com/'><img src='http://images.joins.com/ui_jmn/daily07/btn_gn_jd.gif'></a>";
    if(getCookie("Joins_LoginStatus") == "True" && getCookie("Joins_ValidLogin") == "True" )
        strGn += "<a href='http://login.joins.com/Logout.asp'><img src='http://images.joins.com/ui_jmn/daily07/btn_logout.gif' width='49' height='16' alt='' border='0' style='margin-left:7px;' align='absmiddle'></a><a href='http://myjoins.joins.com/'><img src='http://images.joins.com/ui_jmn/daily07/btn_myjoins.gif' width='63' height='16' alt='' border='0' align='absmiddle'></a>";	    
    else				
        strGn += "<a href='http://login.joins.com/'><img src='http://images.joins.com/ui_jmn/daily07/btn_login.gif' align='absmiddle' style='margin-left:7px;'></a><a href='http://myjoins.joins.com/register/regist.asp'><img src='http://images.joins.com/ui_jmn/daily07/btn_member01.gif' align='absmiddle'></a>";          
    strGn += "	</td>";
    strGn += "	</tr>";
    strGn += "	</table>";
    strGn += "</td>";
    strGn += "</tr>";
    strGn += "</table>";    
    //document.getElementById("div_gn").innerHTML = strGn;
    
    var strLogo = "";    
    strLogo += "<form name='frmSearchTop' action='http://joongangdaily.joins.com/search/index.html' method='get'>";
    strLogo += "<table width='960' height='64' cellpadding='0' cellspacing='0' border='0'>";    
    strLogo += "<tr>";
    strLogo += "<td><a href='http://joongangdaily.joins.com'><img src='http://images.joins.com/ui_jmn/daily07/logo.gif' alt='JoongAng Daily'></a></td>";
    strLogo += "<td align='right' valign='bottom' class='black'>";
    strLogo += "<img src='http://images.joins.com/ui_jmn/daily07/icon_point02.gif' style='margin:3 4 0 0px;' align='absmiddle'>Search<input type='text' name='query' id='' size='' class='inp_u' style='margin:0 0 0 5px; border-color:#b0b0b0; width:128px; height:19px; padding-top:2px;'><input type='image' src='http://images.joins.com/ui_jmn/daily07/btn_search01.gif' align='absmiddle' style='margin:0 0 1 4px;'>";
    strLogo += "</td>";
    strLogo += "</tr>";    
    strLogo += "</table>";        
    strLogo += "</form>";
    document.getElementById("div_logo").innerHTML = strLogo;
   
    
    var strMenu = "";    
    strMenu += "<!--// s : top_navigation //-->";
    strMenu += "<table width='960' cellspacing='0' cellpadding='0' border='0' align='center'>";
    strMenu += "<tr><td>";
    strMenu += "	<!--// s : topnav_1depth //-->";
    strMenu += "	<table width='960' cellspacing='0' cellpadding='0' border='0' align='center'>";
    strMenu += "	<tr>";
    strMenu += "	<td height='36' style='background:url(http://images.joins.com/ui_jmn/daily07/bg_topnavi01.gif) repeat-x;'>";
    strMenu += "	<div id='menuset1' style='display:none; width:710px; height:36px;'><a href='http://joongangdaily.joins.com/article/list.asp?cat_code=03'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top01_on.gif' alt='National' width='91' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(2);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top02_off03.gif' alt='Business' width='89' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(3);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top03_off01.gif' alt='opinion' width='84' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(4);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top04_off01.gif' alt='culture' width='80' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(7);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top07_off01.gif' alt='sports' width='81' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(5);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top05_off01.gif' alt='Foreign community' width='152' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(6);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top06_off01.gif' alt='english clinic' width='119' height='36' border='0'></a></div>";
    strMenu += "	<div id='menuset2' style='display:none; width:710px; height:36px;'><a href='http://joongangdaily.joins.com/article/list.asp?cat_code=03' onMouseOver='naviChangeLayer(1);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top01_off02.gif' alt='National' width='91' height='36' border='0'></a><a href='http://joongangdaily.joins.com/article/list.asp?cat_code=05'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top02_on.gif' alt='Business' width='89' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(3);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top03_off03.gif' alt='opinion' width='84' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(4);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top04_off01.gif' alt='culture' width='80' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(7);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top07_off01.gif' alt='sports' width='81' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(5);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top05_off01.gif' alt='Foreign community' width='152' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(6);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top06_off01.gif' alt='english clinic' width='119' height='36' border='0'></a></div>";
    strMenu += "	<div id='menuset3' style='display:none; width:710px; height:36px;'><a href='http://joongangdaily.joins.com/article/list.asp?cat_code=03' onMouseOver='naviChangeLayer(1);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top01_off01.gif' alt='National' width='91' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(2);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top02_off02.gif' alt='Business' width='89' height='36' border='0'></a><a href='http://joongangdaily.joins.com/article/list.asp?cat_code=01'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top03_on.gif' alt='opinion' width='84' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(4);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top04_off03.gif' alt='culture' width='80' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(7);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top07_off01.gif' alt='sports' width='81' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(5);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top05_off01.gif' alt='Foreign community' width='152' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(6);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top06_off01.gif' alt='english clinic' width='119' height='36' border='0'></a></div>";
    strMenu += "	<div id='menuset4' style='display:none; width:710px; height:36px;'><a href='http://joongangdaily.joins.com/article/list.asp?cat_code=03' onMouseOver='naviChangeLayer(1);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top01_off01.gif' alt='National' width='91' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(2);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top02_off01.gif' alt='Business' width='89' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(3);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top03_off02.gif' alt='opinion' width='84' height='36' border='0'></a><a href='http://joongangdaily.joins.com/article/list.asp?cat_code=02'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top04_on.gif' alt='culture' width='80' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(7);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top07_off03.gif' alt='sports' width='81' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(5);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top05_off01.gif' alt='Foreign community' width='152' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(6);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top06_off01.gif' alt='english clinic' width='119' height='36' border='0'></a></div>";
	strMenu += "	<div id='menuset7' style='display:none; width:710px; height:36px;'><a href='http://joongangdaily.joins.com/article/list.asp?cat_code=03' onMouseOver='naviChangeLayer(1);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top01_off01.gif' alt='National' width='91' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(2);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top02_off01.gif' alt='Business' width='89' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(3);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top03_off01.gif' alt='opinion' width='84' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(4);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top04_off02.gif' alt='culture' width='80' height='36' border='0'></a><a href='http://joongangdaily.joins.com/article/list.asp?cat_code=070101'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top07_on.gif' alt='sports' width='81' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(5);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top05_off03.gif' alt='Foreign community' width='152' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(6);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top06_off02.gif' alt='english clinic' width='119' height='36' border='0'></a></div>";    
	strMenu += "	<div id='menuset5' style='display:none; width:710px; height:36px;'><a href='http://joongangdaily.joins.com/article/list.asp?cat_code=03' onMouseOver='naviChangeLayer(1);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top01_off01.gif' alt='National' width='91' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(2);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top02_off01.gif' alt='Business' width='89' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(3);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top03_off01.gif' alt='opinion' width='84' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(4);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top04_off01.gif' alt='culture' width='80' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(7);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top07_off02.gif' alt='sports' width='81' height='36' border='0'></a><a href='http://joongangdaily.joins.com/article/list.asp?cat_code=04' ><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top05_on.gif' alt='Foreign community' width='152' height='36' border='0'><a href='#' onMouseOver='naviChangeLayer(6);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top06_off03.gif' alt='english clinic' width='119' height='36' border='0'></a></div>";
    strMenu += "	<div id='menuset6' style='display:none; width:710px; height:36px;'><a href='http://joongangdaily.joins.com/article/list.asp?cat_code=03' onMouseOver='naviChangeLayer(1);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top01_off01.gif' alt='National' width='91' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(2);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top02_off01.gif' alt='Business' width='89' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(3);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top03_off01.gif' alt='opinion' width='84' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(4);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top04_off01.gif' alt='culture' width='80' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(7);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top07_off01.gif' alt='sports' width='81' height='36' border='0'></a><a href='#' onMouseOver='naviChangeLayer(5);'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top05_off02.gif' alt='Foreign community' width='152' height='36' border='0'></a><a href='http://joongangdaily.joins.com/article/list.asp?cat_code=060101'><img src='http://images.joins.com/ui_jmn/daily07/new/tab_top06_on.gif' alt='english clinic' width='119' height='36' border='0'></a></div>";
    strMenu += "	</td>";
    //strMenu += "	<td style='padding:0 8 2 0px; background:url(http://images.joins.com/ui_jmn/daily07/bg_topnavi01.gif) repeat-x;' align='right'><span id='div_weather'></span><iframe src='http://joongangdaily.joins.com/_include/html/2007_weather.html' width=0 height=0 frameborder=0 marginheight=0 topmargin=0 scrolling=no></iframe></td>";
    strMenu += "	<td style='background:url(http://images.joins.com/ui_jmn/daily07/bg_topnavi01.gif) repeat-x;' align='right'><iframe src='http://joongangdaily.joins.com/_include/html/2007_weather.html' width='140' height='36' frameborder='0' marginheight='0' marginwidth='0' scrolling='no'></iframe></td>";
    strMenu += "	<td width='6'><img src='http://images.joins.com/ui_jmn/daily07/bg_topnavi02.gif' alt='' width='6' height='36' border='0'></td>";
    strMenu += "	</tr>";
    strMenu += "	</table>";
    strMenu += "	<!--// e : topnav_1depth //-->";
    
    strMenu += "	<!--// s : topnav_2depth //-->";
    strMenu += "	<div style='margin-bottom:1px;' align='center'>";
    strMenu += "	<table width='960' cellspacing='0' cellpadding='0' border='0' align='center'>";
    strMenu += "	<tr>";
    strMenu += "	<td valign='top' height='26' style='padding:3 0 0 10px;'>";
    
    strMenu += setSubMenu(serviceCode);
    
    strMenu += "	</td>";
    strMenu += "	<td valign='top' class='px11' style='padding:2 4 0 0px;' align='right' id='div_time'></td>";
    strMenu += "	</tr>";
    strMenu += "	</table>";
    strMenu += "	</div>";
    
    strMenu += "	<!--// e : topnav_2depth //-->";
    strMenu += "	<table width='960' cellpadding='0' cellspacing='0' border='0'>";
    strMenu += "	<tr>";
    strMenu += "	<td height='10' style='background:url(http://images.joins.com/ui_jmn/daily07/bg_navishadow.gif) no-repeat;'></td>";
    strMenu += "	</tr>";
    strMenu += "	</table>";
    strMenu += "</td>";
    strMenu += "</tr>";
    strMenu += "</table>";    
    document.getElementById("div_menu").innerHTML = strMenu;        
}


function setRight(serviceCode){
	FCode = serviceCode.substring(0,2);
	SCode = serviceCode;   
	
	if(document.getElementById("ifrmRight")==null){
        setTimeout("setRight('"+ serviceCode +"')",500);
        return;	        
	} 	
    if(FCode=="04" || FCode=="06")
        fraRight.location = "http://joongangdaily.joins.com/_include/html/right2.html";
    else
        fraRight.location = "http://joongangdaily.joins.com/_include/html/right1.html";
}

function showMenu(serviceCode){                    
    setTop(serviceCode);
    setLeftMenu(serviceCode);
    setTimeout("setCurrentTime()",50);
    setTimeout("setLocation('"+ serviceCode +"')",50);    
    setTimeout("setSubTitle('"+ serviceCode +"')",50);    
    setTimeout("setRight('"+ serviceCode +"')",50);        
   
}

var stmnLEFT = 0;
var stmnGAP1 = 0;	
var stmnGAP2 = 0;
var stmnBASE = 0;
var stmnActivateSpeed = 1;
var stmnScrollSpeed = 1;	
var stmnTimer;


function Refreshdivleftphoto() {
    
    var stmnStartPoint, stmnEndPoint, stmnRefreshTimer;
    stmnStartPoint = parseInt(divLeftPhoto.style.top, 10);
    stmnEndPoint = document.body.scrollTop-130 + stmnGAP2;
    if (stmnEndPoint < stmnGAP1 ) stmnEndPoint = stmnGAP1;
    stmnRefreshTimer = stmnActivateSpeed;

    if ( stmnStartPoint != stmnEndPoint ) {

    	if (document.body.scrollHeight >= stmnEndPoint+document.all.divLeftPhoto.clientHeight+150){
    		stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 15 );
    		divLeftPhoto.style.top = parseInt(divLeftPhoto.style.top, 10)+( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount );
    		stmnRefreshTimer = stmnScrollSpeed;
    
    	}else if (document.body.scrollHeight >= stmnEndPoint+document.all.divLeftPhoto.clientHeight+80){
    		stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 18 );
    		divLeftPhoto.style.top = parseInt(divLeftPhoto.style.top, 10)+( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount );
    		stmnRefreshTimer = stmnScrollSpeed;
    	}else{
    		divLeftPhoto.style.top = document.body.scrollHeight - document.all.divLeftPhoto.clientHeight-80
    	}
    }
    stmnTimer = setTimeout ("Refreshdivleftphoto();", stmnRefreshTimer);
}

function Initializedivleftphoto() {
    
    stmnGAP1 = document.all.div_leftmenu.clientHeight;	
    stmnBASE = document.all.div_leftmenu.clientHeight;       
    stmnGAP2 = document.all.div_leftmenu.clientHeight-470;     
    
    divLeftPhoto.style.left = stmnLEFT;
    divLeftPhoto.style.top = document.body.scrollTop + stmnBASE;
    Refreshdivleftphoto();    
}