
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_changeProp(objName,x,theProp,theValue)
{ //v6.0
    var obj = MM_findObj(objName);
    if (obj && (theProp.indexOf("style.")==-1 || obj.style))
    {
        if (theValue == true || theValue == false)
            eval("obj."+theProp+"="+theValue);
        else
            eval("obj."+theProp+"='"+theValue+"'");
    }
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
    if (restore) selObj.selectedIndex=0;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
    window.open(theURL,winName,features);
}

clickHandler = function (e) {
	//get the resolved (non-text node) target:
	var elTarget = YAHOO.util.Event.getTarget(e);	
	//walk up the DOM tree looking for an <img>
	while (elTarget.id != "container") {
		if(elTarget.nodeName.toUpperCase() == "IMG") {
			//stop the default right click
			YAHOO.util.Event.stopEvent( e ) 	 
			return false;
			//stop looking
			break;
		} else {
			//step up the DOM and keep looking:
			elTarget = elTarget.parentNode;
		}
	}
}

function flvFTSS4()
{//v1.02
    this.style.filter="";
}

function flvFTSS3()
{//v1.02
    var v1=arguments,v2=v1[0],v3=MM_findObj(v2);
    if (v3&&v3.TSS2!=null)
    {
        clearTimeout(v3.TSS2);
    }
}

function flvFTSS2()
{//v1.02
    var v1=arguments,v2=v1[0],v3=MM_findObj(v2),v4=v1[1],v5=v1[2],v6,v7,v8,v9,v10,v11,v12=document;
    if (v3&&v3.TSS7)
    {
        flvFTSS3(v2);
        v9="flvFTSS2('"+v2+"',"+v4+","+v5+")";
        if (v4==1)
        {
            if (!v3.TSS5.complete)
            {
                v3.TSS2=setTimeout(v9,50);
                return;
            }
            v6=v3.TSS9+1;
            if (v6>v3.TSS7.length-1)
            {
                if (v3.TSS10==0)
                {
                    return;
                }
                else
                {
                    v6=0;
                }
            }
            else if (v6+1<v3.TSS7.length)
            {
                v3.TSS5.src=v3.TSS7[v6+1][0];
            }
        }
        else
        {
            if (!v3.TSS3.complete)
            {
                v3.TSS2=setTimeout(v9,50);
                return;
            }
            v6=v3.TSS9-1;
            if (v6<0)
            {
                if (v3.TSS10==0)
                {
                    return;
                }
                else
                {
                    v6=v3.TSS7.length-1;
                }
            }
            else if (v6-1>0)
            {
                v3.TSS3.src=v3.TSS7[v6-1][0];
            }
        }
        v3.TSS9=v6;
        v10=v3.TSS7[v6][0];
        v11=v3.TSS7[v6][1];
        v7=(v3.filters&&!v12.TSS6&&v11<25);
        if (v7)
        {
            if (v3.filters[0]&&v3.filters[0].status==2)
            {
                v3.filters[0].Stop();
            }
            if (v11==0)
            {
                v8="blendTrans(Duration="+v3.TSS8+")";
            }
            else
            {
                v8="revealTrans(Duration="+v3.TSS8+",Transition="+(v11-1)+")";
            }
            v3.style.filter=v8;
            v3.onfilterchange=flvFTSS4;
            v3.filters[0].Apply();
        }
        v3.src=v10;
        if (v7)
        {
            v3.filters[0].Play();
        }
        if (v5==1)
        {
            v3.TSS2=setTimeout(v9,v3.TSS4);
        }
    }
}

function flvFTSS1()
{//v1.02
    // Copyright 2003, Marja Ribbers-de Vroed, FlevOOware (www.TSS1.nl/dreamweaver/)
    var v1=arguments,v2=document,v3=v1[0],v4=MM_findObj(v3),v5,v6;
    if (v4)
    {
        v2.TSS6=(navigator.userAgent.toLowerCase().indexOf("mac")!=-1);
        v4.TSS8=v1[1]/1000;
        v4.TSS4=v1[2]+v1[1];
        v6=v1[3];
        v4.TSS10=v1[4];
        v4.TSS7=new Array();
        for (var v7=5;v7<v1.length;v7+=2)
        {
            if (v1[v7] != "")
            {
                v4.TSS7[v4.TSS7.length]=new Array(v1[v7],v1[v7+1]);
            }
        }
        v4.TSS9=0;
        v4.TSS5=new Image();
        v4.TSS5.src=v1[7];
        v4.TSS3=new Image();
        v4.TSS3.src=v1[v1.length-2];
        if (v6==1)
        {
            v5="flvFTSS2('"+v3+"',1,"+v6+")";
            v4.TSS2=setTimeout(v5,v4.TSS4);
        }
    }
}
