function goProduct(id)
{
  	popupcentre('products_item.php?lang=en&id='+id, '_blank', '500', '490', 'no'); return false;
}
x=0;
									function popupcentre(adresse, nomFenetre, largeur, hauteur, scroll) 
									  {
									  
									  
									  if(x==0)
									  {
												  
												  
												  var largeurEcran = (screen.width - largeur) / 2;
												  var hauteurEcran = (screen.height - hauteur) / 2;
												  window.open(adresse, nomFenetre, 'height=' + hauteur + ', width=' + largeur + ', top=' + hauteurEcran + ', left=' + largeurEcran + ', scrollbars=' + scroll + ', resizable=no,statusbar=no')
												  }
									  	  
									  }
									  
function printid(pageid) {
  	popupcentre(pageid, '_blank', '615', '700', 'yes'); return false;
}

function selectProduct(a,b) {
	if( document.getElementById(a).checked == true && document.getElementById(a).checked == true ) {
		document.getElementById(a).checked = false;
		document.getElementById(b).checked = false;	
	} else {
		document.getElementById(a).checked = true;
		document.getElementById(b).checked = true;			
	}
}

function launch(id) {
	so.write(id)
}

function textChange(id) {
	switch(id)
	{
		case 1 : document.location="{lien1}&lang={lang}"; break;
		case 2 : document.location="{lien2}&lang={lang}"; break;
	}
}

function setCook(nom,valeur) {
    document.cookie = nom + "=" + escape(valeur)
}

function checkedConditions() {
	document.getElementById('disclaimer').style.visibility='hidden';
	document.getElementById('screen').style.visibility='hidden';	
	setCook("conditions", "1");
	animate();
}

function verif()
{										
	  if((document.FormName.disclaimer.checked!=true)) {
	 	alert("You have to accept our terms and conditions, thank you."); return false;
	  									   
	  }
}


    var pausePosition = 1;
    var pauseLength   = 5;

    function getUpdate(typ, pr1, pr2, pid)
    {
      alert('test??');
      if((pid != null) && (pid == 'mpls'))
      {
        // code to pause at pausePosition seconds before the end of the video for pauseLength seconds to view the credits
        if(typ == 'time')
        {
        	alert('timed');
          // check to see if we have reached the pause point yet
          if(pr2 < pausePosition)
          {
            thisMovie('mpls').sendEvent('playpause');
            // go to the next item after pauseLength seconds
            // setTimeout("thisMovie('mpl').sendEvent('next')", (pauseLength * 1000));
          }
        }
      }
    };

    function thisMovie(movieName)
    {
      if(navigator.appName.indexOf('Microsoft') != -1)
      {
        return window[movieName];
      }
      else
      {
        return document[movieName];
      }
    };