self.status = "";

/*
Disable right mouse click Script (By Crash \@ http://walk.to/crash)
Submitted to and permission granted to Dynamicdrive.com to feature script in it's archive
For full source code to this script and 100's more, visit http://dynamicdrive.com
*/

if (document.layers) {
	document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;

function click(e) {
//	return true;
	if (document.all) {
		if (event.button == 2) {
			alert("sorry...no right clicking");
			return false;
		}
	}
	if (document.layers) {
		if (e.which == 3) {
			alert("sorry...no right clicking");
			return false;
		}
	}
}

if (! sCursor) {
	var sCursor = ""; //"../starnew.gif";
}
/*
Cross browser cursor trailer script
By Brian Caputo (bcaputo\@icdc.com)
Permission given to Dynamicdrive.com
to feature the script in it's DHTML archive
For 100's more DHTML scripts and components,
visit Dynamicdrive.com
*/
/*
var B = document.all;
var C = document.layers;
var T1 = "";
var nos = parseInt(T1.length/3);
var rate = 50;
var ie5fix1 = 0;
var ie5fix2 = 0;
*/

function createContainer(N,Xp,Yp,W,H,At,HT,Op,St) {
	with (document){
	write((!B) ? "<layer id='"+N+"' left="+Xp+" top="+Yp+" width="+W+" height="+H : "<div id='"+N+"'"+" style='position:absolute;left:"+Xp+"; top:"+Yp+"; width:"+W+"; height:"+H+"; ");
	if(St){
	if (C)
	write(" style='");
	write(St+";' ")
	}
	else write((B)?"'":"");
	write((At)? At+">" : ">");
	write((HT) ? HT : "");
	if (!Op)
	closeContainer(N)
	}
}
function closeContainer() {
	document.write((B) ? "</div>" : "</layer>");
}
function getXpos(N) {
	return (B) ? parseInt(B[N].style.left) : C[N].left;
}
function getYpos(N) {
	return (B) ? parseInt(B[N].style.top) : C[N].top;
}
function moveContainer(N,DX,DY) {
	c=(B) ? B[N].style :C[N]; c.left=DX; c.top=DY;
}
function cycle() {
	//if (IE5)
	if (document.all&&window.print) {
		ie5fix1 = document.body.scrollLeft;
		ie5fix2 = document.body.scrollTop;
	}
	for (i=0; i<(nos-1); i++) {
		moveContainer("CUR"+i, getXpos("CUR"+(i+1)), getYpos("CUR"+(i+1)))
	}
}
function newPos(e) {
	moveContainer("CUR"+(nos-1),(B)?event.clientX+ie5fix1:e.pageX+2,(B)?event.clientY+ie5fix2:e.pageY+2);
}

function LoadCursor(sCursor) {
	//	If the cursor is specified, load it.
	if (sCursor != "") {
		B = document.all;
		C = document.layers;
		T1 = new Array(sCursor,38,35,sCursor,30,31,sCursor,28,26,sCursor,22,21,sCursor,16,16,sCursor,10,10);
		nos = parseInt(T1.length/3);
		rate = 50;
		ie5fix1 = 0;
		ie5fix2 = 0;
		for (i=0;i<nos;i++) {
			createContainer("CUR"+i,i*10,i*10,i*3+1,i*3+2,"","<img src='" + T1[i*3] + "' width="+T1[(i*3+1)]+" height="+T1[(i*3+2)]+" border=0>");
		}
		if(document.layers) {
			document.captureEvents(Event.MOUSEMOVE);
		}
		document.onmousemove = newPos;
		setInterval("cycle()", rate);
	}
}
/*
	Snow Effect Script
	Created and submitted by Altan d.o.o. (snow@altan.hr,  http://www.altan.hr/snow/index.html)
	Permission granted to Dynamicdrive.com to feature script in archive
	For full source code and installation instructions to this script, visit http://dynamicdrive.com
*/
var dx, xp, yp;    // coordinate and position variables
var am, stx, sty;  // amplitude and step variables

function LoadSnow(sImg, iCnt) {
	//	sImg:	URL path to the snow image.
	//	iCnt:	How many flakes to render.
	var doc_height = 600;
	var doc_width = 800;
	var ii = 0;

	if (sImg == "") {
		return;
	}
	if (document.layers) {
		doc_height = self.innerHeight;
		doc_width = self.innerWidth;
	}
	else if (document.all) {
		doc_height = document.body.clientHeight;
		doc_width = document.body.clientWidth;
	}

	dx = new Array();
	xp = new Array();
	yp = new Array();
	am = new Array();
	stx = new Array();
	sty = new Array();
	for (ii = 0; ii < iCnt; ++ ii) {
		dx[ii] = 0;		// set coordinate variables
		xp[ii] = Math.random() * (doc_width - 50);  // set position variables
		yp[ii] = Math.random() * doc_height;
		am[ii] = Math.random() * 20;         // set amplitude variables
		stx[ii] = 0.02 + Math.random() / 10; // set step variables
		sty[ii] = 0.7 + Math.random();     // set step variables
		if (document.layers) {		// set layers
			if (ii == 0) {
				document.write("<layer name=\"dot" + ii + "\" left=\"15\" top=\"15\" visibility=\"show\"><a href=\"http://dynamicdrive.com/\"><img src='" + sImg + "' border=\"0\"></a></layer>");
			}
			else {
				document.write("<layer name=\"dot" + ii + "\" left=\"15\" top=\"15\" visibility=\"show\"><img src='" + sImg + "' border=\"0\"></layer>");
			}
		}
		else if (document.all) {
			if (ii == 0) {
				document.write("<div id=\"dot" + ii + "\" style=\"position: absolute; z-index: " + ii + "; visibility: visible; top: 15px; left: 15px;\"><a href=\"http://dynamicdrive.com\"><img src='" + sImg + "' border=\"0\"></a></div>");
			}
			else {
				document.write("<div id=\"dot" + ii + "\" style=\"position: absolute; z-index: " + ii + "; visibility: visible; top: 15px; left: 15px;\"><img src='" + sImg + "' border=\"0\"></div>");
			}
		}
	}
	if (document.layers) {
		snowNS(iCnt);
	}
	else if (document.all) {
		snowIE(iCnt);
	}
	return;
}

function snowNS(iCnt) {  // Netscape main animation function
	var doc_height = self.innerHeight;
	var doc_width = self.innerWidth;
	var ii = 0;
	for (ii = 0; ii < iCnt; ++ ii) {	// iterate for every dot
		yp[ii] += sty[ii];
		if (yp[ii] > doc_height - 50) {
			xp[ii] = Math.random() * (doc_width - am[ii] - 30);
			yp[ii] = 0;
			stx[ii] = 0.02 + Math.random() / 10;
			sty[ii] = 0.7 + Math.random();
		}
		dx[ii] += stx[ii];
		document.layers["dot" + ii].top = yp[ii];
		document.layers["dot" + ii].left = xp[ii] + am[ii] * Math.sin(dx[ii]);
	}
	setTimeout("snowNS(" + iCnt + ")", 10);
}

function snowIE(iCnt) {  // IE main animation function
	var doc_height = document.body.clientHeight;
	var doc_width = document.body.clientWidth;
	var ii = 0;
	for (ii = 0; ii < iCnt; ++ ii) {	// iterate for every dot
		yp[ii] += sty[ii];
		if (yp[ii] > doc_height - 50) {
			xp[ii] = Math.random() * (doc_width - am[ii] - 30);
			yp[ii] = 0;
			stx[ii] = 0.02 + Math.random() / 10;
			sty[ii] = 0.7 + Math.random();
		}
		dx[ii] += stx[ii];
		document.all["dot" + ii].style.pixelTop = yp[ii];
		document.all["dot" + ii].style.pixelLeft = xp[ii] + am[ii] * Math.sin(dx[ii]);
	}
	setTimeout("snowIE(" + iCnt + ")", 10);
}