function init()
{
	if(window.alphaPNG) alphaPNG() ; 
}

/* short generic onload by Brothercake */
if(typeof window.addEventListener != 'undefined') {
	window.addEventListener('load', init, false);
} else if(typeof document.addEventListener != 'undefined') {
	document.addEventListener('load', init, false);
} else if(typeof window.attachEvent != 'undefined') {
	window.attachEvent('onload', init);
}



/*
* FLASH ITEMS 
**********************************************************************************************************************/
function flashbanner (id)
{
	if (DetectFlashVer (7, 0, 0))
	{
		var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
		+ 'width="300" height="298"'
		+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<param name="movie" value="swf/banner.swf?id='+id+'" />'
		+ '<param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />'
		+ '<param name="wmode" value="transparent" />'
		+ '<embed src="swf/banner.swf?id='+id+'" quality="high" bgcolor="#ffffff" '
		+ 'width="300" height="298" name="" align="middle"'
		+ 'play="true"'
		+ 'loop="true"'
		+ 'wmode="transparent"'
		+ 'quality="high"'
		+ 'allowScriptAccess="sameDomain"'	
		+ 'type="application/x-shockwave-flash"'
		+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
		+ '<\/embed>'
		+ '<\/object>';
		document.write(oeTags);
	} else { 
		var alternateContent = '<img src="pix/x.gif" alt="" width="300" height="298" />';
		document.write(alternateContent);
	}
}

function flashplayer (url, w, h)
{
	if (DetectFlashVer (8, 0, 0))
	{
		var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
		+ 'width="'+w+'" height="'+h+'"'
		+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<param name="movie" value="swf/video.swf?'+url+'" />'
		+ '<param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />'
		+ '<param name="wmode" value="transparent" />'
		+ '<embed src="swf/video.swf?'+url+'" quality="high" bgcolor="#ffffff" '
		+ 'width="'+w+'" height="'+h+'" name="" align="middle"'
		+ 'play="true"'
		+ 'loop="true"'
		+ 'wmode="transparent"'
		+ 'quality="high"'
		+ 'allowScriptAccess="sameDomain"'	
		+ 'type="application/x-shockwave-flash"'
		+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
		+ '<\/embed>'
		+ '<\/object>';
		document.write(oeTags);
	} else { 
		var alternateContent = '<img src="pix/x.gif" alt="" width="'+w+'" height="'+h+'" />';
		document.write(alternateContent);
	}
}

function flashplayer2 (url, w, h)
{
	if (DetectFlashVer (8, 0, 0))
	{
		var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
		+ 'width="'+w+'" height="'+h+'"'
		+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<param name="movie" value="swf/video2.swf?'+url+'" />'
		+ '<param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />'
		+ '<param name="wmode" value="transparent" />'
		+ '<embed src="swf/video2.swf?'+url+'" quality="high" bgcolor="#ffffff" '
		+ 'width="'+w+'" height="'+h+'" name="" align="middle"'
		+ 'play="true"'
		+ 'loop="true"'
		+ 'wmode="transparent"'
		+ 'quality="high"'
		+ 'allowScriptAccess="sameDomain"'	
		+ 'type="application/x-shockwave-flash"'
		+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
		+ '<\/embed>'
		+ '<\/object>';
		document.write(oeTags);
	} else { 
		var alternateContent = '<img src="pix/x.gif" alt="" width="'+w+'" height="'+h+'" />';
		document.write(alternateContent);
	}
}

