function loadFlash(file,width,height,wmode) {
document.write('<div class="flash"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="'+width+'" height="'+height+'"><param name="movie" value="flash/'+file+'.swf" /><param name="quality" value="high" /><param name="AllowScriptAccess" value="always" /><param name="wmode" value="'+wmode+'" /><embed src="flash/'+file+'.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" AllowScriptAccess="always" wmode="'+wmode+'" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed></object></div>');
}

function loadFlash1(file,width,height,wmode) {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="'+width+'" height="'+height+'"><param name="movie" value="flash/'+file+'.swf" /><param name="quality" value="high" /><param name="AllowScriptAccess" value="always" /><param name="wmode" value="'+wmode+'" /><embed src="flash/'+file+'.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" AllowScriptAccess="always" wmode="'+wmode+'" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed></object>');
}
function loadVid(file,vid,width,height) {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="'+width+'" height="'+height+'"><param name="movie" value="flash/'+file+'.swf" /><param name="quality" value="high" /><param name="flashvars" value="file='+vid+'.flv" /><param name="wmode" value="opaque" /><embed src="flash/'+file+'.swf" quality="high" flashvars="file='+vid+'.flv" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" wmode="opaque" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed></object>');
}

function lang(){
document.write('<div id="lang">');

if (location.href.indexOf("http://www.xenture.no/") != -1){document.write('<a href="javascript:void(0);" title="Norsk" class="no selected">.</a>');}
else {document.write('<a href="http://www.xenture.no/" title="Norsk" class="no">.</a>');}
if (location.href.indexOf("http://www.xenture.org/") != -1){document.write('<a href="javascript:void(0);" title="English" class="eng selected">.</a>');}
else {document.write('<a href="http://www.xenture.org/" title="English" class="eng">.</a>');}
if (location.href.indexOf("http://www.xenture.de/") != -1){document.write('<a href="javascript:void(0);" title="Deutsch" class="ger selected">.</a>');}
else {document.write('<a href="http://www.xenture.de/" title="Deutsch" class="ger">.</a>');}
if (location.href.indexOf("http://www.xenture.es/") != -1){document.write('<a href="javascript:void(0);" title="Espa&ntilde;ol" class="es selected">.</a>');}
else {document.write('<a href="http://www.xenture.es/" title="Espa&ntilde;ol" class="es">.</a>');}

//<a href="javascript:void(0);" title="Norsk" class="no">.</a>
//<a href="javascript:void(0);" title="English" class="eng">.</a>
//<a href="javascript:void(0);" title="Deutsch" class="ger">.</a>

document.write('<span style="display:none;"><img src="images/lang_no.gif" /><img src="images/lang_eng.gif" /><img src="images/lang_ger.gif" /><img src="images/lang_es.gif" /><img src="images/lang_no_d.gif" /><img src="images/lang_eng_d.gif" /><img src="images/lang_ger_d.gif" /><img src="images/lang_es_d.gif" /></span></div>');
	
}