﻿if (window.frames) {
	host = self.location.hostname
	var loc = new String(self.location)
	if (host != "" && host.indexOf(".google.") < 0 ) {
		if (top.location == loc || !parent._BPL_FRAMES) {
			var MyHtml = String(document.location)

			top.location = MyHtml.substring(0,MyHtml.lastIndexOf("\/"))+"/frames.php?"+escape(MyHtml.substring(MyHtml.lastIndexOf("\/")+1,MyHtml.length))
		}
	}
}

var _SetSelName = '';

function SetPage(_Name) {
	if (window.frames) {
		var Name;
		if (_SetSelName) {
			Name = _SetSelName;
		} else {
			Name = String(_Name ? _Name : document.location);
			var is2 = Name.lastIndexOf(".")
			if (is2 > 0) {
				Name = Name.substring(Name.lastIndexOf("\/")+1,is2);
			}
		}
		if (parent["Nav"] && parent["Nav"].SetSel) {
			parent["Nav"].SetSel(Name);
		}
	}
}