// JavaScript Document

/***********************/
/* version 0.7-3       */
/***********************/


/* defaults */
var symBORDcolor = '374558';
var symBACKcolor = '374558';
var symFONTcolor = 'ffffff';
var symLINKcolor = '79ace3';
var symFONTcolor2 = '000000';

var symLmax = 6;
var symRmax = 3;
var symAmax = 2;

var symTshow = 1;
var symSshow = 1;

var symHbase = 'http://securityresponse.symantec.com/avcenter/graphics/jslogo/';
var symLbase = 'http://www.symantec.com/security_response/writeup.jsp?docid=';
var symLmore = 'http://www.symantec.com/enterprise/security_response/threatexplorer/threats.jsp';
var symRbase = 'http://www.symantec.com/security_response/writeup.jsp?docid=';
var symRmore = 'http://www.symantec.com/enterprise/security_response/removaltools.jsp';
var symAbase = 'http://www.symantec.com/enterprise/security_response/vulnerability.jsp?bid=';
var symAmore = 'http://www.symantec.com/enterprise/security_response/threatexplorer/vulnerabilities.jsp';


function symDisplay() {

	var p_style = 'style="font-family:arial; font-size:8pt; color:'+symFONTcolor+';"';
	var b_style = 'style="font-family:arial; font-size:8pt; color:'+symFONTcolor+'; font-weight:bold;"';
	var a_style = 'target="_blank" style="font-family:arial; font-size:8pt; color:'+symLINKcolor+';"';

	var r_common = 'font-family:arial; font-size:8pt; color:'+symFONTcolor+'; font-weight:bold; border-width:1px; border-style:solid; border-color:'+symFONTcolor+';';
	
	var n_common = 'font-family:arial; font-size:8pt; color:'+symFONTcolor2+'; font-weight:bold; border-width:1px; border-style:solid; border-color:'+symFONTcolor+';';

	r_style = new Array(6);

	r_style[1] = 'style="'+r_common+' background:#009a19;"';
	r_style[2] = 'style="'+n_common+' background:#e9e600;"';
	r_style[3] = 'style="'+r_common+' background:#d7cf00;"';
	r_style[4] = 'style="'+r_common+' background:#cf6b00;"';
	r_style[5] = 'style="'+r_common+' background:#c00f0f;"';

	/* header */
	document.writeln('<table bgcolor='+symBORDcolor+' width=190 cellpadding=0 cellspacing=1>');
	document.writeln(' <tr bgcolor='+symBACKcolor+'>');
	document.writeln('  <td align=center>');

	var logo_url = 'http://www.machpcs.com/newsite/images/symanteclogo.png';
	if ( symBACKcolor == 'white' ) logo_url = 'http://www.machpcs.com/images/Symanteclogo.png';
	if ( symBACKcolor == 'black' ) logo_url = 'symc_logo_black.gif';

	var full_url = symHbase+logo_url;

	document.writeln('   <table cellpadding=1 cellspacing=0>');
	document.writeln('    <tr>');
	document.writeln('     <td align=center>');
	document.writeln('      <p '+b_style+'>');
	document.writeln('      <a target="_blank" href="http://securityresponse.symantec.com/"><img src="http://www.machpcs.com/images/Symanteclogo.png" width=194 height=73 border=0></a><br>Security Alerts</p>');
	document.writeln('     </td>');
	document.writeln('    </tr>');
	document.writeln('   </table>');

	document.writeln('   <table cellpadding=1 cellspacing=1>');

	/* latest threats */
	if ( symLmax > 0 ) {

		document.writeln('    <tr>');
		document.writeln('     <td colspan=3><br><p '+b_style+'>Latest Threats</p></td>');
		document.writeln('    </tr>');
		for ( i=0; i<symLmax; i++ ) {

			var full_url = symLbase+symLurls[i];

			document.writeln('    <tr>');
			document.writeln('     <td align=center width=12><p '+r_style[symLrisks[i]]+'>&nbsp;'+symLrisks[i]+'&nbsp;</p></td>');
			document.writeln('     <td align=center nowrap><p '+p_style+'>'+symLdates[i]+'</p></td>');
			document.writeln('     <td align=left><p><a '+a_style+' href="'+full_url+'">'+symLnames[i]+'</a></p></td>');
			document.writeln('    </tr>');

		}

		document.writeln('    <tr>');
		document.writeln('     <td></td>');
		document.writeln('     <td></td>');
		document.writeln('     <td align=left><p><a '+a_style+' href="'+symLmore+'">More...</a></p></td>');
		document.writeln('    </tr>');

	}


	/* removal tools */
	if ( symRmax > 0 ) {

		document.writeln('    <tr>');
		document.writeln('     <td colspan=3><br><p '+b_style+'>Removal Tools</p></td>');
		document.writeln('    </tr>');
		for ( i=0; i<symRmax; i++ ) {

			var full_url = symRbase+symRurls[i];

			document.writeln('    <tr>');
			document.writeln('     <td align=center valign=top width=12><p '+b_style+'>&#183;</p></td>');
			document.writeln('     <td colspan=2 align=left><p><a '+a_style+' href="'+full_url+'">'+symRnames[i]+'</a></p></td>');
			document.writeln('    </tr>');

		}

		document.writeln('    <tr>');
		document.writeln('     <td></td>');
		document.writeln('     <td colspan=2 align=left><p><a '+a_style+' href="'+symRmore+'">More...</a></p></td>');
		document.writeln('    </tr>');

	}

	/* advisories */
	if ( symAmax > 0 ) {

		document.writeln('    <tr>');
		document.writeln('     <td colspan=3><br><p '+b_style+'>Security Advisories</p></td>');
		document.writeln('    </tr>');
		for ( i=0; i<symAmax; i++ ) {

			var full_url = symAbase+symAurls[i];

			document.writeln('    <tr>');
			document.writeln('     <td align=center valign=top width=12><p '+b_style+'>&#183;</p></td>');
			document.writeln('     <td colspan=2 align=left><p><a '+a_style+' href="'+full_url+'">'+symAnames[i]+'</a></p></td>');
			document.writeln('    </tr>');

		}

		document.writeln('    <tr>');
		document.writeln('     <td></td>');
		document.writeln('     <td colspan=2 align=left><p><a '+a_style+' href="'+symAmore+'">More...</a></p></td>');
		document.writeln('    </tr>');

	}

	/* search box */
	if ( symSshow > 0 ) {

		document.writeln('    <tr>');
		document.writeln('     <td colspan=3><br><p '+b_style+'>Search Threat Database</p></td>');
		document.writeln('    </tr>');
		document.writeln('    <tr>');
		document.writeln('     <td colspan=3>');
		document.writeln('      <form style="margin-bottom:0;" action="http://searchg.symantec.com/search?" method="GET" target="_blank">');
		document.writeln('      <input type="hidden" name="proxystylesheet" value="symc_en_US">');
		document.writeln('      <input type="hidden" name="client" value="symc_en_US">');
		document.writeln('      <input type="hidden" name="site" value="symc_en_US_vir">');
		document.writeln('      <input type="hidden" value="xml_no_dtd" name="output">');
		document.writeln('      <input type="hidden" name="context" value="gbh">');
		document.writeln('      <p '+p_style+'>&nbsp;<input type=text name="q" size=12>&nbsp;<input type=submit value="go"></p>');
		document.writeln('      </form>');
		document.writeln('     </td>');
		document.writeln('    </tr>');

	}

	/* footer */
	document.writeln('   </table>');

	document.writeln('  </td>');
	document.writeln(' </tr>');
	document.writeln('</table>');

}
