
function activeTab(cnt,now){
var names = new Array;
//about menu
names[0]='profile';
names[1]='reference';
names[2]='partner';
names[3]='download';

//product menu
names[4]='pview';
names[5]='unified';
names[6]='webcontent';
names[7]='emailcontent';
names[8]='wan';
names[9]='load';

//service menu
names[10]='sview';
names[11]='develop';
names[12]='smb';
names[13]='tss';
names[14]='sct';

//news menu
names[15]='news_overview';
names[16]='in_news';
var start,end;


if(cnt=='about'){
	start=0;
	end=4;
	clr='white';
	actclr='#ffffff';
	bg1='#b3b2b2 url(../img/button_menu.png) repeat-x';
	bg='#fff url(../img/button_active.png) no-repeat right bottom';

		}



else if(cnt=='product'){

	var parent = new Array;
	parent[0]='pview1';
	parent[1]='unified1';
	parent[2]='wan1';
	var par=now+'1';
	
		if (now==names[6]||now==names[7])par=parent[1];
				
	
		if (now==names[9])par=parent[2];
				
	
	start=4;
	end=10;
	clr='#1e3f98';
	actclr='#f57e11';
	bg='#fff url(../img/arrowlist2.gif) no-repeat 8% 50%';
	bg1=' #fff url(../img/arrowlist2.gif) no-repeat 8% 50%';
	
	for (var j=0;j<3;j++){
	document.getElementById(parent[j]).style.background='#b3b2b2 url(../img/button_menu.png) repeat-x';

	}

	document.getElementById(par).style.background='#fff url(../img/button_active.png) no-repeat right bottom';

	}


if(cnt=='service'){
	start=10;
	end=15;
	clr='white';
	actclr='#ffffff';
	bg1='#b3b2b2 url(../img/button_menu.png) repeat-x';
	bg='#fff url(../img/button_active.png) no-repeat right bottom';

		}

if(cnt=='news'){
	start=15;
	end=17;
	clr='white';
	actclr='#ffffff';
	bg1='#b3b2b2 url(../img/button_menu.png) repeat-x';
	bg='#fff url(../img/button_active.png) no-repeat right bottom';

		}





	for (var i=start;i<end;i++){
	
	document.getElementById(names[i]).style.color=clr;
	document.getElementById(names[i]).style.background=bg1;
	
	}





	document.getElementById(now).style.color=actclr;
	document.getElementById(now).style.background=bg;

}