// JavaScript Document
function LoadFlash(url,wmode,width,Height)
{
var is_MSIEs= (navigator.appName == "Microsoft Internet Explorer"); //ÅÐ¶Ïä¯ÀÀÆ÷ 

        if (is_MSIEs)
        {
        document.write(    '<embed src="' + url + '" wmode=' + wmode + ' quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + width +     '" height="' + Height + '"></embed>'); 
        }
        else
        { 
        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='"+ width +"' height='"+ Height +"'><param name=\"movie\" value='"+url+"'><param name=\"quality\" value=\"high\"><param name=\"wmode\" value='"+wmode+"'><embed src='"+url+"' quality=\"high\" wmode='"+ wmode +"' pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width='"+ width +"' height='"+ Height +"'></embed></object>");
        }
}



function flashthis(which2){
theobject=which2
theobject.filters.alpha.opacity=0
highlighting=setInterval("highlightit(theobject)",20)
}

function leave(which2){
clearInterval(highlighting)
if (which2.style.MozOpacity)
which2.style.MozOpacity=1
else if (which2.filters)
which2.filters.alpha.opacity=100
}

function highlightit(cur2){
if (cur2.style.MozOpacity<1)
cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.1
else if (cur2.filters&&cur2.filters.alpha.opacity<90)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}


// Flash Image Extension for Dreamwever ,by Yichun Yuan(dezone@sina.com)
nereidFadeObjects = new Object();
nereidFadeTimers = new Object();
function nereidFade(object, destOp, rate, delta){
if (!document.all)
return
    if (object != "[object]"){  //do this so I can take a string too
        setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);
        return;
    }
    clearTimeout(nereidFadeTimers[object.sourceIndex]);
    diff = destOp-object.filters.alpha.opacity;
    direction = 1;
    if (object.filters.alpha.opacity > destOp){
        direction = -1;
    }
    delta=Math.min(direction*diff,delta);
    object.filters.alpha.opacity+=direction*delta;
    if (object.filters.alpha.opacity != destOp){
        nereidFadeObjects[object.sourceIndex]=object;
        nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);
    }
}



function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",80)
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=80
}
function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=5
else if (window.highlighting)
clearInterval(highlighting)
}

