function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		email_over = newImage("images/email-over.gif");
		print_over = newImage("images/print-over.gif");
		contact_over = newImage("images/contact-over.gif");
		preloadFlag = true;
	}
}

function videopop(theURL) { //v2.0
  window.open("/"+theURL,"videowin","toolbar=no,personal=no,menubar=no,status=yes,resizable=yes,width=560,height=420,location=no,scrollbars=yes");
  videowin.focus();
}
//preloadImages();
function regpop() { //v2.0
regwin=window.open("http://www.registerforthejam.com","regwin","toolbar=no,personal=no,menubar=no,status=yes,resizable=yes,width=680,height=500,location=no,scrollbars=yes");
  regwin.focus();
}

/*************** open print window */
var printWin;

function Print(x){
/* check value of x */
    var printURI;
    if (x == null){
    printURI = "";
    } else {
    printURI = x;
    }

/* execute open popup window */
	if (printWin == null || printWin.closed){
		printWin = window.open("/"+printURI,"","toolbar=no,personal=no,menubar=no,status=yes,resizable=yes,width=600,height=400,location=no,scrollbars=yes");
printWin.print();
		}else{
		printWin.focus();
		printWin.location.replace("/"+printURI);
		printWin.print();
		
	}
}

var winName;
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open("/"+theURL,winName,features);
  winName.focus();
}

function pop(theURL,winName,features) { //v2.0
  winName = window.open("/"+theURL,'',features);
  winName.focus();
}

function videopop(theURL) { //v2.0
  window.open("/"+theURL,"videowin","toolbar=no,personal=no,menubar=no,status=yes,resizable=yes,width=560,height=420,location=no,scrollbars=yes");
  videowin.focus();
}
