var xArray = new Array('Payment Methods','Selling','Swapping Your Figures','New for Old','Partner Companies','Gallery: <i>Average</i>','Gallery: <i>Good</i>','Gallery: <i>Excellent</i>','Contact&nbsp;Us');
var xLArray = new Array('p1.htm','p2.htm','p3.htm','p4.htm','p5.htm','p6.htm','p7.htm','p8.htm','p9.htm');

var nf = -1;
var c1= "#996600";
var c2= "#664300";
var cwh = "100%";//590
var tht = 30;
var mmm = 'cellspacing="0" cellpadding="0"';
var msov = "window.status=\'\';return true";
var mms = 'onmouseover="'+msov+'" onmouseout="'+msov+'"';
var ie = document.all;
var dom = document.getElementById;
if(ie||dom){var hoh = 'style="cursor:hand;"';} else {var hoh = "";}

function getObj(name){
if(dom){this.obj = document.getElementById(name);this.style = document.getElementById(name).style;} else {
if(ie){this.obj = document.all[name];this.style = document.all[name].style;}
}
}

function setDate(){
var months = new Array('January','February','March','April','May','June','July','August','September','October','November','December');
var todayD = new Date();
var toD = "" + todayD.getDate();
var toM = todayD.getMonth();
var toYear = todayD.getYear();
var e = toD.length - 1;
var aEx = "";
if(toD == "1"){aEx = "st"} else {
if(toD.charAt(0) != "1" && toD.charAt(e) == "1"){aEx = "st"} else {
if(toD.charAt(0) != "1" && toD.charAt(e) == "2"){aEx = "nd";} else {
if(toD.charAt(0) != "1" && toD.charAt(e) == "3"){aEx = "rd";} else {
aEx = "th";
}
}
}
}
if (toYear < 1000){toYear += 1900};
return '<span class="body2"><b>'+toD+aEx+' '+months[toM]+' '+toYear+'</span>';
}

function openData(){
var ams = "titlebar=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,top=0,left=0,resizable=1,width=780,height=580";
eval("var datawin = window.open(\"list.htm\",\"Hinds\",'"+ams+"');");
if(window.focus){datawin.focus();}
}

function isPop(a,b,c){
var dms = "titlebar=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,top=50,left=50,resizable=1,width="+b+",height="+c;
eval("var prwin = window.open(\""+xLArray[a-1]+"\",\"Hinds\",'"+dms+"');");
if(window.focus){prwin.focus();}
}

function navIt(a,b,c){
if(a != b){
if(c == 1){var t2 = c1;var t3 = c2;} else {var t2 = c2;var t3 = c1;}
var bg = t2;
var bg2 = t3;
var vT = new getObj('t_'+a);vT.style.backgroundColor = bg;
var vT2 = new getObj('t_'+b);vT2.style.backgroundColor = bg2;
}
}

function setNav(){
var d4 = '<table id="t_-3" class="nav" '+hoh+' width="'+cwh+'" height="'+(6+tht)+'" bgcolor="'+c2+'" '+mmm+' onclick="openData();" onmouseover="navIt(-3,'+nf+',1);'+msov+'" onmouseout="navIt(-3,'+nf+',0);'+msov+'"><tr><td class="body5" style="cursor:pointer;"><b>&nbsp;Latest Figures List&nbsp;</b></td></tr></table>';
d4+= '<table id="t_-2" class="nav" '+hoh+' width="'+cwh+'" height="'+(6+tht)+'" bgcolor="'+c2+'" '+mmm+' onclick="document.location.href=\'http://www.hindsfiguresltd.com/painting/\';" onmouseover="navIt(-2,'+nf+',1);'+msov+'" onmouseout="navIt(-2,'+nf+',0);'+msov+'"><tr><td class="body5" style="cursor:pointer;"><b>&nbsp;Painting Services&nbsp;</b></td></tr></table>';

if(nf == -1){var nc1 = c1} else {var nc1 = c2};
d4+= '<table id="t_-1" class="nav" '+hoh+' width="'+cwh+'" height="'+tht+'" bgcolor="'+nc1+'" '+mmm+' onclick="javascript:void(0);" onmouseover="navIt(-1,'+nf+',1);'+msov+'" onmouseout="navIt(-1,'+nf+',0);'+msov+'"><tr><td style="cursor:pointer;"><b>&nbsp;Homepage&nbsp;</b></td></tr></table>';
var ti = 0;
for(var n= 0;n<xArray.length;n++){
if((ti+n) == nf){var nc2 = c1} else {var nc2 = c2};
d4+= '<table id="t_'+(ti+n)+'" class="nav" '+hoh+'  width="'+cwh+'" height="'+tht+'" bgcolor="'+nc2+'" '+mmm+' onmouseover="navIt('+(ti+n)+','+nf+',1);'+msov+'" onmouseout="navIt('+(ti+n)+','+nf+',0);'+msov+'"><tr><td onclick="isPop('+(n+1)+',550,550);" style="cursor:pointer;">&nbsp;'+xArray[n]+'&nbsp;</td></tr></table>';
}
return d4;
}
