function swPopup(url, w, h) {
	var f = 'width=' + w + ',height=' + h + ',resizable=yes,scrollbars=yes'; //
	window.open(url, '', f);
}

function getRadomNumber(num) {
	if(!num) var num = 13;
	var n = Math.floor(Math.random() * num) + 1;
	return n;
	//document.write(n);
}

function swHeader() {
	var n = getRadomNumber(6);
	var htmlString = "<a href='enter.html'><img src='images2/hdrs/sw_header" + n + ".jpg'></a><br />";

	document.write(htmlString);
}

function swQuote() {
	var url = new Array();
	url[1] = '/funny_videos/sw_padme/';
	url[2] = '/funny_videos/sw_jedi_gym/';
	url[3] = '/funny_videos/sw_interrogation_droid/';
	url[4] = '/funny_videos/sw_esb_redux/';
	url[5] = '/funny_videos/sw_gl_hip_hop_awards/';
	
	var quote = new Array;	
	quote[1] = '"Rebel forces have totally targeted my exhaust port." <span class="quoteBy">- PADME</span>';
	quote[2] = '"Geeks are cool now. This is our time." <span class="quoteBy">- JEDI GYM</span>';
	quote[3] = '"I\'m not here to massage your feet." <span class="quoteBy">- INTERROGATION DROID</span>';
	quote[4] = '"Meesa your daddy!" <span class="quoteBy">- ESB REDUX</span>';
	quote[5] = '"Wuttup dogs? Word." <span class="quoteBy">- GEORGE LUCAS<br>HIP HOP AWARDS</span>';

	var n = getRadomNumber(5);
	var htmlString = "<a href='" + url[n] + "' target='_blank'><img src='images2/quotes/quote" + n + ".jpg' /><br /><p align=center class='quoteTxt'>" + quote[n] + "</p></a>";

	document.write(htmlString);
}

function swCallout() {
	var url = new Array();
	url[1] = 'http://www.spike.com/';
	url[2] = 'http://www.spike.com/';
	url[3] = 'awards.html';
	url[4] = 'awards.html';
	url[5] = 'awards.html';
	url[6] = 'http://www.spike.com/';
	url[7] = 'http://www.spike.com/';
	url[8] = 'awards.html';
	
	var n = getRadomNumber(8);
	var htmlString = "<a href='" + url[n] + "'";
	if(url[n] != 'awards.html') {
		htmlString += " target='_blank'";
	}
	htmlString += "><img src='images2/callouts/callout" + n + ".jpg' /></a><br />";

	document.write(htmlString);
}

//###################################
// Author: ricocheting.com
// For: public release (freeware)
// Date: 4/24/2003 (update: 5/24/2006)
// Description: displays the amount of time until the "dateFuture" entered below.
// http://www.ricocheting.com/js/countdown.html

// NOTE: the month entered must be one less than current month. ie; 0=January, 11=December
// NOTE: the hour is in 24 hour format. 0=12am, 15=3pm etc
// format: dateFuture = new Date(year,month-1,day,hour,min,sec)
// example: dateFuture = new Date(2003,03,26,14,15,00) = April 26, 2003 - 2:15:00 pm

// dateFuture = new Date(2008,4,27,19,20,31); // = May 27, 2008 - 7:20:31 pm

dateFuture = new Date(2008,6,24,0,0,0); // = July 24, 2008 - 12:00:00 am

//dateFuture = new Date(2007,4,27,0,0,0); // = past date

// TESTING: comment out the line below to print out the "dateFuture" for testing purposes
//document.write(dateFuture +"<br />");


//###################################

<!--
function GetCount(){

	dateNow = new Date();									//grab current date
	amount = dateFuture.getTime() - dateNow.getTime();		//calc milliseconds between dates
	delete dateNow;

	// time is already past
	if(amount < 0){
		document.getElementById('countbox').innerHTML="00 : 00 : 00";
	}
	// date is still good
	else{
		days=0;hours=0;mins=0;secs=0;out="";

		amount = Math.floor(amount/1000);//kill the "milliseconds" so just secs

		days=Math.floor(amount/86400);//days
		amount=amount%86400;

		hours=Math.floor(amount/3600);//hours
		amount=amount%3600;

		mins=Math.floor(amount/60);//minutes
		amount=amount%60;

		secs=Math.floor(amount);//seconds

		if(days != 0){out += days +" : ";}
		if(days != 0 || hours != 0){out += hours +" : ";}
		if(days != 0 || hours != 0 || mins != 0){out += mins;}
		//out += secs +" seconds";
		document.getElementById('countbox').innerHTML=out;

		setTimeout("GetCount()", 1000);
	}
}

window.onload=function(){GetCount();}//call when everything has loaded
-->


