if (window.frames)
{
	var host = self.location.hostname.toString()
	if (host != "" && host.indexOf(".google.") < 0)
	{
		if (top.location == self.location || !parent._SYS4U_2)
		{
			var MyHtml = document.location.toString()
			var is1 = MyHtml.lastIndexOf("\/")
			if (is1 > -1) {
				var is2 = MyHtml.substring(0,is1).lastIndexOf("\/")
				if (is2) {
					self.location = MyHtml.substring(0,is2)+"/frames2.php?section="+MyHtml.substring(is2+1,is1)+"&page="+MyHtml.substring(is1+1,MyHtml.length)
				}
			}
		}
	}
}

var Section
var ImgPath

function SetPage(_name) {
	Section = LastPath(window.location.pathname)
	ImgPath = Section + "/img/"
	var n = _name ? _name : window.location.pathname
	if (parent.SetSel) parent.SetSel(n)
}

function BigImg(Img,Title) {
	url = "../bigimg.php?img="+ImgPath+Img
	if (Title) url += "&title="+escape(Title);
	return OpenWin(url,"ImgWin",true,"resizable=yes") ? ClickReturn() : ButtonReturn();
}

