switch (curr){
case 'c': 
topCol = "8B8B83";
panelCol = "EEE9BF";
break;
case 'p': 
topCol = "996699";
panelCol = "E5D9E5";
break;
case 's': 
topCol = "BABA66";
panelCol = "E3E3C2";
break;
case 't': 
topCol = "B16676";
panelCol = "F2E8EE";
break;
default: 
topCol = "8B8B83";
panelCol = "EEE9BF";
}

function lit(td,type){
td.style.cursor='hand';
switch (type){
case 'p':
td.style.backgroundColor='#DBB4DB';
break;
case 'b':
td.style.backgroundColor='#990000';
break;
case 't':
td.style.backgroundColor='#F2D9DD';
break;
case 'c':
td.style.backgroundColor='#FFFFCC';
break;
case 'p2':
td.style.backgroundColor='#996699';
break;
case 's2':
td.style.backgroundColor='#BABA66';
break;
case 't2':
td.style.backgroundColor='#B16676';
break;
case 'c2':
td.style.backgroundColor='#A2A276';
break;
case 'c3':
td.style.backgroundColor='#FFFFCC';
break;
case 't3':
td.style.backgroundColor='#CC9999';
break;
}
}
function unlit(td,type){
switch (type){
case 'p':
td.style.backgroundColor='#E5D9E5';
break;
case 'b':
td.style.backgroundColor='#A84C4C';
break;
case 't':
td.style.backgroundColor='#F2E8EE';
break;
case 'c':
td.style.backgroundColor='#BBBB95';
break;
case 'p2':
td.style.backgroundColor='#996699';
break;
case 's2':
td.style.backgroundColor='#BABA66';
break;
case 't2':
td.style.backgroundColor='#CC6676';
break;
case 'c2':
td.style.backgroundColor='#CCCC99';
break;
case 'c3':
td.style.backgroundColor='#FFFFCC';
break;
}
}

function MM_swapImgRestore() {
//v3.0
var i,x,a=document.MM_sr;
for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}

function MM_findObj(n, d) {
 //v3.0
var p,i,x;
if(!d) d=document;

if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document;
n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n];
for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];


for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
return x;
}

function MM_swapImage() {
 //v3.0
var i,j=0,x,a=MM_swapImage.arguments;
document.MM_sr=new Array;
var item = a[1];
changeCont(item);
if(item !=''){

dt = window.descTitle;
db = window.descBox;
if(item == 'vend'){
dt.innerText = "Search by vendor";
db.innerText = "Azlan offers accredited training from many different vendors. Choose from Cisco, Microsoft, Nortel Networks, Novell, Lotus, Macromedia and many more...";
}
if(item == 'solu'){
dt.innerText = "Search by solution";
db.innerText = "Azlan is Europe's leading Networking Solutions provider, etc...";
}
if(item == 'loca'){
dt.innerText = "Search by location";
db.innerText = "In the UK, Azlan trains in four dedicated centres: Coventry, London, Wakefield and Wokingham";
}
if(item == 'deli'){
dt.innerText = "Search by delivery type";
db.innerText = "You can learn by traditional instructor-led training, or online. Azlan provides e-learning solutions...";
}
if(item == 'tech'){
dt.innerText = "Search by technology";
db.innerText = "Specialise in a particular area and want to stay at the top? Looking to branch out to a new technology? Search through the technology areas we offer to achieve your aims";
}
if(item == 'curr'){
dt.innerText = "Search by curriculum";
db.innerText = "Not entirely sure what this is. Is this certifications?";
}
}
for(i=0;i<(a.length-2);i+=3) 
if ((x=MM_findObj(a[i]))!=null){
document.MM_sr[j++]=x;

if(!x.oSrc) x.oSrc=x.src;
x.src=a[i+2];
}
}
var onSw = "/img/all/icon/lighton.gif";

function changeCont(content){

}

var menuList = new Array('coursefinder1','t_cert_1','t_centres_1','t_vendors_1','t_managedsolutions_1','s_general_1','s_offers_1','s_downloads_1','t_elearning_1','c_prod_1','c_serv_1','c_train_1','c_corp_1','c_news_1','c_help_1','p_vend_1');
function findObj(n,d) {
   var p,i,x;
   if(!d)
   d = document;
   if((p=n.indexOf("?"))>0&&parent.frames.length) {
      d=parent.frames[n.substring(p+1)].document;
      n=n.substring(0,p);
   }
   if(!(x=d[n])&&d.all) x=d.all[n];
   for (i=0;!x&&i<d.forms.length;i++)
   x=d.forms[i][n];
   for(i=0;!x&&d.layers&&i<d.layers.length;i++)
   x=findObj(n,d.layers[i].document);
   return x;
}


function menuShow(menuName) {
var action
var boxstate='visible'
for (var i=0; i< menuList.length; i++) {
	if (menuName==menuList[i])
	action='visible'
	else action='hidden'
	var obj=findObj(menuList[i])
	if (obj) {
		if (obj.style)
		obj=obj.style
		obj.visibility=action
		if (action=='visible')
		boxstate='visible'
		}
	}
	FormsTweak(boxstate)
}


function FormsTweak(state) {
for(var f = 0; f < (document.forms.length); f++) {
	for(var e = 0; e < (document.forms[f].elements.length); e++){
		if(document.forms[f].elements[e].type=="select-one") {
			document.forms[f].elements[e].style.visibility = state;
			}
		}
	}
}
	