<!--
function findTextHiLite(txt2Find)
{	
	  var r,i,s=document.selection.createRange().text;
	  if(!s)s=txt2Find;//prompt('Find:','');
	  if(s){r=document.body.createTextRange();
	  for(i=0;r.findText(s);i++)
	  {
		r.execCommand('BackColor','','yellow');
		r.collapse(false)};
		//alert(i)  nb de returns
	  }
}

function swapImageWithFade(imageName,srcToFadeTo){

   if (document.all){
      imageName.style.filter="blendTrans(duration=0.5)"
     imageName.filters.blendTrans.Apply()      
   }
   imageName.src = srcToFadeTo
   if (document.all){
      imageName.filters.blendTrans.Play()
   }
}

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];}}
}

//window.open( "videoavecpub_cable.html", "video", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=780,height=382,screenX=0,screenY=10,top=10,left=0" );

function Popup( Url )
{
	window.open( Url, "orderdesk", "toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=750,height=470,screenX=0,screenY=10,top=10,left=0" );
}

function PopupVideo( clip )
{
	win=window.open( "/video/en/cours/"+clip , "video", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=780,height=382,screenX=0,screenY=10,top=10,left=0" );
}

function clipWindow(wichClip,size56,sizeCable)
{
	fenetre = window.open( "", "", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=200,height=200,screenX=150,screenY=150,top=150,left=150" );
	fenetre.document.writeln ("<html><head><title>Clip</title>");
	fenetre.document.writeln ("<style type=\"text/css\">");
	fenetre.document.writeln ("a:active {  color: #000000; text-decoration: none; font-weight: bold; font-size: 12px}");
	fenetre.document.writeln ("a:link {  color: #000000; text-decoration: none; font-weight: bold; font-size: 12px}");
	fenetre.document.writeln ("a:visited {  color: #000000; text-decoration: none; font-weight: bold; font-size: 12px}");
	fenetre.document.writeln ("a:hover {  color: #003366; text-decoration: none; font-weight: bold; font-size: 12px}");
	fenetre.document.writeln ("</style>");
	fenetre.document.writeln ("</head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0><BR><center><font face=Arial color=#003366 size=2><b>Select your connection</b></font></center>");
	fenetre.document.writeln("<BR><font face=verdana color=#808080 size=1><b>Watch the clip online</b></font>");
	fenetre.document.writeln ("<CENTER>");
	fenetre.document.write ("<a onclick=\"setTimeout('self.close()',400);return true;\" href=../clips/56k/EN/"+wichClip+".ram>56k(modem) </a> | ");
	fenetre.document.writeln ("<a onclick=\"setTimeout('self.close()',400);return true;\"  href=../clips/cable/EN/"+wichClip+".ram onclick=\"self.close()\">high speed</a></CENTER>");
	fenetre.document.writeln("<font face=verdana color=#808080 size=1><b>Download </b> </font>");
	fenetre.document.write   ("<CENTER><a href=ftp://real.decisionplus.com/56k/EN/"+wichClip+".rm>56k(modem) </a> | ");
	fenetre.document.writeln ("<a href=ftp://real.decisionplus.com/cable/EN/"+wichClip+".rm>high speed</a></CENTER>");
	fenetre.document.write   ("<CENTER><font face=verdana color=#808080 size=1>"+size56+"MB");
	fenetre.document.writeln ("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"+sizeCable+"MB</CENTER>");
	fenetre.document.writeln ("<BR><TABLE WIDTH=100% cellspacing=0 cellpadding=0><TR><TD bgcolor=#003366><img src=clearpixel.gif height=1></TD></TR><TR><TD valign=top align=right><a target=new href=/index_en.html><img vspace=0 src=/boutique/images/decisionplusanimgif.gif border=0><a></TD></TR></TABLE>");
	fenetre.document.writeln ("</body></html>");

}


// To find and HighLight Text in page
var TRange=null
function findString (str) {
 if (parseInt(navigator.appVersion)<4) return;
 var strFound;
 if (navigator.appName=="Netscape") {

  // NAVIGATOR-SPECIFIC CODE

  strFound=self.find(str);
  if (!strFound) {
   strFound=self.find(str,0,1)
   while (self.find(str,0,1)) continue
  }
 }
 if (navigator.appName.indexOf("Microsoft")!=-1) {

  // EXPLORER-SPECIFIC CODE

  if (TRange!=null) {
   TRange.collapse(false)
   strFound=TRange.findText(str)
   if (strFound) TRange.select()
  }
  if (TRange==null || strFound==0) {
   TRange=self.document.body.createTextRange()
   strFound=TRange.findText(str)
   if (strFound) TRange.select()
  }
 }
 //if (!strFound) alert ("String '"+str+"' not found!")
}


//-->
