
/***********************/
/* sbrown@symantec.com */
/* version 0.5-8       */
/***********************/


/* defaults */
var symBORDcolor = '888888';
var symBACKcolor = 'white';
var symFONTcolor = 'black';
var symLINKcolor = 'blue';

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

var symTshow = 1;
var symSshow = 1;


function symDisplay() {

        var g_style = 'style="BORDER-RIGHT: 1px outset; PADDING-RIGHT: 1px; BORDER-TOP: 1px outset; PADDING-LEFT: 1px; FONT-WEIGHT: bold; FONT-SIZE: 9px; BACKGROUND-IMAGE: url(images/button_bg.gif); PADDING-BOTTOM: 1px; MARGIN: 0px 0px 0px 1px; BORDER-LEFT: 1px outset; WIDTH: 30px; HEIGHT: 18px; CURSOR: pointer; PADDING-TOP: 1px; BORDER-BOTTOM: 1px outset; backgroung-image: repeat-x"';
	var p_style = 'style="font-family:arial; font-size:7pt; height=10pt; color:'+symFONTcolor+';"';
	var i_style = 'style="font-family:arial; font-size:8pt; height=10pt; 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:7pt; color:'+symLINKcolor+';"';

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

	r_style = new Array(6);

	r_style[1] = 'style="'+r_common+' background:#4444dd;"';
	r_style[2] = 'style="'+r_common+' background:#00cc00;"';
	r_style[3] = 'style="'+r_common+' background:#ddaa00;"';
	r_style[4] = 'style="'+r_common+' background:#dd6600;"';
	r_style[5] = 'style="'+r_common+' background:#dd0000;"';

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

	var logo_url = 'symc_logo_white.gif';
	if ( symBACKcolor == 'white' ) logo_url = 'symc_logo_white.gif';
	if ( symBACKcolor == 'black' ) logo_url = 'symc_logo_black.gif';

	var full_url = 'http://securityresponse.symantec.com/avcenter/graphics/jslogo/'+logo_url;

	document.writeln('   <table align=center cellpadding=1 cellspacing=0>');
	document.writeln('    <tr>');
/*
	document.writeln('     <td>');
	document.writeln('      <span '+b_style+'>');
	document.writeln('      <a target="_blank" href="http://securityresponse.symantec.com/"><img src="'+full_url+'" width=130 height=48 border=0></span><br>Security Alerts</span>');
	document.writeln('     </td>');
*/
	document.writeln('     <td valign=top width=160>');

	/* latest threats */
	if ( symLmax > 0 ) {
	        document.writeln('   <table cellpadding=1 cellspacing=1>');

		document.writeln('    <tr>');
		document.writeln('     <td colspan=3 align=center><span '+b_style+'>Latest Security Threats</span><br></td>');
		document.writeln('    </tr>');

		for ( i=0; i<symLmax; i++ ) {

			var full_url = 'http://securityresponse.symantec.com/avcenter/venc/data/'+symLurls[i];

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

		}

		document.writeln('    <tr>');
		document.writeln('     <td></td>');
		document.writeln('     <td></td>');
		document.writeln('     <td align=left><span><a '+a_style+' href="http://securityresponse.symantec.com/avcenter/vinfodb.html">More...</a></span></td>');
		document.writeln('    </tr>');
	        document.writeln('   </table>');

	}

	document.writeln('     </td>');
	document.writeln('     <td valign=top width=170>');

	/* top threats */
	if ( symTshow > 0 ) {

	        document.writeln('   <table cellpadding=1 cellspacing=1>');
		document.writeln('    <tr>');
		document.writeln('     <td colspan=3 align=center><span '+b_style+'>Top Security Threats</span><br></td>');
		document.writeln('    </tr>');
		for ( i=0; i<(symTurls.length-1); i++ ) {

			var full_url = 'http://securityresponse.symantec.com/avcenter/venc/data/'+symTurls[i];

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

		}

	        document.writeln('   </table>');
	}

	document.writeln('     </td>');
	document.writeln('     <td valign=top width=122>');

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

	        document.writeln('   <table cellpadding=1 cellspacing=1>');
		document.writeln('    <tr>');
		document.writeln('     <td colspan=3 align=center><span '+b_style+'>Removal Tools</span><br></td>');
		document.writeln('    </tr>');
		for ( i=0; i<symRmax; i++ ) {

			var full_url = 'http://securityresponse.symantec.com/avcenter/venc/data/'+symRurls[i];

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

		}

		document.writeln('    <tr>');
		document.writeln('     <td></td>');
		document.writeln('     <td colspan=2 align=left><span><a '+a_style+' href="http://securityresponse.symantec.com/avcenter/tools.list.html">More...</a></span></td>');
		document.writeln('    </tr>');
	        document.writeln('   </table>');

	}

	document.writeln('     </td>');
	document.writeln('     <td valign=top width=175>');

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

	        document.writeln('   <table cellpadding=1 cellspacing=1>');
		document.writeln('    <tr>');
		document.writeln('     <td colspan=3 align=center><span '+b_style+'>Security Advisories</span></td>');
		document.writeln('    </tr>');
		for ( i=0; i<symAmax; i++ ) {

			var full_url = 'http://securityresponse.symantec.com/avcenter/security/Content/'+symAurls[i];

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

		}

		document.writeln('    <tr>');
		document.writeln('     <td></td>');
		document.writeln('     <td colspan=2 align=left><span><a '+a_style+' href="http://securityresponse.symantec.com/avcenter/security/Advisories.html">More...</a></span></td>');
		document.writeln('    </tr>');
	        document.writeln('   </table>');

	}

	document.writeln('     </td>');
	document.writeln('     <td valign=top width=110>');

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

	        document.writeln('   <table cellpadding=1 cellspacing=1>');
		document.writeln('    <form style="margin-bottom:0;" action="http://search.symantec.com/custom/us/query.html" method="POST" target="_blank">');
		document.writeln('    <tr>');
		document.writeln('     <td colspan=3 align=center><span '+b_style+'>Search Threat Database</span></td>');
		document.writeln('    </tr>');
		document.writeln('    <tr>');
		document.writeln('     <td colspan=3>');
		document.writeln('      <input type="hidden" name="lk" value="1">');
		document.writeln('      <input type="hidden" name="rf" value="0">');
		document.writeln('      <input type="hidden" name="qp" value="url:http://securityresponse.symantec.com/avcenter/venc/data url:/avcenter/venc/auto/index url:/avcenter/security/Content">');
		document.writeln('      <span '+p_style+'><input '+i_style+' type=text name="qt" size=14></span>');
		document.writeln('     </td>');
		document.writeln('    </tr>');
		document.writeln('    <tr>');
		document.writeln('     <td colspan=3 align=left>');
                document.writeln('      <input '+g_style+' type=submit value="Go">');
		document.writeln('     </td>');
		document.writeln('    </tr>');
		document.writeln('    <tr>');
		document.writeln('     <td colspan=3>');
	        document.writeln('      <img src="images/security_levels_2.gif" border=0>');
		document.writeln('     </td>');
		document.writeln('    </tr>');
		document.writeln('    </form>');
	        document.writeln('   </table>');

	}

	/* footer */
/*
	document.writeln('   <table cellpadding=1 cellspacing=0>');
	document.writeln('    <tr>');
	document.writeln('     <td align=center>');
	document.writeln('      <p><br><a '+a_style+' href="http://securityresponse.symantec.com/avcenter/cgi-bin/syndicate.cgi">Use this feed on your site</a></p>');
	document.writeln('     </td>');
	document.writeln('    </tr>');
	document.writeln('   </table>');
*/

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

}

