//------------------------------------------------------------------------
// common javascript functions
//------------------------------------------------------------------------

//------------------------------------------------------------------------

function ShowFlash(file,width,height)
{
 document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+width+'" height="'+height+'">');
 document.write('<param name="movie" value="' + file + '">');
 document.write('<param name="quality" value="high">');
 document.write('<embed src="' + file + '" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed>');
 document.write('</object>');
}

function ShowFlashTransparent(file,width,height)
{
 document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+width+'" height="'+height+'">');
 document.write('<param name="movie" value="' + file + '">');
 document.write('<param name="quality" value="high">');
 document.write('<param name="wmode" value="transparent">');
 document.write('<embed src="' + file + '" quality="high" pluginspage="https://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'" wmode="transparent"></embed>');
 document.write('</object>');
}

//------------------------------------------------------------------------

function WriteCookie(name,value,minutes,domain,path)
{
	expire = new Date((new Date()).getTime() + minutes * 60000);
 e = "; expires=" + expire.toGMTString();
 if (domain != null) d = "; domain=" + domain; else d="";
 if (path != null) p = "; path=" + path; else p="";
 document.cookie = name + "=" + escape(value) + e + d + p;
}
