/******************************************************************************
* Code by david genelid | david@spenat.se | www.spenat.se
* mod by carl bock
*/
/******************************************************************************
*
*/
function getFlashWithParams(url, width, height, params) {
		 var strParams = "";
		 var strFlash = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="' + width + '" height="' + height + '"><param name="movie" value="' + url + '"><param name="quality" value="high">';
		 if (params != undefined) {
		 		 params = params.split(",");
		 		 for (var i = 0; i < params.length; i++) {
		 		 		 var nameValue = params[i].split("=");
		 		 		 strFlash += '<param name="' + nameValue[0] + '" value="' + nameValue[1] + '"/>';
		 		 		 strParams += ' ' + nameValue[0] + '="' + nameValue[1] +'"';
		 		 }
		 }
		 strFlash += '<embed src="' + url + '" width="' + width + '" height="' + height + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"' + strParams + '></embed></object>';
		 return strFlash;
}
/******************************************************************************
*
*/
function getFlash(url, width, height, bgcolor, wmode) {
		 var params = "bgcolor=" + bgcolor;
		 params += ",wmode=" + wmode;
		 
		 return getFlashWithParams(url, width, height, params);
		 
		 /*
		 var strFlash = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="' + width + '" height="' + height + '">'
		 		 		 		  + '<param name="movie" value="' + url + '">'
		 		 		 		  + '<param name="quality" value="high"><param name="BGCOLOR" value="' + bgcolor + '">'
		 		 		 		  + '<param name="wmode" value="' + wmode + '"/>'
		 		 		 		  + '<embed src="' + url + '" width="' + width + '" height="' + height + '" quality="high" wmode="' + wmode + '" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="' + bgcolor + '"></embed></object>';
		 return strFlash;
		 */
}
/******************************************************************************
*
*/
function gotVersion(version) {
		 return (actualVersion >= version) ? true : false;		 
}
/******************************************************************************
*
*/
function getImg(url, width, height, alt, linkUrl, target, marginRight) {
		 var strImgTable = "";
		 		 		 		 if (linkUrl.length > 4) {
		 		 		 		 		 strImgTable += '<a href="' + linkUrl + '" target="' + target + '">';
		 		 		 		 		 strImgTable += '<img src="' + url + '" width="' + width + '" height="' + height + '" alt="' + alt + '" border="0" style="margin-right:"' + marginRight + '"px;"/>';
		 		 		 		 		 strImgTable += '</a>';
		 		 		 		 } else {
		 		 		 		 		 strImgTable += '<img src="' + url + '" width="' + width + '" height="' + height + '" alt="' + alt + '" border="0" style="margin-right:"' + marginRight + '"px;"/>';
		 		 		 		 }
		 		 		 		 
		 return strImgTable;
}
