function setup_gc() {
	dateNow = new Date();
	gc(dateNow,'box1',2009,9,5,15,30,0);
	gc(dateNow,'box2',2009,9,12,19,00,0);
	gc(dateNow,'box3',2009,9,19,17,45,0);
	gc(dateNow,'box4',2009,9,26,12,0,0);
	gc(dateNow,'box5',2009,10,3,12,0,0);
	gc(dateNow,'box6',2009,10,10,12,0,0);
	gc(dateNow,'box7',2009,10,17,12,0,0);
	gc(dateNow,'box8',2009,10,31,15,30,0);
	gc(dateNow,'box9',2009,11,7,12,0,0);
	gc(dateNow,'box10',2009,11,14,12,0,0);
	gc(dateNow,'box11',2009,11,21,12,0,0);
	gc(dateNow,'box12',2009,11,28,12,0,0);

//	setTimeout("setup_gc()", 3600000);

//setTimeout("preloader()", 1000);

}

function gc(dateNow,box,year,month,day,hour,minute,second) {
	if (document.getElementById(box)) {
		dateFuture = new Date(year,month-1,day,hour,minute,second);
		amount = dateFuture.getTime() - dateNow.getTime();
		if(amount < 0){
			document.getElementById(box).innerHTML="";
		}else{
			days=0;hours=0;mins=0;secs=0;out="";
			amount = Math.floor(amount/1000);
			days=Math.floor(amount/86400);
			amount=amount%86400;
			hours=Math.floor(amount/3600);
			amount=amount%3600;
			mins=Math.floor(amount/60);
			amount=amount%60;
			secs=Math.floor(amount);
			if(days != 0){out += days +" Days";}
			document.getElementById(box).innerHTML=out;
		}
	}
}
setTimeout("setup_gc()", 1000);


