﻿// Fichier JScript
function insertFlash( strSrc, intWidth, intHeight, strAlt, strID )
{
    var strFlash = '<object id="'+strID+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"';
    strFlash += 'width="' + intWidth + '" height="' + intHeight + '" title="' + strAlt + '">';
    strFlash += '<param name="movie" value="' + strSrc + '" />';
    strFlash += '<param name="quality" value="high" />';
    strFlash += '<param name="menu" value="false" />';
    strFlash += '<embed src="' + strSrc + '" width="' + intWidth + '" height="' + intHeight + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false"></embed>';
    strFlash += '</object>';
    document.write( strFlash );
    document.close( ); 
}
function insertFlashTransparent( strSrc, intWidth, intHeight, strAlt, strID )
{
    var strFlash = '<object id="'+strID+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"';
    strFlash += 'width="' + intWidth + '" height="' + intHeight + '" title="' + strAlt + '">';
    strFlash += '<param name="movie" value="' + strSrc + '" />';
    strFlash += '<param name="quality" value="high" />';
    strFlash += '<param name="wmode" value="transparent" />';
    strFlash += '<embed src="' + strSrc + '" width="' + intWidth + '" height="' + intHeight + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false"></embed>';
    strFlash += '</object>';
    document.write( strFlash );
    document.close( ); 
}

function insertFlashCarto(strSrc, intWidth, intHeight,strID,strFlashVar)
{
    var strFlash = '<object	classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"';
	strFlash += 'id="'+strID+'" width="'+intWidth+'" height="'+intHeight+'" align="middle" VIEWASTEXT>';
	strFlash +='<param name="allowScriptAccess" value="sameDomain" />';
	strFlash +='<param name="movie" value="'+strSrc+'" />';
	strFlash +='<param name="quality" value="high" />';
	strFlash +='<param name="bgcolor" value="#ffffff" />';
	strFlash +='<param name="flashVars" value="'+strFlashVar+'" />';
	strFlash +='<embed src="'+strSrc+'" quality="high" bgcolor="#ffffff" width="'+intWidth+'" height="'+intHeight+'" swLiveConnect=true id="'+strID+'" name="'+strID+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashVars="'+strFlashVar+'" /></object>';
	document.write( strFlash );
    document.close( ); 
}

function insertDivPopup(strLang)
{
    var strFlash = '<div id="PopupDiapo" style="display:none; position:absolute; z-index:800">';
    strFlash += '<table border="0" align="center" cellpadding="0" cellspacing="0"><tr><td><img src="/img/'+strLang+'/selection/fermer.gif" width="111" height="18" border="0" style="cursor:pointer" onclick="PopupDiapoClose();"></td></tr>';
    strFlash += '<tr>';
    strFlash += '<td background="/img/'+strLang+'/selection/fond02.gif"><table width="100%" border="0" cellspacing="0" cellpadding="5">';
    strFlash += '<tr><td><table width="100%" border="0" cellspacing="0" cellpadding="2"><tr>';
    strFlash += '<td bgcolor="#FFFFFF"><span style="cursor:pointer" onclick="PopupDiapoClose();" id="TdViewDiapo"><img  id="ImgViewPopup"  alt="Photo" border="0"></span></td>';
    strFlash += '</tr></table></td></tr></table></td></tr></table></div>';
    document.write( strFlash );
    document.close( ); 
}
