function out(img){
	src = document[img].src.replace('_over','');
	document[img].src = src;
}
function over(img){
	src = document[img].src.replace('\.jpg','_over.jpg');
	document[img].src = src;
}
function goto(lang){
	ex = location.toString().indexOf('#');
	newurl = location.toString()
	if (ex>0)
		newurl = newurl.substring(0,ex);
	if (lang=='gb'){
		location = newurl.replace('/b5/','/gb/');
	}else{
		location = newurl.replace('/gb/','/b5/');
	}
}

function showdate(){
	if (location.toString().indexOf('/gb/')>0)
		document.write(curyear+'Äê'+(curmonth+1)+'ÔÂ'+today+'ÈÕ');
	else
		document.write(curyear+'¦~'+(curmonth+1)+'¤ë'+today+'¤é');
}

counter = 0;
function imgcount(x,total){
	counter++;
	if (counter==total){
		for (i=1;i<=total;i++){
			j = x+i;
			src = document[j].src.replace('_over','');
			document[j].src = src;
		}
	}
}
logo = new Array();
function addlogo(label,img,link){
	n = logo.length;
	logo[n] = new Object();
	logo[n].label = label;
	logo[n].src = img;
	logo[n].link = link;
}
function logopop(logo){
	open(logo.link,logo.label)
}

function chglogo(){
	order++;
	order = ++order>=logo.length?0:order;
	showimg();
}
function showimg(){
	for (i=order,j=1;j<7;i++,j++){
		document["logo"+j].src=logo[i%logo.length].src;
		document["logo"+j].url=logo[i%logo.length].link;
		document["logo"+j].label=logo[i%logo.length].label;
	}
	ani = setTimeout("chglogo();",5000);
}
