function preload_images(){
	var imageObj = new Image(); //load the images into this

	var images = new Array(); //Array of the images to be preloaded
	images[0] = "../buttons/company-ro.png";
	images[1] = "../buttons/products-ro.png";
	images[2] = "../buttons/service-ro.png";
	images[3] = "../buttons/purchase-ro.png";
	images[4] = "../buttons/support-ro.png";
	images[5] = "../buttons/communityviz-ro.png";
	
	for (var i = 0; i < images.length; i++){
		imageObj.src = images[i];
	}
}

function preload_index_images(){
	var imageObj = new Image(); //load the images into this

	var images = new Array(); //Array of the images to be preloaded
	images[0] = "../buttons/box_demos-ro.png"
 	images[1] = "../buttons/box_slideshows-ro.png"
	images[2] = "../buttons/box_sampleoutputs-ro.png"
	images[3] = "../buttons/box_casestudies-ro.png"
	
	for (var j = 0; j < images.length; j++){
		imageObj.src = images[j];
	}

}

function noSpam(user,domain) {
	locationstring = "mailto:" + user + "@" + domain;
	window.location = locationstring;
}

var reset = setTimeout('resetCode()', 2000);
var topMargin = 0;
var input = "";
startCode();
function startCode(){
	window.document.onkeyup = function(e) {
		input += e ? e.keyCode : event.keyCode;     
		if (input == "3838404037393739666513") {
			setTimeout("moveDown()", 50);
		}
		clearTimeout(reset);
		reset = setTimeout('resetCode()', 2000);
	}
}
function moveDown(){
	topMargin += 10;
	document.getElementById("all_content").style.marginTop = topMargin + "px";
	if(topMargin < 1000){
		var d = setTimeout("moveDown()", 50);
	} else{
		document.write("<a href='./'>YOU WIN!</a>");
	}
}
function resetCode(){
	input = "";
}