function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=550,height=400,scrollbars=no');
return false;
}

function targetopener(mylink, closeme, closeonly)
{
if (! (window.focus && window.opener))return true;
if (! closeonly)window.opener.location.href=mylink.href;
if (closeme)window.close();
return false;
}

function addBookmark() {
var bookmarkurl="index.html"
var bookmarktitle="POWERbreathe competition - WIN a free POWERbreathe"
 if (window.external)
    external.AddFavorite(bookmarkurl,bookmarktitle)
  else
    alert("Your browser doesn't support this feature.");
}

function openpopup(){
var popurl="flash.html"
winpops=window.open(popurl,"","width=550,height=400,")
winpops.moveTo(screen.width/2-225,screen.height/2-200)
}

function competition(){
var popurl="competition/enter.html"
self.focus();
winpops=window.open(popurl,"","width=550,height=400,")
winpops.moveTo(screen.width/2-225,screen.height/2-200)
}

function afficher()
{
var win2= window.open("flash.html","descri",'resizable=no,height=400,width=550,screenX=50,screenY=50');
}

function openWin(url, winname, status){
	var x = window.open("", "info4my")
	x.close();
	window.open(url, "info4my", status);
	}	


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_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_findObj(n, d) { //v4.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);
  if(!x && document.getElementById) x=document.getElementById(n); 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_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

function openwin( page1) {
window.self.name="aa";		// name for main window to able the back links to polar site
options =
  "height=500,width=670,resizable=no,"
+ "screenX=50,screenY=50,"		// netscape
+ "left=50, top=50,"			// IE
+ "location=no,scrollbars=no,menubar=no,"
+ "toolbar=no,titlebar=no,personalbar=no,"
+ "personalbar=no,directories=no,"
+ "fullscreen=no"; 		// IE only
  gwin=window.open("", "glossary", options);
  gwin.document.write('<html><head><title>POWERbreathe</title>');
  gwin.document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>');
  gwin.document.write('<frameset rows="*,19" border="0" framespacing="0" frameborder="NO" onLoad="self.focus();">');
  gwin.document.write('<frame src="#');
  gwin.document.write(page1);
  gwin.document.write('" name="page1" marginwidth="0" marginheight="0" scrolling="yes" frameborder="NO" noresize>');
  gwin.document.write('<frame src="pr/close.html');
  gwin.document.write('" name="page2" marginwidth="0" marginheight="0" scrolling="no" frameborder="NO" noresize>');
  gwin.document.write('</frameset><noframes><body bgcolor="#FFFFFF" text="#000000"></body></noframes></html>');
  gwin.focus();
  gwin.document.close();
}

function aff_disc()
{
var win2= window.open("../../disclaimer.html","descri",'resizable=no,height=310,width=410,screenX=50,screenY=50');
}

function posterwin(poster)
{
window.focus();
window.self.name="po";		// name for main window to able the back links to polar site
options =
  "height=520,width=240,resizable=no,"
+ "screenX=50,screenY=50,"		// netscape
+ "left=50, top=50,"			// IE
+ "location=no,scrollbars=no,menubar=no,"
+ "toolbar=no,titlebar=no,personalbar=no,"
+ "personalbar=no,directories=no,"
+ "fullscreen=no"; 		// IE only
  gwin=window.open("", "", options);
  gwin.document.write('<html><head><title>POWERbreathe POSTER</title>');
  gwin.document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>');
  gwin.document.write('<body bgcolor="#FFFFCC"><table><tr><td onclick="window.close();"><img src="#');
  gwin.document.write(poster);
  gwin.document.write('"</td></tr></table>');
  gwin.document.write('</body></html>');
  gwin.focus();
  gwin.document.close();  
}


<!--<script language="JavaScript">
<!--
function MM_checkBrowser(NSvers,NSpass,NSnoPass,IEvers,IEpass,IEnoPass,OBpass,URL,altURL) { //v4.0
  var newURL='', verStr=navigator.appVersion, app=navigator.appName, version = parseFloat(verStr);
  if (app.indexOf('Netscape') != -1) {
    if (version >= NSvers) {if (NSpass>0) newURL=(NSpass==1)?URL:altURL;}
    else {if (NSnoPass>0) newURL=(NSnoPass==1)?URL:altURL;}
  } else if (app.indexOf('Microsoft') != -1) {
    if (version >= IEvers || verStr.indexOf(IEvers) != -1)
     {if (IEpass>0) newURL=(IEpass==1)?URL:altURL;}
    else {if (IEnoPass>0) newURL=(IEnoPass==1)?URL:altURL;}
  } else if (OBpass>0) newURL=(OBpass==1)?URL:altURL;
  if (newURL) { window.location=unescape(newURL); document.MM_returnValue=false; }
}

<!--function aff_disc()
<!--{
<!--var win2= window.open("disclaimer.html","descri",'resizable=no,height=310,width=410,screenX=50,screenY=50');
<!--}

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) { //v4.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);
  if(!x && document.getElementById) x=document.getElementById(n); 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_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}
//-->
