/*
w = width, h = height
vs = vertical space
l = language (th, en)
*/
function show_flash(flash_name, w, h, vs, l, id, url1) {
    if(id == '') {
        id = 'ShockwaveFlash2';
    }
    document.write('<div align=center><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="' + w + '" height="' + h + '" vspace="' + vs + '" id="' + id + '">\n');
    document.write('<param name="movie" value="' + flash_name + '" />\n');
    document.write('<param name="flashvars" value="lang=' + l + '" />\n');
    document.write('<param name="wmode" value="transparent" />\n');
    document.write('<embed src="' + flash_name + '" width="' + w + '" height="' + h + '" vspace="' + vs + 
            '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ' +
            'type="application/x-shockwave-flash" wmode="transparent" />\n');
    document.write('</object></div>\n');
}

function show_flash_opaque(flash_name, w, h, vs, l, id) {
    if(id == '') {
        id = 'ShockwaveFlash2';
    }
    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="' + w + '" height="' + h + '" vspace="' + vs + '" id="' + id + '">\n');
    document.write('<param name="movie" value="'+flash_name+'" />\n');
    document.write('<param name="flashvars" value="lang=' + l + '" />\n');
    document.write('<embed src="' + flash_name + '" width="' + w + '" height="' + h + '" vspace="' + vs +
            '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ' +
            'type="application/x-shockwave-flash" />\n');
    document.write('</object>\n');
}


function img_move_out(image_name, s, w, h, act, mousemove, mouseout)
/*
image_name = id name
s = data source (image files)
w = width, h = height
act = action click
*/
{
	document.write('<div id="'+image_name+'" style="width:'+w+'px; height:'+h+'px; background:transparent url('+s+') no-repeat scroll 0px 0px; cursor:pointer;" '+act+' onmousemove="onmouse_img_move(\''+image_name+'\', '+h+')'+mousemove+';" onmouseout="onmouse_img_out(\''+image_name+'\')'+mouseout+';"></div>');
}
function onmouse_img_move(idname, h){
	document.getElementById(idname).style.backgroundPosition = '0px -'+h+'px';
}
function onmouse_img_out(idname, h){
	document.getElementById(idname).style.backgroundPosition = '0px -0px';
}
