//************************************************************************************************
var src = '/flash/homepage.swf'

//function flashPlayer(filename, width, height)
//{
//    document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"" + width + "\" height=\""+ height +"\">");
//	document.writeln("<param name=\"movie\" value=\"" + filename + "\" />");
//	document.writeln("<param name=\"wmode\" value=\"transparent\"/>");
//	document.writeln("<param name=\"quality\" value=\"high\" />");
//	document.writeln("<embed wmode=\"transparent\" src=\"" + filename + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + width + "\" height=\""+ height +"\"></embed>");
//	document.writeln("</object>");
//}

function flashPlayer(filename, width, height) 
{
    document.write(
    '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"\n'+
    ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"\n'+
    ' WIDTH="' + width + '" HEIGHT="' + height + '" id="test">\n'+
    ' <PARAM NAME=movie VALUE="' + filename + '">\n'+
    ' <PARAM NAME=quality VALUE=high>\n'+
    ' <PARAM NAME=bgcolor VALUE=#FFFFFF>\n'+
    ' <param name=wmode value=transparent>\n' + 
    ' <EMBED src="' + filename + '"\n'+ 
    '  wmode=transparent quality=high bgcolor=#FFFFFF  WIDTH="' + width + '" HEIGHT="' + height + '" NAME="test"\n'+
    '  TYPE="application/x-shockwave-flash"\n'+
    '  PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>\n'+
    '</OBJECT>');

}

//************************************************************************************************
function show (object, imageobject)
{
    if (document.getElementById && document.getElementById(object) != null) {
		if (document.getElementById(object).style.display=='none') {
			document.getElementById(object).style.display='block';
			//change image is exists
			if(imageobject != null) {
			    document.getElementById(imageobject).style.listStyleImage = "url(/images/icon_minus.gif)";
			}
		}
		else {
			document.getElementById(object).style.display='none';
			//change image is exists
			if(imageobject != null){
			    document.getElementById(imageobject).style.listStyleImage = "url(/images/icon_plus.gif)";
			}
		}
    }
    else if (document.layers && document.layers[object] != null) {
		if (document.layers[object].display == 'none') {
			document.layers[object].display = 'block';
		}
		else {
			document.layers[object].display = 'none';
		}
    }
    else if (document.all) {
		if (document.all[object].style.display == 'none') {
			document.all[object].style.display = 'block';
		}
		else {
			document.all[object].style.display = 'none';
		}
	}
}

//************************************************************************************************
function hide(object) {
    if (document.getElementById && document.getElementById(object) != null)
         node = document.getElementById(object).style.display='none';
    else if (document.layers && document.layers[object] != null)
        document.layers[object].display = 'none';
    else if (document.all)
         document.all[object].style.display = 'none';
}

function detectOnState(ele, className)
{
    var onObject = document.getElementById(ele);
    if (navigator.appName.indexOf("Microsoft")!=-1)
        onObject.className = className;
    else
        onObject.setAttribute("class", className);
}
function detectOffState(ele, className)
{
    var OffObject = document.getElementById(ele);
    if (navigator.appName.indexOf("Microsoft")!=-1)
        OffObject.className = className;
    else            
        OffObject.setAttribute("class", className);
}