function runflaobj(fFile,fW,fH,fID,fBg){document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+fW+'" height="'+fH+'" id="'+fID+'" align="middle">');document.write('<param name="allowScriptAccess" value="sameDomain"/>');document.write('<param name="movie" value="'+fFile+'"/>');document.write('<param name="menu" value="false"/>');document.write('<param name="quality" value="high"/>');document.write('<param name="bgcolor" value="'+fBg+'"/>');document.write('<embed src="'+fFile+'" menu="false" quality="high" bgcolor="'+fBg+'" width="'+fW+'" height="'+fH+'" name="'+fID+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>');document.write('</object>');}var stylesheet="";if(navigator.platform=="MacPPC"||navigator.platform=="MacIntel"){stylesheet="mac";}else{stylesheet="win";}function styleSetL(tarL){pathbase="../";tarpath="";for(i=0;i<=tarL;i++){if(i>=1){tarpath+=pathbase;}}if(stylesheet !=""){document.write('<link rel="stylesheet" type="text/css" href="'+tarpath+'css/textsets_'+stylesheet+'.css"/>');thislevel=tarL;bugkicker();}}var thisie=false;function bugkicker(){pathbase="../";tarpath="";for(i=0;i<=thislevel;i++){if(i>=1){tarpath+=pathbase;}}if(stylesheet=="win" && navigator.userAgent.lastIndexOf("MSIE")>=0){thisie=true;document.write('<link rel="stylesheet" type="text/css" href="'+tarpath+'css/style_winie.css"/>');document.write('<script type="text/javascript" src="'+tarpath+'js/iepngfix.js" charset="utf-8"></script>');}}function imgcng(contName,contState){document.images[contName].src="images/"+contName+"_"+contState+".gif";}function resimgcng(contName,contState){document.images[contName].src="images/res_btn_"+contName+"_"+contState+".gif";}var clipend=71;var leftend=-56;var topend=141;var mk_count=4;var mk_speed=50;var kuromovTimer=setTimeout("void(0)",1);function movkuro_act(){document.getElementById("movkuro").style.display="block";document.getElementById("movkuro").style.clip="rect(auto,auto,auto,"+(clipend+(mk_count*mk_speed))+"px)";document.getElementById("movkuro").style.left=leftend-(mk_count*mk_speed)+"px";document.getElementById("movkuro").style.top=topend+(mk_count*mk_speed/2)+"px";if(mk_count>0){mk_count--;kuromovTimer=setTimeout("movkuro_act()",70);}else{clearTimeout(kuromovTimer);}}function movkuro_start(){kuromovTimer=setTimeout("movkuro_act()",1500);}function to_open(){document.getElementById("more0").style.display="none";document.getElementById("moreelms").style.display="block";document.getElementById("more1").style.display="block";openAct();}var opencount=0;var speed=180/5;function openAct(){opencount++;if(opencount<5){document.getElementById("more1").style.height=(opencount*speed)+"px";openTimer=setTimeout("openAct()",25);}else{document.getElementById("more1").style.overflow="auto";document.getElementById("more1").style.height="auto";opencount=0;clearTimeout(openTimer);}}function to_close(){closeAct();}var closecount=0;var speed=180/4;function closeAct(){closecount++;if(closecount<5){document.getElementById("more"+nowmoreNum).style.overflow="hidden";document.getElementById("more"+nowmoreNum).style.height=(180-(closecount*speed))+"px";closeTimer=setTimeout("closeAct()",20);}else{for(i=1;i<=2;i++){if(!thisie){document.getElementById("more"+i).style.opacity=1;}else{document.getElementById("more"+i).style.filter="alpha(opacity=100)";}document.getElementById("more"+i).style.height="auto";document.getElementById("more"+i).style.overflow="hidden";document.getElementById("more"+i).style.left="0px";document.getElementById("more"+i).style.display="none";}document.getElementById("moreelms").style.display="none";document.getElementById("more0").style.display="block";closecount=0;nowmoreNum=1;clearTimeout(closeTimer);}}var nowmoreNum=1;var sidecount=0;var sidespeed1=-140/5;var sidespeed2=200/5;var sideTimer;function to_more2(){sidecount++;if(sidecount<=5){document.getElementById("more1").style.left=(sidespeed1*sidecount)+"px";if(!thisie){document.getElementById("more1").style.opacity=1-(sidecount*0.2);}else{document.getElementById("more1").style.filter="alpha(opacity="+(100-sidecount*20)+")";}sideTimer=setTimeout("to_more2()",30);}else{sidecount=0;clearTimeout(sideTimer);if(!thisie){document.getElementById("more1").style.opacity=0;}else{document.getElementById("more1").style.filter="alpha(opacity=0)";}document.getElementById("more1").style.display="none";to_more22();}}function to_more22(){sidecount++;if(sidecount<=6){document.getElementById("more2").style.display="block";document.getElementById("more2").style.left=(200-(sidespeed2*(sidecount-1)))+"px";if(!thisie){document.getElementById("more2").style.opacity=sidecount*0.2;}else{document.getElementById("more2").style.filter="alpha(opacity="+sidecount*20+")";}sideTimer=setTimeout("to_more22()",30);}else{sidecount=0;clearTimeout(sideTimer);if(!thisie){document.getElementById("more2").style.opacity=1;}else{document.getElementById("more2").style.filter="alpha(opacity=100)";}document.getElementById("more2").style.left="0px";nowmoreNum=2;}}function to_more1(){sidecount++;if(sidecount<=5){document.getElementById("more2").style.left=(sidespeed2*sidecount)+"px";if(!thisie){document.getElementById("more2").style.opacity=1-(sidecount*0.2);}else{document.getElementById("more2").style.filter="alpha(opacity="+(100-sidecount*20)+")";}sideTimer=setTimeout("to_more1()",30);}else{sidecount=0;clearTimeout(sideTimer);if(!thisie){document.getElementById("more2").style.opacity=0;}else{document.getElementById("more2").style.filter="alpha(opacity=0)";}document.getElementById("more2").style.display="none";to_more12();}}function to_more12(){sidecount++;if(sidecount<=6){document.getElementById("more1").style.display="block";document.getElementById("more1").style.left=(-140-(sidespeed1*(sidecount-1)))+"px";if(!thisie){document.getElementById("more1").style.opacity=sidecount*0.2;}else{document.getElementById("more1").style.filter="alpha(opacity="+sidecount*20+")";}sideTimer=setTimeout("to_more12()",30);}else{sidecount=0;clearTimeout(sideTimer);if(!thisie){document.getElementById("more1").style.opacity=1;}else{document.getElementById("more1").style.filter="alpha(opacity=100)";}document.getElementById("more1").style.left="0px";nowmoreNum=1;}}function imgchache(tarPage){if(tarPage=="toppage"){chacheArray1=new Array('btn_start');for(i=0;i<=chacheArray1.length-1;i++){document.images["imgchache"].src="images/top_"+chacheArray1[i]+"_on.gif";}}else if(tarPage=="answer"){chacheArray1=new Array('fukidashi_gld_top','kuro4','kuro5');for(i=0;i<=chacheArray1.length-1;i++){document.images["imgchache"].src="images/res_"+chacheArray1[i]+".jpg";}chacheArray2=new Array('fukidashi_gld_btm','btn_reg_on','btn_f21','btn_f31','btn_f32','btn_f33');for(i=0;i<=chacheArray2.length-1;i++){document.images["imgchache"].src="images/res_"+chacheArray2[i]+".gif";}chacheArray3=new Array('btmplate_toclose');for(i=0;i<=chacheArray3.length-1;i++){document.images["imgchache"].src="images/res_"+chacheArray3[i]+".png";}}}function pageloadact(tarPage){if(tarPage=="toppage"){movkuro_start();imgchache(tarPage);}else if(tarPage=="answer"){imgchache(tarPage);}}