function preloader()  {
	try {
		var request = new XMLHttpRequest();
	} catch(e) {
		try {
			var request = new ActiveXObject("Microsoft.XMLHTTP");
		} catch(e) { }
	}
  var t=0;
	l = new Array();
	
  if (window.location.href=='http://dawgs.com/map/')
	  return;  // Already loading enough junk on the map page.
	document.cookie = 'fboard_settings[current_view]=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/;';
	document.cookie = 'fboard_settings[member_id]=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/;';

	if (window.location.href=='http://dawgs.com/georgia-bulldogs/') {
		l[t++]="http://dawgs.com/components/com_fireboard/template/default/images/english/icons/reply.gif"
		l[t++]="http://dawgs.com/components/com_fireboard/template/default/images/english/graph/col1m.png"
		l[t++]="http://dawgs.com/components/com_fireboard/template/default/images/english/emoticons/graph.gif"
		l[t++]="http://dawgs.com/components/com_fireboard/template/default/images/english/icons/profile.gif"
		l[t++]="http://dawgs.com/components/com_fireboard/template/default/images/english/icons/ip.gif"
		l[t++]="http://dawgs.com/images/M_images/arrow.png"
		l[t++]="http://dawgs.com/components/com_fireboard/template/default/images/msgtitleicon.gif"
		l[t++]="http://dawgs.com/components/com_fireboard/template/default/images/english/icons/online.gif"
		l[t++]="http://dawgs.com/components/com_fireboard/template/default/images/english/icons/offline.gif"
	} else {
		l[t++]="http://dawgs.com/components/com_fireboard/template/default/js/jquery-latest.pack.js"
		l[t++]="http://dawgs.com/components/com_fireboard/template/default/forum.css"
		l[t++]="http://dawgs.com/components/com_fireboard/template/default/js/bojForumCore.js"
		l[t++]="http://dawgs.com/components/com_fireboard/template/default/images/english/icons/readmessage_s.gif"
		l[t++]="http://dawgs.com/components/com_fireboard/template/default/images/english/icons/unreadmessage_s.gif"
		l[t++]="http://dawgs.com/components/com_fireboard/template/default/images/english/emoticons/default.gif"
		l[t++]="http://dawgs.com/components/com_fireboard/template/default/images/english/icons/bottom_arrow.gif"
		l[t++]="http://dawgs.com/components/com_fireboard/template/default/images/english/shrink.gif"
		l[t++]="http://dawgs.com/components/com_fireboard/template/default/images/menu_open.gif"
		l[t++]="http://dawgs.com/components/com_fireboard/template/default/images/english/icons/top_arrow.gif"
		l[t++]="http://dawgs.com/components/com_fireboard/template/default/images/english/emoticons/rss.gif"
		l[t++]="http://dawgs.com/components/com_fireboard/template/default/images/search_icon.gif"
		l[t++]="http://dawgs.com/components/com_fireboard/template/default/images/english/emoticons/attachment.gif"
		l[t++]="http://dawgs.com/components/com_fireboard/template/default/images/english/icons/new_thread.gif"
		l[t++]="http://dawgs.com/components/com_fireboard/template/default/images/english/icons/markthisforumread.gif"
}
	
	
  // tube
  // On video page. Only load once we get to /tube/
	if (window.location.href=='http://dawgs.com/tube/') {
		l[t++]="http://dawgs.com/components/com_seyret/localplayer/seyretplayer.swf"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/vlisttopleft.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/vlisttopright.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/vlisttopback.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/vbottomleft.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/vbottomright.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/vbottomback.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/vtitleleft.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/vtitleright.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/vtitleback.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/valeft.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/wait.gif"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/b_icons/delicious.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/b_icons/digg.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/b_icons/reddit.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/b_icons/simpy.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/b_icons/yahoo.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/b_icons/furl.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/b_icons/google.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/b_icons/facebook.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/ascend.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/descend.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/right.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/rss.png"
  } else {
	  document.cookie = 'seyretdsplnf=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/;';
	  document.cookie = 'seyretplaylist=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/;';
	  document.cookie = 'seyretbrwsrl=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/;';
	  document.cookie = 'webfxtab_tabs=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/;';
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/style/seyret_style.css"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/style/seyret.tabs.css"
		l[t++]="http://dawgs.com/includes/js/tabs/tabpane.css"
		l[t++]="http://dawgs.com/includes/js/tabs/tabpane_mini.js"
		l[t++]="http://dawgs.com/components/com_seyret/mootools.js"
		l[t++]="http://dawgs.com/components/com_seyret/seyret.js"
		l[t++]="http://dawgs.com/components/com_seyret/ufo.js"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/tabact.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/tabpas.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/tabhov.png"
	
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/cattopleft.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/cattopmid.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/cattopright.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/catleft.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/catright.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/catbotleft.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/catbotmid.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/catbotright.png"
	
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/noavatar.jpg"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/starfull.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/star0.png"
	
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/english/allvideos.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/english/allvideos_2.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/english/featured.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/english/featured_2.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/english/home.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/english/home_2.png"
		
		// Unused tube that load anyway
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/english/addvideo.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/english/addvideo_2.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/english/uploadvideo.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/english/uploadvideo_2.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/english/myvideos.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/english/myvideos_2.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/english/reportedvideos.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/english/reportedvideos_2.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/english/pendingvideos.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/english/pendingvideos_2.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/english/help.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/english/help_2.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/english/batchconversion.png"
		l[t++]="http://dawgs.com/components/com_seyret/themes/default/images/english/batchconversion_2.png"
	}
	//Ticket page
	l[t++]="http://dawgs.com/images/ticket_network2.jpg"
	l[t++]="http://dawgs.com/images/stub_hub.gif"
	l[t++]="http://dawgs.com/images/sanford_seating_uga.jpg"
	// Maps
	l[t++]="http://dawgs.com/components/com_google_maps_insight/js/google_maps.js"
	l[t++]="http://dawgs.com/components/com_google_maps_insight/js/gicons.js"
	l[t++]="http://dawgs.com/components/com_google_maps_insight/css/google_maps_sidebar.css"
  // Wiki
  l[t++]="http://dawgs.com/images/2008_uga_helmet_s.jpg"
	l[t++]="http://dawgs.com/components/com_awiki/InsertWiki.css"
// start preloading
  for(var i=0; i<t; i++) {
		request.open('GET', l[i],false)
		request.send("");
	}

} 
