function writeSW(filename , Bg , Width , Height , nonFlashimg , Alt , CookieUSE , CookieName){

		if (CookieUSE == 1){
			var C = readCookie(CookieName);
			flashObj = filename + ".swf?visit=" + C;
		} else {
			flashObj = filename + ".swf";
		}

		document.open();
			document.write('<div>');
			if (bw.flash6){
				document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"' + Width + '\" height=\"' + Height + '\">');
				document.write('<param name=\"movie\" value=\"' + flashObj + '\">');
				document.write('<param name=\"quality\" value=\"high\">');
				document.write('<param name=\"bgcolor\" value=\"#'+ Bg +'\">');
				document.write('<param name=\"scale\" value=\"noscale\">');
				document.write('<param name=\"menu\" value=\"false\">');
				document.write('<embed src=\"' + flashObj + '\" quality=\"high\" bgcolor=\"#'+ Bg +'\"  width=\"' + Width + '\" height=\"' + Height + '\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" menu=\"false\"></embed>');
				document.write('</object>');
			} else if(!bw.flash6 && nonFlashimg == 1){
				document.write('<img src=\"img/dl.jpg\" width=\"' + Width + '\" height=\"' + Height + '\" border=\"0\" alt=\"'+ Alt +'\" usemap=\"#Map\">');
			} else if(!bw.flash6 && nonFlashimg == 0){
				document.write('<img src=\"'+ UIdir+'s.gif\" width=\"' + Width + '\" height=\"'+ Height +'\" border=\"0\" alt="" /></a>');
			}
		document.write('</div>' + '\n');
		document.close();
}




