//------------------------------------------------------------------------------
//build the bricks
//------------------------------------------------------------------------------

var iX= new Image
iX.src = '/images/redcircon.gif'
function dw(s){document.write(s)}
function GWContent(imgID,strCaption,strLink,misimgID,misImgSrc){
var s='<td><a href="#" title=" " class=gatewaycontent onmouseover="DoMouseOver(\''+imgID+'\',\'images/redcircon.gif\',\''+strCaption+'\');return true;" onmouseout="DoMouseOver(\''+imgID+'\',\'images/redcirc.gif\',\'\');return true;" onClick="window.open(\''+strLink+'\',\'\',\'toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,left=5,top=5,width=780,height=400\');document.'+misimgID+'.src=\''+misImgSrc+'\'">'
dw('<tr>'+s+strCaption+'</a></td>');
dw(s+'<img border=0 id='+imgID+' name='+imgID+' src="images/redcirc.gif" width=16 height=16 alt=" "></a></td></tr>');
}
function WBB(strArea,strLink,strCaption,strTitle){
if ((is_nav&&!is_nav6up)||is_opera||is_webtv){
dw ('<td class=bottombricks><ilayer name='+strArea+'bartop width=100%>');
dw ('<a href="'+strLink+'" class=bottombricklink>'+strTitle+'</a></ilayer></td>');
}
else {	// assume ie or nav 5+
dw ('<td class=bottombricks><div id='+strArea+'bartop>');
dw ('<font size=1><a href="'+strLink+'" onmouseover="javascript:BrickOver(\''+strCaption+'\',\''+strArea+'bartop\'); return true" onmouseout="javascript:BrickOff(\''+strArea+'bartop\',\'#a4a4c6\')" class=bottombricklink><font size=1>'+strTitle+'</font></a></font></div></td>');
}
}
function WBBS()	{
dw('<td><img src="/_common_images/pixel.gif" width=10 height=4 alt=" "></td>');
}
function WBBSU1()	{
dw('<td width=200 height=4 class=redbar><img src="/_common_images/pixel.gif" width=4 height=4 alt=" "></td>');
}
function WBBSU2(w)	{
dw('<td width='+w+'><img src="/_common_images/pixel.gif" alt=" " width='+w+' height=4></td>');
}
function WLHLink(strLink,strCaption,strTitle){
dw ('<tr><td class=lhlink><a class=lhlink href="'+strLink+'">');
dw (strTitle+'</a></td></tr><tr height=1><td height=1 class=lhbaroff>');
dw ('<img src="/_common_images/pixel.gif" alt=" " width=1 height=1></td></tr>');
}
function WB(strArea,strLink,strCaption,strTitle){

if ((is_nav && !is_nav6up)||is_opera||is_webtv){
dw ('<td class=bricks><ilayer name='+strArea+'bartop width=100%>');
dw ('<a href="'+strLink+'" class=bricklink>'+strTitle+'</a>');
dw ('</ilayer></td>');
}
else {	// assume ie or nav 5+
dw ('<td class=bricks><div id='+strArea+'bartop>');
dw ('<a href="'+strLink+'" onmouseover="javascript:BrickOver(\''+strCaption+'\',\''+strArea+'bartop\'); return true" onmouseout="javascript:BrickOff(\''+strArea+'bartop\',\'#000066\')" class=bricklink>'+strTitle+'</a>');
dw ('</div></td>');
}
}
function WBS()	{
dw('<td><img src="/_common_images/pixel.gif" alt=" " width=5 height=4></td>');
}

function go10(){
if (document.selecter10.select1.options[document.selecter10.select1.selectedIndex].value != "none") {
window.open (document.selecter10.select1.options[document.selecter10.select1.selectedIndex].value,"","")
		}
	}

function ChgImg(ImgField, NewImg) {
	document[ImgField].src=eval(NewImg + ".src")
}	

//------------------------------------------------------------------------------
//manage mouseover states for the bricks
//------------------------------------------------------------------------------

function BrickOver(statusText,bar)
{
	
			document.all[bar].style.backgroundColor='#ff0000';
	
	window.status=statusText;
	}

function BrickOff(bar)
	{
	
			document.all[bar].style.backgroundColor='#000066';
	
		window.status=' ';
	}

function openBrochureware(area)
	{
	var URL="http://www.nationwide.co.uk";
	URL = URL + area;
	window.open(URL, 'brochureWare', 'menubar,scrollbars,resizable,status,height=500,width=785,top=0,left=0,screenX=0,screenY=0');
	}

