// Fotomoto: sell your pictures through the Internet
var fotomoto_api_mode = true;
    function fmWidget() {
    return FOTOMOTO.API.addPhoto(FOTOMOTO.getImages()[0]);
}

// Expand hidden elements
function Switch(elemNum){
	elem = document.getElementById(elemNum);
	if (elem.style.display == "none"){
		elem.style.display = "";
	}
	else{
		elem.style.display = "none";
	}
}


// tooltips (based on http://www.webmatze.de/webdesign/javascript/tooltips.htm... thx!)
function update(e) {
	var x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
	var y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;
	if (wmtt != null) {
		wmtt.style.left = (x + 12) + "px";
		wmtt.style.top 	= (y + 12) + "px";
		}
}

function show(id) {
	wmtt = document.getElementById(id);
//	wmtt = id;
	wmtt.style.display = "block";
}

function hide() {
	wmtt.style.display = "none";
}

function hideall(hiddenContentElement,hiddenContentClass) {
	for (i=0;i<document.getElementsByTagName(hiddenContentElement).length; i++) {
		if (document.getElementsByTagName(hiddenContentElement).item(i).className == hiddenContentClass){
			document.getElementsByTagName(hiddenContentElement).item(i).style.display = "none";
		}
	}
}

var wmtt = null;
window.onload = function(){
    hideall("div","tooltip");
    hideall("span","lang-sp");
};
document.onmousemove = update;




