 function launchwin(winurl,winname,winfeatures)
 {
 window.open(winurl,winname,winfeatures);
 }



//add flash to page

	var flashversion = 0;
	if (navigator.plugins && navigator.mimeTypes.length) {
		var x = navigator.plugins["Shockwave Flash"];
		if(x && x.description) {
			var y = x.description;
   			flashversion = y.charAt(y.indexOf('.')-1);
		}
	} else {
		result = false;
	    for(var i = 15; i >= 3 && result != true; i--){
   			execScript('on error resume next: result = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+i+'"))','VBScript');
   			flashversion = i;
   		}
	}

	
function theflash(movie,width,height,text) {

	if (flashversion >= 8)
{
	
	document.write('<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="'+width+'" height="'+height+'">\n');
    document.write('<param name="movie" value="'+movie+'">\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<param name="menu" value="false">\n');
	document.write('<param name="bgcolor" value="#000000">\n');
	document.write('<embed src="'+movie+'" width="'+width+'" height="'+height+'" quality="high" bgcolor="#000000" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false"></embed>\n');
    document.write('</object>\n');
	
}

else
{
	document.write('<b>'+text+'</b>');
	
	}
}


