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


/* defaults */
var symBORDcolor = 'dadfe4';
var symBACKcolor = 'dadfe4';
var symFONTcolor = '70666f';
var symLINKcolor = '70666f';

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

var symTshow = 1;
var symSshow = 1;

var symHbase = 'http://securityresponse.symantec.com/avcenter/graphics/jslogo/';
var symLbase = 'http://securityresponse.symantec.com/avcenter/venc/data/';
var symLmore = 'http://securityresponse.symantec.com/avcenter/vinfodb.html';
var symRbase = 'http://securityresponse.symantec.com/avcenter/venc/data/';
var symRmore = 'http://securityresponse.symantec.com/avcenter/tools.list.html';
var symAbase = 'http://securityresponse.symantec.com/avcenter/security/Content/';
var symAmore = 'http://securityresponse.symantec.com/avcenter/security/Advisories.html';
var symFmore = 'http://securityresponse.symantec.com/avcenter/cgi-bin/syndicate.cgi';


function symDisplay() {

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

	var r_common = 'font-family:arial; font-size:10px; 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; color:#FFF;"';
	r_style[2] = 'style="'+r_common+' background:#00cc00; color:#FFF;"';
	r_style[3] = 'style="'+r_common+' background:#ddaa00; color:#FFF;"';
	r_style[4] = 'style="'+r_common+' background:#dd6600; color:#FFF;"';
	r_style[5] = 'style="'+r_common+' background:#dd0000; color:#FFF;"';

	/* header */
	//document.writeln('<table bgcolor='+symBORDcolor+' width="100%" cellpadding=0 cellspacing=1 border="1">');
	//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 = 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="'+full_url+'" width=130 height=48 border=0></a><br>Security Alerts</p>');
	document.writeln('     </td>');
	document.writeln('    </tr>');
	document.writeln('   </table>');
	*/
	
	document.writeln('   <table cellpadding="2" cellspacing="1" border="0" width="100%">');

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

		document.writeln('    <tr>');
		document.writeln('     <td colspan=2><b>Current Virus Threats</b></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><span '+r_style[symLrisks[i]]+'>&nbsp;'+symLrisks[i]+'&nbsp;</span></td>');
			//document.writeln('     <td align=center nowrap><p '+p_style+'>'+symLdates[i]+'</p></td>');
			document.writeln('     <td align=left><a '+a_style+' href="'+full_url+'">'+symLnames[i]+'</a></td>');
			document.writeln('    </tr>');

		}

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

	}
	
	/* top threats
	if ( symTshow > 0 && symTurls.length > 0) {

		document.writeln('    <tr>');
		document.writeln('     <td colspan=2><br><b>Latest Threats</b></td>');
		document.writeln('    </tr>');
		for ( i=0; i<(symTurls.length-1); i++ ) {

			var full_url = symLbase+symTurls[i];

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

		}

	}
	*/

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

		document.writeln('    <tr>');
		document.writeln('     <td colspan=2><br><b>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><b>&bull;</p></td>');
			document.writeln('     <td align=left><a '+a_style+' href="'+full_url+'">'+symRnames[i]+'</a></td>');
			document.writeln('    </tr>');

		}

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

	}

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

		document.writeln('    <tr>');
		document.writeln('     <td colspan=2><br><b>Security Advisories</b></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>&bull;</td>');
			document.writeln('     <td align=left><a '+a_style+' href="'+full_url+'">'+symAnames[i]+'</a></td>');
			document.writeln('    </tr>');

		}

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

	}

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

		document.writeln('    <tr>');
		document.writeln('     <td colspan=2><br><b>Search Threat Database</b></td>');
		document.writeln('    </tr>');
		document.writeln('    <tr>');
		document.writeln('     <td colspan=2>');
		document.writeln('      <form style="margin-bottom:0;" action="http://search.symantec.com/custom/us/query.html" method="POST" target="_blank">');
		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('      <p '+p_style+'>&nbsp;<input type=text name="qt" size=12>&nbsp;<input type=submit value="go"></p>');
		document.writeln('      </form>');
		document.writeln('     </td>');
		document.writeln('    </tr>');

	}

	/* footer */
	document.writeln('   </table>');
	
	
	document.writeln('   <table cellpadding=1 cellspacing=0>');
	document.writeln('    <tr>');
	document.writeln('     <td align=center>');
	document.writeln('      <a target="_blank" href="http://securityresponse.symantec.com/"><img src="images/poweredbysymontec.gif" style="margin-bottom:6px;" border=0></a>');
	document.writeln('     </td>');
	document.writeln('    </tr>');
	document.writeln('   </table>');
	
	/*
	document.writeln('   <table cellpadding=1 cellspacing=0>');
	document.writeln('    <tr>');
	document.writeln('     <td align=center>');
	document.writeln('      <p><br><a '+a_style+' href="'+symFmore+'">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>');
	*/

}
