function changePic(thePic,theShow,thePedestal,theLink) {
	document.getElementById(thePedestal).src = thePic;
	document.getElementById(thePedestal).alt = theShow;
}
function cursorSwitch(desiredarea,desiredcursor) {
	desiredarea.style.cursor = desiredcursor;
	}
function openWindow(thePic,theContainer) {
	var theBox = document.getElementById(theContainer);

	var theHTML = "<div style='width: 564px; height: 414px; background: #082987; margin: 0px auto; border: 2px solid #FFFFFF'>";
	theHTML += "<div style='width: 500px; height: 14px; text-align: right; margin: 8px auto 0px;'><a href='#'>Cerrar</a></div>";
	theHTML += "<img style='border: 2px solid #FFFFFF; margin-top: 8px' src='" + thePic.alt + "' /></div>";

	theBox.innerHTML = theHTML;
	theBox.style.visibility = "visible";

	var theContaina = document.getElementById("thaContaina").style;	
	theContaina.opacity = 0.5;
	theContaina.filter = 'alpha(opacity=50)';

}
function closeWindow() {
	var shit = document.getElementById("bgImg1");
	shit.style.visibility = "hidden";
	var shit2 = document.getElementById("bgImg2");
	shit2.style.visibility = "hidden";
	//var shit3 = document.getElementById("bgImg3");
	//shit3.style.visibility = "hidden";
	var theContaina = document.getElementById("thaContaina").style;	
	theContaina.opacity = 1;
	theContaina.filter = 'alpha(opacity=100)';
}
function showBox(event) {
	var x=event.clientX;
	var y=event.clientY;
	var x2=event.screenX;
	var y2=event.screenY;

if ((navigator.userAgent.indexOf("MSIE")) >=0) {
	var dx=document.documentElement.scrollLeft + document.body.scrollLeft;
	var dy=document.documentElement.scrollTop + document.body.scrollTop;
}
else {
	var dx=window.scrollX;
	var dy=window.scrollY;
}

	var thaBox = document.getElementById("remindBox");
	thaBox.style.visibility = "visible";
	thaBox.style.top = (y+dy+20) + 'px';
	thaBox.style.left = (x+dx+20) + 'px';
}
function hideBox(event) {
	var thyBox = document.getElementById("remindBox");
	thyBox.style.visibility = "hidden";
}
