﻿
var URL = unescape(location.href)	// get current URL in plain ASCII
var xend = URL.lastIndexOf("/") + 1
var PageUrl = URL.substring(0,xend)
PageUrl = PageUrl.toLowerCase();

if (self.parent.frames.length == 0)
{
	//if page is not in Iframe redirect to default page
//	document.location.href = PageUrl;
}