for (i=0; i < aryFlash.length; i++) 
{
        var preload = new Image();
        preload.src = aryFlash[i];
}      

function onLoadImage()
{ 
        chlayer(0);  
        //document.getElementById("feature_layer0").style.visibility = "visible"
//document.getElementById("feature_layer0").style.display = "block"
//document.getElementById("sel_img0").className = "imgbg05";
        //document.getElementById("sel_txt0").className ="sel_txt" 
}
    
    
function chlayer(num)
{ 
    var flashfile = eval('aryFlash['+ num +']');
    var rightflash = eval('aryRightFlash[' + num + ']');   
    
    var topNoteSpan = document.getElementById("top_note");
    if(topNoteSpan)
    {
        if(aryTopNote[num + 1] != "")
        {
            topNoteSpan.innerHTML = aryTopNote[num + 1];
        }
        else
        {
            topNoteSpan.innerHTML = aryTopNote[0];
        }
    }
        
    
    for (i=0;i<cnt;i++)
    {
        document.getElementById("sel_img" + i).className = "";
        document.getElementById("sel_txt" + i).className ="unsel_txt";
        document.getElementById("feature_layer" + i).style.visibility = "hidden";
        document.getElementById("feature_layer" + i).style.display = "none";
    }
        
    document.getElementById("feature_layer" + num).style.visibility = "visible";
    document.getElementById("feature_layer" + num).style.display = "block";
    document.getElementById("sel_img" + num).className = "imgbg05";
    document.getElementById("sel_txt" + num).className ="sel_txt";
    
    if( aryFlashType[num] == "include")
    {
        document.getElementById("flash_display").innerHTML = '<div style="padding: 0px; margin: 0px; border: none; border-collapse: collapse;"><iframe border="0" frameborder="0" style="float: left; margin: 0px; padding: 0px; border-collapse: collapse;" width="486" height="305" src="' + flashfile + '"></iframe><div style="float: left; border-collapse: collapse; border: none;"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="286" height="305" id="rico2" align="center"><param name=movie value="' + rightflash + '"><param name=menu value=false><param name=quality value=high><param name=bgcolor value=#CCCCCC><PARAM NAME=wmode VALUE=transparent><embed src="'+ rightflash +'" menu=false wmode=transparent quality=high bgcolor=#CCCCCC width="286" height="305" align="center" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object></div><div style="clear: both;"></div></div>';
    }
    else
    {
        document.getElementById("flash_display").innerHTML =  '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="772" height="318" id="rico" align="center"><param name=movie value="' + flashfile + '"><param name=menu value=false><param name=quality value=high><param name=bgcolor value=#CCCCCC><PARAM NAME=wmode VALUE=transparent><embed src="'+ flashfile +'" menu=false wmode=transparent quality=high bgcolor=#CCCCCC width="772" height="318" align="center" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>';
    }
}