/***************************************************************************
 fade in div
/**************************************************************************/
function fadein(div) {
	
	new Effect.Appear(div);
	
}
/***************************************************************************
 fade out div
/**************************************************************************/
function fadeout(div) {
	
	var div  = document.getElementById(div);
	div.innerHTML = '';
	new Effect.Fade(div);
	
}
/***************************************************************************
 load flash
/**************************************************************************/
function load_flash() {
	
	var path = 'http://www.tcdevelopment.co.uk/wgtsc/public/';
	var swfObject = new SWFObject(path+swf, "golfer", "220", "160", "8");
	
	swfObject.addParam("wmode", "transparent");
	swfObject.write(myHolder);
	
}
/***************************************************************************
 load video
/**************************************************************************/
function load_video(video,width,height) {
	
	if(video=='') {
		return;
	}
	
	var div  = document.getElementById('media_holder');
	var html = '';

	html += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'" id="FLVPlayer">\n';
    html += '<param name="movie" value="FLVPlayer_Progressive.swf" />\n';
    html += '<param name="salign" value="lt" />\n';
	html += '<param name="bgcolor" value="#000000">';
    html += '<param name="quality" value="high" />\n';
    html += '<param name="scale" value="noscale" />\n';
    html += '<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName='+video+'&autoPlay=false&autoRewind=true" />\n';
    html +='<embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName='+video+'&autoPlay=true&autoRewind=true" quality="high" scale="noscale" width="'+width+'" height="'+height+'" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n';
    html += '</object>\n';
	
	div.innerHTML = html;
	fadein('media_holder');
	
}
/***************************************************************************
 load coverflow
/**************************************************************************/
function load_coverflow() {
	
	var div  = document.getElementById('media_holder');
	var html = '';
	
	html += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="500" height="220">';
    html += '<param name="movie" value="flash/coverflow/competitors.swf" />'
	html += '<param name="quality" value="high" />'
    html += '<embed src="flash/coverflow/competitors.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="220"></embed>';
	html += '</object>';
	
	div.innerHTML = html;
	
}