function cimg(name,ov){
	if (document.images[name]){
		document.images[name].src = "images/" + name + ((lastpress == name)?"on	":"") + ((ov == 0)?"over":"") + ".gif";
	}
}

function cimg1(name,ov,idpic){
	if (document.images[name]){
		document.images[name].src = "images/" + name + ((lastpress == name)?"on	":"") + ((ov == 0)?"over":"") + ".gif";
	}
}

function pressed(name){
	if (name != lastpress){
		if (document.images[name]){
			document.images[name].src = "images/" + name + "on.gif";
			if (lastpress != '') document.images[lastpress].src = "images/" + lastpress + ".gif";
			lastpress = name;
		}
	}
}
	
function MM_preloadImages() {
	var d=document;
	if(d.images){
		if(!d.MM_p) d.MM_p=new Array();
		var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
		for(i=0; i<a.length; i++)
			if (a[i].indexOf("#")!=0){
				d.MM_p[j]=new Image;
				d.MM_p[j++].src=a[i];
			}
	}
}

function openWin1(url) {
	window.open(url, 'url', "toolbar=0,location=0,directories=0,status=0,menubar=no,scrollbars=no,resizable=no,width=500,height=375");
}

function popup(url, title, W, H, features){
	var X = Math.ceil((window.screen.availWidth - W) / 2);
	var Y = Math.ceil((window.screen.availHeight - H) / 2);
	features = "width=" + W + ", height=" + H + ", left=" + X + ", top=" + Y + ", " + features;
	window.open(url, title, features);
}
lastpress = '';
