var isok=chkver();
var x, y;

function break_the_frame() {
	if (self != top) {
		top.location.href = window.location.href;
	}
}

function chkver() {

	var bName = navigator.appName;
	var bVer = parseFloat(navigator.appVersion);

	if (((bName == "Netscape") && (bVer >=3))  || ((bName == "Microsoft Internet Explorer") && (bVer >= 4)))
		return true;
	else
		return false;
}

function popup_page(filename) {

	var mywidth = screen.width - 300;
	var url = "http://members.attcanada.ca/~gho/" + filename + ".html";

	openwin = window.open(url, 'popup_win', 'screenX="+mywidth+",left="+mywidth+",screenY=0,top=0,width=445,height=460,scrollbars=1');
}

function kitpic(picurl,wintit) {

	var mywidth = screen.width - 300;

	carpic=window.open('',"displayWindow","screenX="+mywidth+",left="+mywidth+",screenY=0,top=0,width=290,height=183,toolbar=0,menubar=0,location=0,status=1");
	carpic.document.write("<html><head><title>"+wintit+"</title><link rel=\"StyleSheet\" type=\"text/css\" href=\"/sol.css\"></head>\n");
	carpic.document.write("<body bgcolor=\"black\" link=\"red\" marginheight=\"4\" topmargin=\"4\" onBlur='self.focus()'>\n");
	carpic.document.write("<font face=\"Tahoma\" size=\"2\">\n");
	carpic.document.write("<center>\n");
	carpic.document.write("<img src=\"/Bodykits/"+picurl+"\" width=\"270\" height=\"162\">\n");
	carpic.document.write("<font face=\"Tahoma\" size=\"1\">");
	carpic.document.write("<a href='#' onClick='self.close()'>Close window!</a>\n");
	carpic.document.write("</font></center></font></body></html>");
	carpic.document.close();
}

function imgwin(picurl,wintit,w,h) {

	if (isok) {

		var winhigh = h+30;
		var winwide = w+16;

		carpic=window.open('',"displayWindow","screenX=0,left=0,screenY=0,top=0,width="+winwide+",height="+winhigh+",toolbar=0,menubar=0,location=0,status=1");
		carpic.document.write("<html><head><title>"+wintit+"</title></head><body><center>");
		carpic.document.write("<img src=\"/"+picurl+"\" height="+h+" width="+w+">");
		carpic.document.write("<br>\n<font face=\"Tahoma\" size=\"1\">");
		carpic.document.write("<a href=\"#\" onClick='self.close(); return false;'>Close this window</a>");
		carpic.document.write("</font></center></body></html>");
		carpic.document.close();

	} else {
		alert("I told you, you will experience difficulties when you\nare not using a JavaScript 1.1 supported browser.\nPlease upgrade your current browser to a version 4.x or up.");
	}
}

function showpic(picname) {

	if (isok) {
	 	document.location='#top';
		document.screen.src="http://crxvti.members.easyspace.com/Meetings/"+picname;
	} else {
		alert("I told you, you will experience difficulties when you\nare NOT using a JavaScript 1.1 supported browser.\nPlease upgrade your current browser to a 4.x one.");
	}
}

function show(object,e) {
	
	if (e != '') {
		if (document.all) {
		   x = e.clientX - 10;
		   y = e.clientY + 20;
		}
		if (document.layers) {
		   x = e.pageX - 10;
		   y = e.pageY + 20;
		}
	}
	if (document.layers && document.layers[object] != null) {
		document.layers[object].left = x;
		document.layers[object].top = y;
	} else if (document.all) {
		document.all[object].style.posLeft = x;
		document.all[object].style.posTop = y;
	}
	if (document.layers && document.layers[object] != null)
		document.layers[object].visibility = 'visible';
	else if (document.all)
		document.all[object].style.visibility = 'visible';
}

function hide(object,e) {
	
	if (document.layers && document.layers[object] != null)
		document.layers[object].visibility = 'hidden';
	else if (document.all)
		document.all[object].style.visibility = 'hidden';
}

function openPartsWin(url,w,h) {

	var mywidth = screen.width - (w + 10);
	
	newer=window.open(url,"partswindow","screenX="+mywidth+",left="+mywidth+",screenY=0,top=0,width="+w+",height="+h+",toolbar=0,menubar=0,location=0,status=1,scrollbars=1");
}

