// dcr-rec
// flash
function sh()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="850" height="550">'); 
document.write('<param name="movie" value="img/index/index.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="img/index/index.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="850" height="550"></embed>');
document.write('</object>');
}

// flash
function roadfl()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="848" height="444">'); 
document.write('<param name="movie" value="../../img/road/road.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="../../img/road/road.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="848" height="444"></embed>');
document.write('</object>');
}

// flash
function refl()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="848" height="625">'); 
document.write('<param name="movie" value="../../img/resident/junin.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="../../img/resident/junin.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="848" height="625"></embed>');
document.write('</object>');
}


// flash-title
function shsafty()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="810" height="130">'); 
document.write('<param name="movie" value="../../img/saftey/title.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="../../img/saftey/title.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="810" height="130"></embed>');
document.write('</object>');
}


// flash-title
function shcup()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="810" height="130">'); 
document.write('<param name="movie" value="../../img/c-up/title.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="../../img/c-up/title.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="810" height="130"></embed>');
document.write('</object>');
}


// flash-title
function shconcept()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="810" height="130">'); 
document.write('<param name="movie" value="../../img/concept/title.swf" />');
document.write('<param name="quality" value="high" />');
document.write(' <embed src="../../img/concept/title.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="810" height="130"></embed>');
document.write('</object>');
}


// flash-title
function shcontact()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="810" height="130">'); 
document.write('<param name="movie" value="../../img/contact/title.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="../../img/contact/title.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="810" height="130"></embed>');
document.write('</object>');
}


// flash-title
function shhistory()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="810" height="130">'); 
document.write('<param name="movie" value="../../img/history/title.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="../../img/history/title.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="810" height="130"></embed>');
document.write('</object>');
}


// flash-title
function shqanda()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="810" height="130">'); 
document.write('<param name="movie" value="../../img/qanda/title.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="../../img/qanda/title.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="810" height="130"></embed>');
document.write('</object>');
}


// flash-title
function shguid()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="810" height="130">'); 
document.write('<param name="movie" value="../../img/guide/title.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="../../img/guide/title.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="810" height="130"></embed>');
document.write('</object>');
}

// flash-title
function shjob()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="810" height="130">'); 
document.write('<param name="movie" value="../../img/job-offer-vote/title.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="../../img/job-offer-vote/title.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="810" height="130"></embed>');
document.write('</object>');
}


// flash-title
function shroad()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="810" height="130">'); 
document.write('<param name="movie" value="../../img/road/title.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="../../img/road/title.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="810" height="130"></embed>');
document.write('</object>');
}


// flash-title
function shresident()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="810" height="130">'); 
document.write('<param name="movie" value="../../img/resident/title.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="../../img/resident/title.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="810" height="130"></embed>');
document.write('</object>');
}


// flash-title
function shfamiliarity()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="810" height="130">'); 
document.write('<param name="movie" value="../../img/familiarity/title.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="../../img/familiarity/title.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="810" height="130"></embed>');
document.write('</object>');
}


// flash-title
function shfamiliaritymain()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="810" height="450">'); 
document.write('<param name="movie" value="../../img/familiarity/itumo.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="../../img/familiarity/itumo.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="810" height="450"></embed>');
document.write('</object>');
}

// flash-title
function shcuproad()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="810" height="130">'); 
document.write('<param name="movie" value="../../img/c-road/title.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="../../img/c-road/title.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="810" height="130"></embed>');
document.write('</object>');
}


// flash-title
function shcontact2()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="810" height="130">'); 
document.write('<param name="movie" value="../../img/contact/title-02.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="../../img/contact/title-02.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="810" height="130"></embed>');
document.write('</object>');
}


// pageindex
   
function backToTop() {
    var x1 = x2 = x3 = 0;
    var y1 = y2 = y3 = 0;

    if (document.documentElement) {
        x1 = document.documentElement.scrollLeft || 0;
        y1 = document.documentElement.scrollTop || 0;
    }

    if (document.body) {
        x2 = document.body.scrollLeft || 0;
        y2 = document.body.scrollTop || 0;
    }

    x3 = window.scrollX || 0;
    y3 = window.scrollY || 0;

    var x = Math.max(x1, Math.max(x2, x3));
    var y = Math.max(y1, Math.max(y2, y3));

    window.scrollTo(Math.floor(x / 2), Math.floor(y / 2));

    if (x > 0 || y > 0) {
        window.setTimeout("backToTop()", 25);
    }
}


// wincl

function WinCls(){
        window.close()
                       }

// popup

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// すむーずに！！

var eventTimer;  
var restScroll=0;

function Scroll(base,move){
    var obj_base = getElemPosition(base);
    var elem_move = document.getElementById(move);
    var obj_move = getElemPosition(elem_move);
    restScroll = obj_move.y-obj_base.y;
    eventTimer = setInterval(setScrollPosition,10);
}

function setScrollPosition() {
    var moveValue=0;
    if(Math.abs(restScroll)>80){
        moveValue = (restScroll>0)?20:-20;
    }else{
        moveValue = Math.round(restScroll/4);
    }
    parent.scrollBy(0,moveValue);
    restScroll = (restScroll>0)?restScroll-moveValue:restScroll-moveValue;
    if(moveValue==0){
        clearInterval(eventTimer);
        restScroll=0;
    }
}

function getElemPosition(elem) {
    var obj = new Object();
    obj.x = elem.offsetLeft;
    obj.y = elem.offsetTop;
    while(elem.offsetParent) {
        elem = elem.offsetParent;
        obj.x += elem.offsetLeft;
        obj.y += elem.offsetTop;
    }
    return obj;
}


