//	home page permissions 02/26/2006.
//	Block error messages, Disable select-text script, no right mouse click, DOM Image rollover

//<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original: David Sosnowski (support@codefoot.com) -->
<!-- Web Site: http://www.codefoot.com -->
<!-- Begin
function blockError(){return true;}
window.onerror = blockError;
// End -->
//</script>

//<script type="text/javascript">

/***********************************************
* Disable select-text script- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//form tags to omit in NS6+:
var omitformtags=["input", "textarea", "select"]

omitformtags=omitformtags.join("|")

function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}

function reEnable(){
return true
}

if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}

//</script>
//<script language=JavaScript>
var message="sorry, you are unable to click the right mouse button";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
// --> 
//</script>


//<script type="text/javascript">
/****************************************************
*	 DOM Image rollover:
*		by Chris Poole
*		http://chrispoole.com
* Script featured on http://www.dynamicdrive.com
*		Keep this notice intact to use it :-)
****************************************************/
function init2() {
 if (!document.getElementById) return
 var imgOriginSrc;
 var imgTemp = new Array();
 var imgarr = document.getElementsByTagName('img');
 for (var i = 0; i < imgarr.length; i++) {
 if (imgarr[i].getAttribute('hsrc')) {
 imgTemp[i] = new Image();
 imgTemp[i].src = imgarr[i].getAttribute('hsrc');
 imgarr[i].onmouseover = function() {
 imgOriginSrc = this.getAttribute('src');
 this.setAttribute('src',this.getAttribute('hsrc'))
 }
 imgarr[i].onmouseout = function() {
 this.setAttribute('src',imgOriginSrc)
 }
 }
 }
}
onload=init2;

//</script>
