/*window.onload = function () {
	var placeholders = document.getElementById('div');
	alert(placeholders.length);
	for(var i = placeholders.length-1; i >= 0; i--) {
		var o = new Array();
		if(placeholders[i].title && placeholders[i].substr(0,5) == 'video') {
			o[i] = new SWFObject('http://www.yallcome.org/flash/mediaplayer/','mpl','260','200','8');
			o[i].addParam('allowscriptaccess','always');
			o[i].addParam('allowfullscreen','true');
			o[i].addVariable('height','200');
			o[i].addVariable('width','260');
			o[i].addVariable('file','http://www.yallcome.org/flv/'+placeholders[i].substr(6));
			o[i].addVariable('usefullscreen','false');
			o[i].write(placeholders[i].id);
		}
	}
}
*/
function new_freecap()
{
	// loads new freeCap image
	if(document.getElementById)
	{
		// extract image name from image source (i.e. cut off ?randomness)
		thesrc = document.getElementById("freecap").src;
		thesrc = thesrc.substring(0,thesrc.lastIndexOf("/")+4);
		// add ?(random) to prevent browser/isp caching
		document.getElementById("freecap").src = thesrc+"?"+Math.round(Math.random()*100000);
	} else {
		alert("Sorry, cannot autoreload freeCap image\nSubmit the form and a new freeCap will be loaded");
	}
}