// function to check the frames
function checkframes() {
	if (!parent.frames['vipnav']) {
		tempURL    = self.location.href;
		contentURL = tempURL.substring((tempURL.indexOf(location.hostname)+location.hostname.length), tempURL.length);
		top.location.href = "/?contentURL=" + contentURL;
	}
}

function init(nr) {
	checkframes();
	setTimeout("parent.frames['vipnav'].activate(" + nr + ")", 500);
}