// check correct frameset loading
framesetURL = "home.htm";
welcomeURL = "index.htm";
popupURL = "popup.htm";
selfURL = location.href.substr(location.href.lastIndexOf("/") + 1);
paramURL = (selfURL.lastIndexOf("?") > 0) ? selfURL.substr(selfURL.lastIndexOf("?") + 1) : "";
paramURL = (paramURL.length > 0) ? "::" + paramURL : paramURL;
lengthURL = (selfURL.lastIndexOf("?") > 0) ? selfURL.length - selfURL.lastIndexOf("?") : 0;
lengthURL = selfURL.length - lengthURL;
selfURL = selfURL.substr(0, lengthURL);

if ((selfURL) && (selfURL != framesetURL) && (selfURL != welcomeURL) && (selfURL != popupURL) && (self.name == top.name))
{
	window.location = framesetURL + "?target=" + selfURL + paramURL;
}


// popup opening
bPopDisabled = false
iPopWidth = 456
iPopHeight = 530

function showPopup() {
	sPopFeatures = "height=" + iPopHeight + ",width=" + iPopWidth + ","
	sPopFeatures += "resizable=yes,scrollbars=yes,status=yes,toolbar=no,menubar=no,location=no"
	if (bPopDisabled) return
	else return window.open("popup.htm", "popup", sPopFeatures)
}


// review opening
bReviewDisabled = true
iReviewWidth = 450
iReviewHeight = 600

function showReview() {
	sReviewFeatures = "height=" + iReviewHeight + ",width=" + iReviewWidth + ","
	sReviewFeatures += "resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no"
	if (bReviewDisabled) return
	else return window.open("EditorialeMetalManiacGiugno06.pdf", "review", sReviewFeatures)
}


// mouseover and mouseout effect
function rollOut(tabName, imgSrc) {

	tabName.src = "images/menu" + imgSrc + ".jpg";
}

function rollOver(tabName, imgSrc) {

	tabName.src = "images/menu" + imgSrc + "_over.jpg";
}
