//event handler for mouse events:
function right(e) 
{
	if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))
		return false;
	else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) 
	{
		shake(2);
		alert("Please don't copy our pictures.\nŠ2009 KristiSnowCat.com");
		return(false);
	}
	return true;
}

function shake(n) 
{
	if (parent.moveBy) 
	{
		for (i = 10; i > 7; i--) 
		{
			for (j = n; j > 0; j--) 
			{
				parent.moveBy(0,i);
				parent.moveBy(i,0);
				parent.moveBy(0,-i);
				parent.moveBy(-i,0);
				parent.moveBy(0,i);
				parent.moveBy(i,0);
				parent.moveBy(0,-i);
				parent.moveBy(-i,0);
				parent.moveBy(0,i);
				parent.moveBy(i,0);
				parent.moveBy(0,-i);
				parent.moveBy(-i,0);
				
			}
		}
   	}
	return(false);
}

//register document events:
document.onmousedown	= right;
document.onmouseup		= right;
if (document.layers) 
	window.captureEvents(Event.MOUSEDOWN);
if (document.layers) 
	window.captureEvents(Event.MOUSEUP);

window.onmousedown		= right;
window.onmouseup		= right;

//Statusbar
function hidestatus(){
window.status=''
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus

//wiki Welcome           
if (document.referrer == "http://en.wikipedia.org/wiki/Kristi_Snowcat") 
   	alert('Welcome to KristiSnowCat.com! Please note that the history of the Kristi snow vehicles on wikipedia is inaccurate.  Please take a look at the History section of this website for the real history of the Kristi Company.'); 

//wiki Welcome           
if (document.referrer == "http://en.wikipedia.org/wiki/KRISTI_snowcat") 
   	alert('Welcome to KristiSnowCat.com! Please note that the history of the Kristi snow vehicles on wikipedia is inaccurate.  Please take a look at the History section of this website for the real history of the Kristi Company.'); 
