var leoURL=''
//leoURL='S:/FLOmotions/site'
//leoURL='G:/FLOmotions/site'

function openArchive()
{
var w=screen.width/2;
var h=screen.height/2;
var w1=w-250;
var h1=h-200;
lAttributes = '';
lAttributes += 'toolbar=0,';
lAttributes += 'Location=0,';
lAttributes += 'directory=0,';
lAttributes += 'status=0,';
lAttributes += 'menubar=0,';
lAttributes += 'scrollbars=1,';
lAttributes += 'resizable=0,';
lAttributes += 'top='+h1+',';
lAttributes += 'left='+w1+',';
lAttributes += 'width=510,';
lAttributes += 'height=430';
archiveURL=leoURL+'http://www.flomotions.com/common/archive.html';
winId = window.open(archiveURL,"_leopopup",lAttributes);
winId.window.resizeTo(510,430);
}

function openContact()
{
var w=screen.width/2;
var h=screen.height/2;
var w1=w-250;
var h1=h-200;
lAttributes = '';
lAttributes += 'toolbar=0,';
lAttributes += 'Location=0,';
lAttributes += 'directory=0,';
lAttributes += 'status=0,';
lAttributes += 'menubar=0,';
lAttributes += 'scrollbars=0,';
lAttributes += 'resizable=0,';
lAttributes += 'top='+h1+',';
lAttributes += 'left='+w1+',';
lAttributes += 'width=510,';
lAttributes += 'height=430';
contactURL=leoURL+'http://www.flomotions.com/common/contact.html';
winId = window.open(contactURL,"_leopopup",lAttributes);
winId.window.resizeTo(510,450);
}

function openSubscribe()
{
var w=screen.width/2;
var h=screen.height/2;
var w1=w-250;
var h1=h-200;
lAttributes = '';
lAttributes += 'toolbar=0,';
lAttributes += 'Location=0,';
lAttributes += 'directory=0,';
lAttributes += 'status=0,';
lAttributes += 'menubar=0,';
lAttributes += 'scrollbars=0,';
lAttributes += 'resizable=0,';
lAttributes += 'top='+h1+',';
lAttributes += 'left='+w1+',';
lAttributes += 'width=510,';
lAttributes += 'height=430';
subscribeURL=leoURL+'http://www.flomotions.com/common/subscribe.html';
winId = window.open(subscribeURL,"_leopopup",lAttributes);
winId.window.resizeTo(510,450);
}

function openCompetition(URLcomp)
{
var w=screen.width/2;
var h=screen.height/2;
var w1=w-250;
var h1=h-250;
lAttributes = '';
lAttributes += 'toolbar=0,';
lAttributes += 'Location=0,';
lAttributes += 'directory=0,';
lAttributes += 'status=0,';
lAttributes += 'menubar=0,';
lAttributes += 'scrollbars=1,';
lAttributes += 'resizable=0,';
lAttributes += 'top='+h1+',';
lAttributes += 'left='+w1+',';
lAttributes += 'width=510,';
lAttributes += 'height=500';
Dirty_Pretty_ThingsURL=leoURL+'/'+URLcomp;
winId = window.open(Dirty_Pretty_ThingsURL,"_leopopup",lAttributes);
winId.window.resizeTo(510,500);
}

function openDPT()
{
var w=screen.width/2;
var h=screen.height/2;
var w1=w-250;
var h1=h-250;
lAttributes = '';
lAttributes += 'toolbar=0,';
lAttributes += 'Location=0,';
lAttributes += 'directory=0,';
lAttributes += 'status=0,';
lAttributes += 'menubar=0,';
lAttributes += 'scrollbars=1,';
lAttributes += 'resizable=0,';
lAttributes += 'top='+h1+',';
lAttributes += 'left='+w1+',';
lAttributes += 'width=510,';
lAttributes += 'height=500';
Dirty_Pretty_ThingsURL=leoURL+'http://www.flomotions.com/0609/Dirty_Pretty_Things/Dirty_Pretty_Things.html';
winId = window.open(Dirty_Pretty_ThingsURL,"_leopopup",lAttributes);
winId.window.resizeTo(510,500);
}

function openRaconteurs()
{
var w=screen.width/2;
var h=screen.height/2;
var w1=w-250;
var h1=h-200;
lAttributes = '';
lAttributes += 'toolbar=0,';
lAttributes += 'Location=0,';
lAttributes += 'directory=0,';
lAttributes += 'status=0,';
lAttributes += 'menubar=0,';
lAttributes += 'scrollbars=0,';
lAttributes += 'resizable=0,';
lAttributes += 'top='+h1+',';
lAttributes += 'left='+w1+',';
lAttributes += 'width=510,';
lAttributes += 'height=550';
RaconteursURL=leoURL+'http://www.flomotions.com/0605/The_Raconteurs/The_Raconteurs.html';
winId = window.open(RaconteursURL,"_leopopup",lAttributes);
winId.window.resizeTo(510,570);
}

