function showImage(obj, name){
    obj.src = name;
}

function show_popup(link){
	var popupWidth = 600;
	var popupHeight = 600;
	var popupTop = 300;
	var popupLeft = 300;
	var newWin = window.open(link,"newWin","height="+popupHeight+",width="+popupWidth+",left=" + popupLeft + ",top=" + popupTop + ",status=no,toolbar=no,menubar=no,location=no, scrollbars=yes, resizable=yes");
	if (newWin) newWin.focus();
}

var images = new Array(4);
var oldsrc = null;

if (document.images){
	var path = '/images/site/buttons/menu/';
	var ext = '_over.gif';
	images[0] = new Image();
	images[1] = new Image();
	images[2] = new Image();
	images[3] = new Image();
	images[4] = new Image();
    images[5] = new Image();
    images[0].src = path + 'top2' + ext;
	images[1].src = path + 'top3' + ext;
	images[2].src = path + 'top5' + ext;
	images[3].src = path + 'top6' + ext;
	images[4].src = path + 'top10' + ext;
    images[5].src = path + 'specials' + ext;
}

function over(imgname, i){
	if (document.images) {
		var img = document.images[imgname];
		if (img){
			oldsrc = img.src;
			img.src = images[i].src;
		}
	}
}
function out(imgname){
	if ((document.images) && (oldsrc)) {
		var img = document.images[imgname];
		if ((img) && (oldsrc)){
			img.src = oldsrc;
		}
	}
}

function go(page, link){
	var frames = false;
	if(window.parent){
		if (window.parent.frames.length > 0){
			window.parent.canClose = true;
			window.parent.document.location.href = page;
			frames = true;
		}
	}
	if (!frames){
		document.location.href = link;
	}
}
