function startFix(){
	fixedLAYER( 'fixedLay0' ,'center',0,-110) }
	//e4,e5,e6,n4,n6,n7,m1,o6,o7,s1用
	function fixedLAYER(layName,posString,offSetX,offSetY){

    //初期化
    if(!window.fixedLAYER[layName]){
      //--ブラウザ判定
      this.ie    = !!document.all
      this.n4    = !!document.layers
      this.w3c   = !!document.getElementById
      this.ua    = navigator.userAgent
      this.mac45 = ua.indexOf('MSIE 4.5; Mac_PowerPC') != -1
      this.mac5  = ua.indexOf('MSIE5.0;Mac_PowerPC')   != -1
      this.macie = ua.indexOf('Mac_PowerPC')  !=-1 && ie
      this.moz   = ua.indexOf('Gecko') !=-1
      this.opr   = !!window.opera
      //mace4.5以外のieはonscroll,onresizeするたびに動作
      if(this.ie&&!(this.mac45)){ 
          // fixedLAYER起動関数
          window.onscroll = window.onresize = startFix 
      }
      //--n4リサイズバグ回避用リロード処理
      if(this.n4)
        window.onresize = function(){ location.reload() }
      window.fixedLAYER[layName] = true
    }

    offSetX = parseInt(offSetX,10)
    offSetY = parseInt(offSetY,10)

    //--引数ごとの処理分岐
    if( posString == 'rightTop' ){
     
	      if(this.ie&&!this.opr) 
	           offLeft = document.body.clientWidth   + offSetX
	      else  offLeft = window.innerWidth           + offSetX
	      if(this.ie&&!this.opr) 
	            offTop  =                               offSetY
	      else  offTop  =                               offSetY

    } else if( posString == 'rightBottom' ){

	      if(this.ie&&!this.opr) 
	            offLeft = document.body.clientWidth   + offSetX
	      else  offLeft = window.innerWidth           + offSetX
	      if(this.ie&&!this.opr) 
	            offTop  = document.body.clientHeight  + offSetY
	      else  offTop  = window.innerHeight          + offSetY

    } else if( posString == 'leftBottom' ){

	      if(this.ie&&!this.opr) 
	            offLeft =                               offSetX
	      else  offLeft =                               offSetX
	      if(this.ie&&!this.opr) 
	            offTop  = document.body.clientHeight  + offSetY
	      else  offTop  = window.innerHeight          + offSetY

    } else if( posString == 'center' ){

	      if(this.ie&&!this.opr) 
	            offLeft = document.body.clientWidth/2 + offSetX
	      else  offLeft = window.innerWidth/2         + offSetX
	      if(this.ie&&!this.opr) 
	            offTop  = document.body.clientHeight/2+ offSetY
	      else  offTop  = window.innerHeight/2        + offSetY

    } else {

	      if(this.ie&&!this.opr) 
	            offLeft =                               offSetX
	      else  offLeft =                               offSetX
	      if(this.ie&&!this.opr) 
	            offTop  =                               offSetY
	      else  offTop  =                               offSetY

    }

    //--整数化する
    offLeft = parseInt(offLeft,10)
    offTop  = parseInt(offTop,10)

    //--ページ上のレイヤー位置xyを決める
    if(document.all&&!this.opr){
      var mx = document.body.scrollLeft + offLeft
      var my = document.body.scrollTop  + offTop
    } else {
      var mx = self.pageXOffset + offLeft
      var my = self.pageYOffset + offTop
    }

    //--レイヤーを動かす(maveLAYER()と同じ処理)
    if(document.getElementById){ //e5,e6,n6,n7,m1,o6,o7,s1用
        document.getElementById(layName).style.left = 0
        document.getElementById(layName).style.top  = my
    } else if(document.all){     //e4用
        document.all(layName).style.pixelLeft = 0
        document.all(layName).style.pixelTop  = my
    } else if(document.layers)   //n4用
        document.layers[layName].moveTo(mx,my)

    //Mace4.5とWinOperaはsetTimeoutでfixedLAYER()を起動する
    if(!(this.ie&&!this.mac45&!this.macie) || this.opr){
      clearTimeout(fixedLAYER[layName])
      fixedLAYER[layName]=setTimeout("fixedLAYER('"+layName+"','"+posString
                                     +"','" +offSetX+"','"+offSetY+"')",100)
    }
}


function crSwfCode(SWFFILE,FW,FH){
	var acontent = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" '
	+ '	width='+FW+' height='+FH+'>'
	+ '<param name="movie" value='+SWFFILE+'><param name=quality value=high><param name=menu value=false>'
	+ '<embed src='+SWFFILE+' '
	+ 'quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" '
	+ ' width='+FW+' height='+FH+'></embed></object>';
	document.write(acontent);
}



//PAGETOP
var timer;
var offsetY;
var scrollY;
var speed;
var angle;
function getOffset(){
	return document.all ? document.body.scrollTop:document.getElementById?window.pageYOffset:false;
}
function toTop() {
	speed = 15;
	offsetY = getOffset();
	if ( offsetY < 300 ) speed *= 2;
	if ( offsetY > 0 ) {
		offsetY /= 2;
		angle = 0;
		timer = setInterval('scrollToTop()',4);
	}
}
function scrollToTop() {
	scrollY  = Math.round( ( Math.cos(angle * 3.14/180) + 1 ) * offsetY );
	window.scrollTo(0, scrollY);
	angle += speed;
	if ( angle > 180 ) clearInterval(timer);
}

function test(m){
	var array=document.getElementById('title'+m).childNodes; 
	for(i=0;i<document.getElementById('titlearea').childNodes.length;i++){
		TARGET=document.getElementById('titlearea').childNodes[i];
		if(TARGET.nodeName=='DIV'){
			TARGET.className='v0'; 
		}
	}
	
	for(i=0;i<document.getElementById('contentsarea').childNodes.length;i++){
		TARGET=document.getElementById('contentsarea').childNodes[i];
		if(TARGET.nodeName=='DIV'){
			TARGET.className='v0'; 
		}
	}
	
	document.getElementById('title'+m).className=null;
	document.getElementById('contents'+m).className=null;
}