function openVideo(URLVideo)
{
var w=screen.width/2;
var h=screen.height/2;
var w1=w-250;
var h1=h-250;
lAttributes = '';
lAttributes += 'toolbar=0,';
lAttributes += 'Location=0,';
lAttributes += 'directory=0,';
lAttributes += 'status=0,';
lAttributes += 'menubar=0,';
lAttributes += 'scrollbars=1,';
lAttributes += 'resizable=0,';
lAttributes += 'top='+h1+',';
lAttributes += 'left='+w1+',';
lAttributes += 'width=510,';
lAttributes += 'height=500';
URLVideo=leoURL+'/'+URLVideo;
winId = window.open(URLVideo,"_leopopup",lAttributes);
winId.window.resizeTo(510,500);
}

function openFE()
{
var w=screen.width/2;
var h=screen.height/2;
var w1=w-250;
var h1=h-200;
lAttributes = '';
lAttributes += 'toolbar=0,';
lAttributes += 'Location=0,';
lAttributes += 'directory=0,';
lAttributes += 'status=0,';
lAttributes += 'menubar=0,';
lAttributes += 'scrollbars=1,';
lAttributes += 'resizable=0,';
lAttributes += 'top='+h1+',';
lAttributes += 'left='+w1+',';
lAttributes += 'width=520,';
lAttributes += 'height=550';
FE_URL=leoURL+'http://www.flomotions.com/foreign_exchange/form.html';
winId = window.open(FE_URL,"_leopopup",lAttributes);
winId.window.resizeTo(520,570);
}

// JavaScript Document
function displayFlash(swf, hauteur, largeur)
{
	document.write('<object type="application/x-shockwave-flash" data="'+swf+'" width="'+hauteur+'" height="'+largeur+'">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="'+swf+'" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<embed src="'+swf+'" quality="high" wmode="transparent" width="'+hauteur+'" height="'+largeur+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}

function LeoPlayer(track)
{
	LP_swf=leoURL+'/flash/leoplayer.swf';
	LP_track=leoURL+'/'+track;
	document.write('<object type="application/x-shockwave-flash" data="'+LP_swf+'" width="115" height="16">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="'+LP_swf+'" />');
	document.write('<param name="quality" value="high" />');
    document.write('<param name="flashvars" value="son='+LP_track+'" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<embed src="'+LP_swf+'" quality="high" wmode="transparent" flashvars="son='+LP_track+'" width="115" height="16" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}


function LeoPlayerW(track)
{
	LP_swf=leoURL+'/flash/leoplayer_white.swf';
	LP_track=leoURL+'/'+track;
	document.write('<object type="application/x-shockwave-flash" data="'+LP_swf+'" width="115" height="16" align="left">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="'+LP_swf+'" />');
	document.write('<param name="quality" value="high" />');
    document.write('<param name="flashvars" value="son='+LP_track+'" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<embed src="'+LP_swf+'" quality="high" wmode="transparent" flashvars="son='+LP_track+'" width="115" height="16" align="left" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}


function LeoVPlayer(track)
{
	LP_swf=leoURL+'/flash/leovplayer.swf';
	LP_track=leoURL+'/'+track;
	document.write('<object type="application/x-shockwave-flash" data="'+LP_swf+'" width="320" height="260" align="left">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="'+LP_swf+'" />');
	document.write('<param name="quality" value="high" />');
    document.write('<param name="flashvars" value="monflv='+LP_track+'" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<embed src="'+LP_swf+'" quality="high" wmode="transparent" flashvars="monflv='+LP_track+'" width="320" height="260" align="left" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}


function openPic(URL, wPic, hPic)
{
var w=screen.width/2;
var h=screen.height/2;
wPic += 10;
hPic += 55;
var w1=w-(wPic/2);
var h1=h-(hPic/2);
lAttributes = '';
lAttributes += 'toolbar=0,';
lAttributes += 'Location=0,';
lAttributes += 'directory=0,';
lAttributes += 'status=0,';
lAttributes += 'menubar=0,';
lAttributes += 'scrollbars=0,';
lAttributes += 'resizable=0,';
lAttributes += 'top='+h1+',';
lAttributes += 'left='+w1+',';
lAttributes += 'width='+wPic+',';
lAttributes += 'height='+hPic+',';
lAttributes += 'leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"';
var lURL = leoURL + URL;
winId = window.open(lURL,"_leopopup",lAttributes);
winId.window.focus();
winId.window.resizeTo(wPic,hPic);
}

function redir(url) {
	document.location = url;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

