function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function wopen101(){
   var nw101
	nw101=window.open("", "Newwindow101","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=540");
	       nw101.location.href="tanbouki_torino/torino_05.html";
}

function wopen102(){
  var nw102
	nw102=window.open("", "Newwindow102","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=600,height=580");
	nw102.location.href="collaboration/index.html";
}

function Cart() { window.open("","Cart","location=no,status=yes,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width=550,height=550"); }

var Newwin=null;

function real_open(w,h,s_data,s_name){
ww=w.substring(0,w.length);
hh=h.substring(0,h.length);
ss_data = s_data;
ss_name = s_name;
setTimeout('go_s(ww,hh,ss_data,ss_name)',1000);
}

function go_s(wi,he,s_data,s_name) {
Newwin = window.open(s_data, s_name, "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width="+wi+",height="+he);
}

function Cart() { window.open("","Cart","location=no,status=yes,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width=550,height=550"); }
var Newwin=null;

function Blink_ie00(){
  var TimID00;
   if (navigator.appName=="Microsoft Internet Explorer"){
clearTimeout(TimID00);
TimID00=setTimeout("Blink_ie00()",700);
if(document.all["ieBlk00"].style.visibility=="visible"){
   document.all["ieBlk00"].style.visibility="hidden";
   }else{
   document.all["ieBlk00"].style.visibility="visible";
}}}


// 060425 mi2ru
var isIE  = (navigator.appName.substring(0,9)=="Microsoft"); // IE判定

// 文字点滅用定義
var count = 0;         // カウンタ
var timer = 500;       // タイマー
var col = new Array(); // 色指定配列
col[0] = "#FFFFF0";    // 色指定（背景色）
col[1] = "#FF0000";    // 色指定（文字表示色）

// 点滅関数
function ieblink(){
    document.all["new"].style.color = col[count]; // 色の変更
    if(count==1) count=0;                         // カウンタ設定
    else         ++count;                         // カウンタ設定
    setTimeout("ieblink()",timer);                // タイマー設定
}


// 100324 mi2ru
/*
    Standards Compliant Rollover Script
    Author : Daniel Nolan
    http://www.bleedingego.co.uk/webdev.php


function initRollovers() {
    if (!document.getElementById) return
    
    var aPreLoad = new Array();
    var sTempSrc;
    var aImages = document.getElementsByTagName('img');

    for (var i = 0; i < aImages.length; i++) {      
        if (aImages[i].className == 'rollover') {
            var src = aImages[i].getAttribute('src');
            var ftype = src.substring(src.lastIndexOf('.'), src.length);
            var hsrc = src.replace(ftype, '_on'+ftype);

            aImages[i].setAttribute('hsrc', hsrc);
            
            aPreLoad[i] = new Image();
            aPreLoad[i].src = hsrc;
            
            aImages[i].onmouseover = function() {
                sTempSrc = this.getAttribute('src');
                this.setAttribute('src', this.getAttribute('hsrc'));
            }   
            
            aImages[i].onmouseout = function() {
                if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_on'+ftype, ftype);
                this.setAttribute('src', sTempSrc);
            }
        }
    }
}

window.onload = initRollovers;
*/
