﻿/*
author:char
date:2009.12.1
*/
function detailMorepic(){
    this.img=document.getElementById("imgBig");
    this.nodeID=1;
    this.show=null;
    this.init=function(){
        if(getOs()=="Firefox"){
            this.show=function(obj){
                this.img.src=obj.src;
            }
        }else{
            this.show=function(obj){
                this.img.filters.revealTrans.Transition=Math.floor(Math.random()*23);
                this.img.filters.revealTrans.apply();
                this.img.src=obj.src;
                this.img.filters.revealTrans.play();
            }
        }
    }
    this.move_n=function(){
        if(document.getElementById("d_m_"+(this.nodeID+4))!=null){
            document.getElementById("d_m_"+this.nodeID).className="xt2";
            document.getElementById("d_m_"+(this.nodeID+4)).className="xt";
            this.nodeID++;
        }
    }
    this.move_b=function(){
        if(document.getElementById("d_m_"+(this.nodeID-1))!=null){
            document.getElementById("d_m_"+(this.nodeID+3)).className="xt2";
            document.getElementById("d_m_"+(this.nodeID-1)).className="xt";
            this.nodeID--;
        }
    }
}
function getOs()
{
    if(navigator.userAgent.indexOf("MSIE")>0) { 
         return "MSIE"; 
    }
    if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){ 
         return "Firefox"; 
    }
    if(isSafari=navigator.userAgent.indexOf("Safari")>0) { 
         return "Safari"; 
    }
    if(isCamino=navigator.userAgent.indexOf("Camino")>0){ 
         return "Camino"; 
    }
    if(isMozilla=navigator.userAgent.indexOf("Gecko/")>0){ 
         return "Gecko"; 
    } 
}
var dm=new detailMorepic();
dm.init();