// BROWSER CHECK BEGIN
var version = parseInt(navigator.appVersion);
if (navigator.appName == "Microsoft Internet Explorer" && version == 4) {
	if (/4\.\d+\D+(\d+)\D/.test(navigator.appVersion)) {
		version = RegExp.$1;
	}
}
if(navigator.appName == "Netscape" && version < 5) {
	window.location.href = 'browser.html';
}
else if(navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && navigator.userAgent.indexOf("Opera") == -1) {
	if (version < 5) {
		window.location.href = 'browser.html';
	}
}
else if(navigator.platform == "MacPPC" && navigator.appName == "Microsoft Internet Explorer"&& navigator.userAgent.indexOf("Opera") == -1) {
	window.location.href = 'browser.html';
}
//BROWSER CHECK END

if (navigator.platform == "Win32" && navigator.appName == "Microsoft Internet Explorer" && navigator.userAgent.indexOf("Opera") == -1) {
	document.write('<style type="text/css"><!-- ');
	document.write('#head_nav {padding-top:7px;}');
	document.write('.content_box {width:618px;');
	document.write('.article_box {width:618px;');
	document.write(' --><\/style>');
}

var status;
var doc;
var where;

function checkURL() {
	if (document.URL.indexOf("cPath=1") != -1 || document.URL.indexOf("info=p1") != -1 || document.URL.indexOf("info=p2") != -1 || document.URL.indexOf("info=p3") != -1 || document.URL.indexOf("info=p4") != -1) {
		doc = 'c1';
		status = 'over';
	}
	else if (document.URL.indexOf("cPath=2") != -1 || document.URL.indexOf("info=p5") != -1 || document.URL.indexOf("info=p6") != -1) {
		doc = 'c2';
		status = 'over';
	}
	else if (document.URL.indexOf("cPath=3") != -1 || document.URL.indexOf("info=p9") != -1) {
		doc = 'c10';
		status = 'over';
	}
	else if (document.URL.indexOf("coID=11") != -1) {
		doc = 'c3';
		status = 'over';
	}
	else if (document.URL.indexOf("coID=12") != -1) {
		doc = 'c4';
		status = 'over';
	}
	else if (document.URL.indexOf("coID=13") != -1) {
		doc = 'c5';
		status = 'over';
	}
	else if (document.URL.indexOf("coID=10") != -1) {
		doc = 'c6';
		status = 'over';
	}
	else if (document.URL.indexOf("coID=9") != -1) {
		doc = 'c7';
		status = 'over';
	}
	else if (document.URL.indexOf("newsletter.php") != -1) {
		doc = 'c8';
		status = 'over';
	}
	else if (document.URL.indexOf("coID=7") != -1) {
		doc = 'c9';
		status = 'over';
	}
	else if (document.URL.indexOf("cPath=6") != -1) {
		doc = 'c11';
		status = 'over';
	}
	else doc = '';
	setLink();
}

function setLink() {
	if (document.getElementById(where+'box') || doc != '') {
		document.getElementById(doc+'box').style.background='url(templates/pfeffer/img/' + doc + 'bg.gif) -12px 13px no-repeat';
	}
}
function linkTo(where,status) {
	if (document.getElementById(where+'box') || where != '') {
		if (status == 'over') {
			document.getElementById(where+'box').style.background='url(templates/pfeffer/img/' + where + 'bg.gif) -12px 13px no-repeat';
		}
		else if (status == 'out' && where != doc) {
			document.getElementById(where+'box').style.background='none';
		}
	}
}
function submitForm(formname) {
	if(document.getElementById(formname)) {
		document.getElementById(formname).submit();
	}
	else document.forms[formname].submit();
}
function backToTop() {
	window.scrollTo(0,0);
}
function rowOverEffect() {
}

function rowOutEffect() {
}

function selectRowEffect() {
}
