// Copyright Marc Pelissier www.wild-images.com
function LoadWIFlashFile(movieFile,movieName,stageWidth,stageHeight,execPath,addParam)
{document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ');document.write('        codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"');document.write('        width="'+stageWidth+'" height="'+stageHeight+'" id="flashapp" align="middle">');document.write('<param name="movie" value="'+movieFile+'" />');if(addParam!="")
{document.write('<param name="FlashVars" value="'+addParam+'" />');}
document.write('<param name="menu"              value="false"            />');document.write('<param name="quality"           value="best"             />');document.write('<param name="allowScriptAccess" value="sameDomain"       />');document.write('<param name="scale"             value="noScale"          />');document.write('<param name="bgcolor"           value="#000000"          />');document.write('<param name="base"              value="'+execPath+'" />');document.write('<embed src="'+movieFile+'" ');if(addParam!="")
{document.write('FlashVars="'+addParam+'" ');}
document.write(' menu="false" quality="best" allowScriptAccess="sameDomain" scale="noScale" bgcolor="#000000" ');document.write(' width="'+stageWidth+'" height="'+stageHeight+'" name="'+movieName+'" ');document.write(' align="middle" type="application/x-shockwave-flash" base="'+execPath+'" ');document.write(' pluginspage="http://www.macromedia.com/go/getflashplayer" />');document.write('</object>');}
function LoadWIGallery(galleryUrl,type,res,execPath,forcedLang,gotoImage,confFile)
{var urlswf,galType,addparamS;var stageW,stageH;if(type!="H"&&type!="V")type="H";if(res!="NR"&&res!="HR"&&res!="AUTO")res="HR";if(execPath=="")execPath="./";if(res=="AUTO")
{if(screen.width>=1100&&screen.height>=900)res="HR";else res="NR";if(confFile=="")confFile="Gallery.xml";confFile=res+confFile;}
urlswf=galleryUrl+"/"+"Generic_v1_13B_"+type+"_"+res+".swf";galType=type+res;switch(galType)
{case"VNR":stageW="450";stageH="600";break;case"VHR":stageW="576";stageH="768";break;case"HNR":stageW="800";stageH="600";break;case"HHR":stageW="1024";stageH="768";break;default:stageW="1024";stageH="768";break;}
addParam="";if(confFile!="")addParam="xmlFile="+confFile;if(forcedLang!="")
{if(addParam!="")addParam=addParam+"&"
addParam=addParam+"globalLanguage="+forcedLang;}
if(gotoImage!="")
{if(addParam!="")addParam=addParam+"&"
addParam=addParam+"gotoImage="+gotoImage;}
LoadWIFlashFile(urlswf,"Gallery",stageW,stageH,execPath,addParam);}
function LoadWIEnter()
{LoadWIFlashFile("Enter_v1_01.swf","Enter","1000","580",".","");}
