//---- Set this variable only! ----
var buildDir = "includes/";
//---------------------------------

var ie4 = false, ie5_mac = false, ie55 = false;
var nn4 = false, dom = false, opera = false, safari = false;
var agent = navigator.userAgent.toLowerCase();

if (agent.indexOf("opera") != -1)
	opera = true;
else if (agent.indexOf("safari") != -1)
	safari = true;
else if (document.all)
{
	var version = parseFloat(agent.substr(agent.indexOf("msie")+5, 3));
	if (agent.indexOf("mac") != -1 && version >= 5)
		ie5_mac = true;
	else
	{
		if (version >= 5.5)
			ie55 = true;
		else if (version >= 4)
		{
			ie4 = true;
		}
	}
}
//else if (document.layers)
else if (navigator.appName == "Netscape" && parseInt(navigator.appVersion) >= 4 && 
	parseInt(navigator.appVersion) < 5)
	nn4 = true;
else if (document.getElementById)
	dom = true;

var blank = new Image();
blank.src = buildDir + "blank.gif";

if (ie4)
	document.write('<script type="text/javascript" src="' + buildDir + 'ie55-build.js"></script>');
else if (ie5_mac)
	document.write('<script type="text/javascript" src="' + buildDir + 'ie5m-build.js"></script>');
else if (ie55)
	document.write('<script type="text/javascript" src="' + buildDir + 'ie55-build.js"></script>');
else if (nn4)
	document.write('<script type="text/javascript" src="' + buildDir + 'ns4-build.js"></script>');
else if (dom)
	document.write('<script type="text/javascript" src="' + buildDir + 'dom-build.js"></script>');
else if (opera)
	document.write('<script type="text/javascript" src="' + buildDir + 'op7-build.js"></script>');
else if (safari)
	document.write('<script type="text/javascript" src="' + buildDir + 'saf-build.js"></script>');
else
{
	alert("Your browser doesn't support this script.");
	location.href = buildDir + "upgrade.html";
	document.write('<script type="text/javascript" src="' + buildDir + 'no-build.js"></script>');
}



<!--
function hp_ne()
{
	return true
}
onerror=hp_ne;
function hp_dn(a)
{
	return false
}
function hp_cm()
{
	alert("\u0054\u0068\u0069\u0073\u0020\u0070\u0061\u0067\u0065\u0020\u0068\u0061\u0073\u0020\u0062\u0065\u0065\u006E\u0020\u0070\u0072\u006F\u0074\u0065\u0063\u0074\u0065\u0064\u002E\u0020\u0050\u0072\u0065\u0076\u0069\u0065\u0077\u0020\u006F\u006E\u006C\u0079\u002E");
	return false
}
function hp_de(e)
{
	return(e.target.tagName!=null&&e.target.tagName.search('^(INPUT|TEXTAREA|BUTTON|SELECT)$')!=-1)
};
function hp_md(e)
{
	mac=navigator.userAgent.indexOf('Mac')!=-1;
	if(document.all)
	{
		if(event.button==2||(mac&&(event.ctrlKey||event.keyCode==91)))
		{
			alert("\u0054\u0068\u0069\u0073\u0020\u0070\u0061\u0067\u0065\u0020\u0068\u0061\u0073\u0020\u0062\u0065\u0065\u006E\u0020\u0070\u0072\u006F\u0074\u0065\u0063\u0074\u0065\u0064\u002E\u0020\u0050\u0072\u0065\u0076\u0069\u0065\u0077\u0020\u006F\u006E\u006C\u0079\u002E");
			return(false)
		}
	}
	else
	{
		if(e.which==3||(mac&&(e.modifiers==2||e.ctrlKey)))
		{
			alert("\u0054\u0068\u0069\u0073\u0020\u0070\u0061\u0067\u0065\u0020\u0068\u0061\u0073\u0020\u0062\u0065\u0065\u006E\u0020\u0070\u0072\u006F\u0074\u0065\u0063\u0074\u0065\u0064\u002E\u0020\u0050\u0072\u0065\u0076\u0069\u0065\u0077\u0020\u006F\u006E\u006C\u0079\u002E");
			return false
		}
		else if(e.which==1)
		{
			window.captureEvents(Event.MOUSEMOVE);
			window.onmousemove=hp_dn
		}
	}
}
function hp_mu(e)
{
	if(e.which==1)
	{
		window.releaseEvents(Event.MOUSEMOVE);
		window.onmousemove=null
	}
}
if(navigator.appName.indexOf('Internet Explorer')==-1||(navigator.userAgent.indexOf('MSIE')!=-1&&document.all.length!=0))
{
	if(document.all)
	{
		mac=navigator.userAgent.indexOf('Mac')!=-1;
		version=parseFloat('0'+navigator.userAgent.substr(navigator.userAgent.indexOf('MSIE')+5),10);
		if(!mac&&version>4)
		{
			document.oncontextmenu=hp_cm
		}
		else
		{
			document.onmousedown=hp_md;
			document.onkeydown=hp_md;
		}
		document.onselectstart=hp_dn
	}
	else if(document.layers)
	{
		window.captureEvents(Event.MOUSEDOWN|Event.modifiers|Event.KEYDOWN|Event.MOUSEUP);
		window.onmousedown=hp_md;window.onkeydown=hp_md;
		window.onmouseup=hp_mu
	}
	else if(document.getElementById&&!document.all)
	{
		document.oncontextmenu=hp_cm;document.onmousedown=hp_de
	}
}
function hp_dp1()
{
	for(i=0;i<document.all.length;i++)
	{
		if(document.all[i].style.visibility!="hidden")
		{
			document.all[i].style.visibility="hidden";document.all[i].id="hp_id"
		}
	}
};
function hp_dp2()
{
	for(i=0;i<document.all.length;i++)
	{
		if(document.all[i].id=="hp_id")document.all[i].style.visibility=""
	}
};
function hp_dc()
{
	hp_ta.createTextRange().execCommand("Copy");
	setTimeout("hp_dc()",300)
}
if(navigator.appName.indexOf('Internet Explorer')==-1||(navigator.userAgent.indexOf('MSIE')!=-1&&document.all.length!=0))
{
	if(document.all&&navigator.userAgent.indexOf('Opera')==-1)
	{
		document.write('<div style="position:absolute;left:-1000px;top:-1000px"><input type="textarea" name="hp_ta" value=" " style="visibility:hidden"></div>');
		hp_dc()
	}
}
function hp_ndd()
{
	return false
}

window.onbeforeprint=hp_dp1;
window.onafterprint=hp_dp2;
document.write('<style type="text/css" media="print"><!--body{display:none}--></style>');
document.ondragstart=hp_ndd;
//-->
