//jon sims - The NCC Group

//ie5 detect;
var r4=document.r2,xx=r4.pos1.value,bul1=r4.bul1.value,bul2=r4.bul2.value,bul3=r4.bul3.value,bg1=r4.bg1.value,no1=r4.no1.value,no2=r4.no2.value;

function iefive()
{
var vers=navigator.appVersion;
if(vers.match("MSIE 5.0"))return true;
else return false
}

//hyperlinks;
function call1()
{
var z=call1.arguments;parent.location.href=z[0];
return false;
}

//mouseover;
function iswap()
{
var z1=iswap.arguments;
if(no1!=z1[0])
{if(document.layers)document.eval("img"+z1[0]).src=bul2;
else document.images["img"+z1[0]].src=bul2}
}

//mousedown;

function iuswap()
{
var z2=iuswap.arguments;
if(no1!=z2[0])
{if(document.layers)document.eval("img"+z2[0]).src=bul1;
else document.images["img"+z2[0]].src=bul1}
}

function cont1()
{
if(!no2)
   { 
no1=r4.no1.value;
var tw1=r4.mv1.value,tw2=tw1.split("*"),y=0;
document.write('<body> <table width="175" border="0" cellspacing="3" cellpadding="3" background="'+bg1+'">');
for(y=0;y<(tw2.length);y++)
     {
	 
tw3=tw2[y].split("=");
document.write('<tr height="22" valign="middle"><td width="10">&nbsp;</td><td width="27" valign="middle" align="left"><img src="');
if(y==no1)document.write(bul3);
else document.write(bul1);
document.write('" name="img'+y+'"></td><td width="135" valign="middle">');
if(y==no1)document.write('<font color="#ffff00" face="Arial, Helvetica, sans-serif" size="1">');
else document.write('<font face="Arial, Helvetica, sans-serif" size="1">');

if(y!=no1)
{

document.write('<a  href="');

if(iefive())document.write(tw3[1]);
else document.write('#');
if(tw2[y]!="Back"){
document.write('" onMouseDown=call1("'+tw3[1]+'");return true onMouseOver=iswap("'+y+'");return false onMouseOut=iuswap("'+y+'");return false>'+tw3[0]+'</a>');
     }
else document.write('" onMouseDown=bck1();return true onMouseOver=iswap("'+y+'");return false onMouseOut=iuswap("'+y+'");return false>'+tw3[0]+'</a>');}
else document.write(tw3[0]);
document.write('</font></td>   </tr>');
 
   }
//other banners:
document.write();
}
else cont2();
}

function cont2()
{
document.write('<body>'+no2);
}


function menu1() 

{
yy=xx;if(document.all||document.getElementById)yy=(document.body.scrollTop>xx)+(xx*(document.body.scrollTop==0));
if(yy){
if(document.all||document.getElementById){
document.getElementById("layer1").style.pixelTop=document.body.scrollTop+yy
}
else{
yy=(eval(window.pageYOffset)>xx)+(xx*(eval(window.pageYOffset)==0));if(yy){
eval(document.layer1.top=eval(window.pageYOffset)+yy);
}
}
}
if(r4.tl2.value=="1")setTimeout("menu1()",0);
}

//frame go back 1
function bck1()
{
history.go(-1);
}

function menu2()
{
if (document.all||document.layers||document.getElementById)menu1();
}

if (document.all||document.getElementById) {
document.write('<DIV ALIGN="LEFT" ID="layer1" STYLE="Position:absolute; Top:'+xx+'px; Left:0; width:175px; Z-Index:5;">');cont1()
}
else if (document.layers){
document.write('<LAYER top="0" name="layer1" left="'+xx+'" width="175">');
cont1()
}

if (document.all||document.getElementById) {
document.write('</TABLE></DIV>')}
else if (document.layers){
document.write('</TABLE></TD></TR></TABLE></LAYER>')
}

window.onload=menu2;

