function CheckFrames()
{
	// Check that we've loaded the frameset
	var strLoc  = window.location.href ;

	if (top.location.href == strLoc)
	{
		var strFile = "" ;
		var strPath = "";
		var strUrl = "" ;
		var strHash = "" ;
		
		var i = 0 ;

		// Get the filename (first /)
		i = strLoc.lastIndexOf("/") ;
		strFile = strLoc.substr(i+1, strLoc.length) ;
		// Update the Location
		strLoc = strLoc.substr(0, i) ;
		
		if (strFile != "blank.htm" && strFile != "")
		{
			// Get the Path (second /)
			i = strLoc.lastIndexOf("/") ;
			strPath = strLoc.substr(i+1, strLoc.length) ;

			// Update the Location
			strLoc = strLoc.substr(0, i) ;
			
			//strHash = "#.." + "/" + strPath + "/" + strFile ;
		}
		// We need to load the frame set
		top.location.href = strLoc + strHash ;
	}
}

//Default browsercheck, added to all scripts!

function checkBrowser()
{
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(top.document.layers && !this.dom)?1:0;
	this.ie=(this.ie4 || this.ie5)?1:0 ;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5) ;
	return this
}

bw = new checkBrowser() ;

function Init()
{
	// Check that the frameset has been loaded
	CheckFrames() ;

	//Do any page initialisation
	DoPageInit() ;
}

// Do initialisation
onload=Init ;
