img1 = 0;
function more(){
	img1++;
	img1 = img1>=thumb.length?0:img1;
	showimg();
}
function less(){
	img1--;
	img1 = img1<0?thumb.length-1:img1;
	showimg();
}
function showimg(){
	if (thumb.length >=5){
		for (i=img1,j=1;j<6;i++){
		document["img"+j].src=thumb[i%thumb.length];
		j++;
		}
	}else{ 
		for (i=1; i<=5; i++)
			document["img"+i].style.height=1;
		for (i=0; i<document.images.length; i++)
			if (document.images[i].height == 120 && document.images[i].width == 5){
				document.images[i].style.height=1;
				document.images[i].parentElement.parentElement.style.background = "";
			//	document.all.large.background=big[0]; 
			//	if (document.all["large"].background == "" || document.all["large"].background == "undefined")
			//		document.all["large"].height = 1;
			}
	}

}
function showlarge(img){
	if (big[(img+img1)%thumb.length])
		large.background=big[(img+img1)%thumb.length];
}

function out(img){
	src = document[img].src.replace('_over','');
	document[img].src = src;
}
function over(img){
	src = document[img].src.replace('\.jpg','_over.jpg');
	src = src.replace('\.gif','_over.gif');
	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+'¤é');
}

maincount = 0;
maintotal = 5;
function mcount(){
	maincount++;
	if (maincount==maintotal){
		for (i=1;i<=maintotal;i++){
			j = 'm'+i;
			src = document[j].src.replace('_over','');
			document[j].src = src;
		}
	}
}

counter = 0;
function xcount(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;
		}
	}
}

musiccount = 0;
musictotal = 4;
function ucount(){
	musiccount++;
	if (musiccount==musictotal){
		for (i=1;i<=musictotal;i++){
			j = 'u'+i;
			src = document[j].src.replace('_over','');
			document[j].src = src;
		}
	}
}

subcount = 0;
imgs = new Array();
function scount(x,total){
	imgs[subcount]=x;
	subcount++;
	if (subcount==total){
		for (i in imgs){
			j = 'i'+imgs[i];
			src = document[j].src.replace('_over','');
			document[j].src = src;
		}
	}
}

bcount = 0;
bimgs = new Array();
function bcount(x,total){
	bimgs[bcount]=x;
	bcount++;
	if (bcount==total){
		for (i in bimgs){
			j = 'i'+bimgs[i];
			src = document[j].src.replace('_over','');
			document[j].src = src;
		}
	}
}

topcount = 0;
function tcount(){
	topcount++;
	if (topcount==4){
		for (i=1;i<5;i++){
			j = 't'+i;
			src = document[j].src.replace('_over','');
			document[j].src = src;
		}
	}
}
