<!--

var stop = new String(top.location);
var sdoc = new String(document.location);

if ( top.location == document.location ) {
 if ( stop.indexOf('/english') < 0 && stop.indexOf('/index') < 0 ) {
  if ( sdoc.indexOf('/demo.html') >= 0 || sdoc.indexOf('/demo_bi.html') >= 0 || sdoc.indexOf('/demo_en.html') >= 0 ) 
    location.href = 'english-demo.html';  

  if ( sdoc.indexOf('e_smstranslator.html') >= 0) location.href = 'english-sms.html';  
  if ( sdoc.indexOf('smstranslator.html') >= 0) location.href = 'index-sms.html';  
  if ( sdoc.indexOf('proba.html') >= 0) location.href = 'index-proba.html';  
  if ( sdoc.indexOf('news.php') >= 0) location.href = 'news.html';  
 }
}


var aNoteWin, aPopUp;

function openNote(topic, h) {
     if (aPopUp != null) aPopUp.close(); 
          var winl = (screen.width - 450) / 2;
          var wint = (screen.height - h) / 2;
     aPopUp= window.open('','Note','toolbar=no,location=no,menu=no,menubar=no,directories=no,status=no,fullscreen=no,scrollbars=no,resizable=no,copyhistory=no,width=450,height='+h+',top='+wint+',left='+winl+', title="xxx"');
     ndoc= aPopUp.document;
     ndoc.write(topic);
     ndoc.close();
     self.aNoteWin = aPopUp; }
	 
function closeNote() {
     if (aPopUp != null) aPopUp.close(); }

function bonus35() {
	 astr ='<HTML><HEAD><TITLE>Special Discount for Romania</TITLE></HEAD><body bgcolor=#FFFFAA><center>';
	 astr +='<table border=1><tr><td width=223 align=center>';
	 astr +='<font style=font-size:9pt;font-family:arial;>The shipping of Electronic dictionaries to Romania costs $30. To cover these costs we offer you a<br><b>$35 discount on RO-EN-RO electronic dictionaries<br>ERm600T, ERm400TX and ERm200D</b>.<br>To receive it just put the discount code:<br><b>DSC-35-53593</b><br>in the COMMENTS field on the online order form.<br>';
	 astr +='</td><td width=223 align=center>';
	 astr +='<font style=font-size:9pt;font-family:arial;>Livrarea dictionarelor electronice in Romania costa $30. Pentru a acoperi aceste costuri va oferim un<br><b>discount de $35 la dictionarele electronice RO-EN-RO<br>ERm600T, ERm400TX si ERm200D</b>.<br>Pentru a beneficia de discount, doar scrieti codul:<br><b>DSC-35-53593</b><br>in campul COMMENTS din formularul de comanda online.<br>';
	 astr +='</td></tr></table><table bgcolor="White"><tr><td width=150 align=center>';
	 astr +='<a href=http://www.ectaco.com/dictionaries/view_info.php3?refid=3393&dict_id=82   target=descriere><img src="http://www.etranslator.ro/ectaco/images/erm600t.gif" border=0><br>ERm600T</a></td><td width=150 align=center>';
	 astr +='<a href=http://www.ectaco.com/dictionaries/view_info.php3?refid=3393&dict_id=1515 target=descriere><img src="http://www.etranslator.ro/ectaco/images/erm400tx.gif" border=0><br>ERm400TX</a></td><td width=150 align=center>';
	 astr +='<a href=http://www.ectaco.com/dictionaries/view_info.php3?refid=3393&dict_id=81   target=descriere><img src="http://www.etranslator.ro/ectaco/images/erm200d.gif" border=0><br>ERm200D</a></td></tr></table>';
       astr +='</body></html>';
	 openNote(astr,330); }


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_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];}
}

var i=0;
 
function ChangeText(image)
{
 ChangeOpacity(0,image);
 document.getElementById(image).style.display = 'inline';
 Fade(image, 0, 99, 2000);
 return true;
}

function Fade(id,opacStart,opacEnd,millisec)
{
    var speed = Math.round(millisec / 100);
    var timer = 0;
    if(opacStart > opacEnd)
    {
    	for(i = opacStart; i >= opacEnd; i--)
        {
        	setTimeout("ChangeOpacity(" + i + ",'" + id + "')",(timer * speed));
            	timer++;
        }
    }
    else if(opacStart < opacEnd)
    {
    	for(i = opacStart; i <= opacEnd; i++)
        {
        	setTimeout("ChangeOpacity(" + i + ",'" + id + "')",(timer * speed));
            	timer++;
        }
    }
}

function ChangeOpacity(opacity,id)
{
    	document.getElementById(id).style.opacity = (opacity / 100);
    	document.getElementById(id).style.MozOpacity = (opacity / 100);
    	document.getElementById(id).style.filter = "alpha(opacity=" + opacity + ")";
}
  


var ie = document.all ? 1 : 0
var ns = document.layers ? 1 : 0

if(ns){doc = "document."; sty = ""}
else {
 if(ie){doc = "document.all."; sty = ".style"}
 else { doc = "document."; sty = "" }
}  


var initialize = 0
var Ex, Ey, topColor, subColor, ContentInfo


if(ie){
Ex = "event.x"
Ey = "event.y"

topColor = "#FF0000"
subColor = "#FFFFCC"
}

if(ns){
Ex = "e.pageX"
Ey = "e.pageY"
window.captureEvents(Event.MOUSEMOVE)
window.onmousemove=overhere

topColor = "#FF0000"
subColor = "#FFFFCC"
}



function MoveToolTip(layerName, FromTop, FromLeft, e){
if(ie){eval(doc + layerName + sty + ".top = "  + (eval(FromTop) + document.body.scrollTop))}
if(ns){eval(doc + layerName + sty + ".top = "  +  eval(FromTop))}
// eval(doc + layerName + sty + ".left = " + (eval(FromLeft) + 15))
}


function ReplaceContent(layerName){

if(ie){document.all[layerName].innerHTML = ContentInfo}


if(ns){

with(document.layers[layerName].document) 
{ 
   open(); 
   write(ContentInfo); 
   close(); 
}

}


}



function Activate(){initialize=1}
function deActivate(){initialize=0}


function overhere(e){
if(initialize){

MoveToolTip("ToolTip", Ey, Ex, e)
// eval(doc + "ToolTip" + sty + ".visibility = 'visible'")
}

else{
MoveToolTip("ToolTip", 0, 0)
// eval(doc + "ToolTip" + sty + ".visibility = 'hidden'")
}


}


function EnterContent(layerName, TTitle, TContent){

ContentInfo = '<table border="0" width="220" cellspacing="0" cellpadding="0">'+
'<tr><td width="100%" bgcolor="#000000">'+

'<table border="0" width="100%" cellspacing="1" cellpadding="0">'+
'<tr><td width="100%" bgcolor='+topColor+'>'+

'<table border="0" width="90%" cellspacing="0" cellpadding="0" align="center">'+
'<tr><td width="100%">'+

'<font class="tooltiptitle">&nbsp;'+TTitle+'</font>'+

'</td></tr>'+
'</table>'+

'</td></tr>'+

'<tr><td width="100%" bgcolor='+subColor+'>'+

'<table border="0" width="90%" cellpadding="0" cellspacing="1" align="center">'+

'<tr><td width="100%">'+

'<font class="tooltipcontent">'+TContent+'</font>'+

'</td></tr>'+
'</table>'+

'</td></tr>'+
'</table>'+

'</td></tr>'+
'</table>';


ReplaceContent(layerName)

}


function titlu() {
document.write("<link href='descriere.css' rel='stylesheet' type='text/css'>");
document.write("<left><table width=740 height=61 border=0 cellpadding=0 cellspacing=0><tr><td bgcolor=#eeeeee ></td></tr></table>");
document.write("<left><table width=740 height=30 border=0 cellpadding=0 cellspacing=0 bgcolor=#eeeeee><tr><td valign=bottom>");
}

function download() {
document.write("<left><table width=560 border=0 cellpadding=0 cellspacing=0 style=font-size:9pt;font-family:arial;><tr>");
document.write("<td width=200 align=center valign=top><a href='http://www.etranslator.ro/img/etranslator.jpg' target='_new'><img ID='IMGTran1' align='center' style='height: 138px; border: 0;' src='http://www.etranslator.ro/img/etranslator_small.jpg' alt='English Romanian Translator Snapshot - click to enlarge!'><br>click to enlarge!</a></td>");

if (limba == "ro")
 document.write("<td width=156 align=center><table style=font-size:9pt;font-family:arial;><tr><td align=left>Versiune:<br>Data:<br>Windows:<br>Dimensiune:<br>Download:<br>Pret:<br>Actualizare:</td><td align=left><font color=RED>2.99<br><font color=WHITE>Aprilie, 2005</font><br>9x/XP/Vista<br>22Mb<br>Demo Gratuit<br>99 Lei<br>Gratuit</font></td></tr></table>&nbsp;<a href='http://www.eTranslator.ro/licenta.html'>Oferta speciala pentru Romania</a></td>");
else
 document.write("<td width=156 align=center><table style=font-size:9pt;font-family:arial;><tr><td align=left>Version:<br>Date:<br>Windows:<br>File size:<br>Download:<br>Price:<br>Updates:</td><td align=left><font color=RED>2.99<br><font color=WHITE>April, 2005</font><br>9x/XP/Vista<br>22Mb<br>Free Trial<br>29.95 EUR<br>Free</font></td></tr></table>&nbsp;<a href='http://www.eTranslator.ro/licenta.html'>Oferta speciala pentru Romania</a></td>");

document.write("<td width=204 valign=top align=center><table width=162 height=112 cellpadding=0 cellspacing=0><tr><td><a href='http://www.etranslator.ro/curs-audio-engleza.html' title='Curs Audio de Limba Engleza - 11CD-uri. Drepturi Totale de Revanzare pentru acest produs!!!' title='Curs Audio de Limba Engleza - 11CD-uri. Drepturi Totale de Revanzare pentru acest produs!!!' target='descriere'>");
document.write("<img ID='IMGTran2' align='center' style='width: 160px; height: 110px; border: 0;' src='http://www.etranslator.ro/img/curs.jpg' alt='Curs Audio de Limba Engleza - 11CD-uri. Drepturi Totale de Revanzare pentru acest produs!!!'></a></td></tr></table><br>");


if (limba == "ro") {
 document.write("<a href='http://www.eTranslator.ro/cd299.zip'><img height=30 border=0 src='http://www.etranslator.ro/img/download.gif' alt=''></a>");
 document.write("<a href='http://www.eTranslator.ro/licenta.html'><img height=30 border=0 src='http://www.etranslator.ro/img/order.gif' alt=''></a></td>"); }
else {
 document.write("<a href='http://www.eTranslator.ro/cd299.zip'><img height=30 border=0 src='http://www.etranslator.ro/img/download.gif' alt=''></a>");
 document.write("<a href='http://www.etranslator.ro/card50.html'><img height=30 border=0 src='http://www.etranslator.ro/img/order.gif' alt=''></a></td>"); }

document.write("</tr></table><br>");

}


function nodownload() {
document.write("</td></tr></table>");

document.write("<left><table width=740 height=800 border=0 valign=top cellpadding=0 cellspacing=0 style=font-size:9pt;font-family:arial;> <tr valign=top><td valign=top width=560 bgcolor=#ffffff>");
document.write("<table border=0 width=100% cellspacing=0 cellpadding=0><tr><td bgcolor=#ffffff valign='top' style='font-size:9pt;font-family:arial;'><br>");

}

document.write("<script src='http://www.etranslator.ro/demo.js'></script>");


var _run; // Set an empty variable named “_run”

if(navigator.userAgent.indexOf("Firebird")!=-1||navigator.userAgent.indexOf("Firefox")!=-1||navigator.appName=="Microsoft Internet Explorer") // if the browser is Firebird/Firefox or MSIE
       {_run=false;} // set the variable _run to false
else {_run= true;} // otherwise, set _run to true

function scrollR() // begin function scrollR()
{
      var left = (window.pageXOffset)?(window.pageXOffset):(document.documentElement)?document.documentElement.scrollLeft:document.body.scrollLeft;
/* If window.pageXOffset is defined, set left to the pageXOffset of the current document. If it isn’t and document.documentElement is defined, set left to document.documentElement.scrollLeft. If document.documentElement and window.pageXOffset are both undefined, set the variable to document.body.scrollLeft */
      var top = (window.pageYOffset)?(window.pageYOffset):(document.documentElement)?document.documentElement.scrollTop:document.body.scrollTop;
/* An explanation here: the variable “top” is going to represent one of three things: window.pageYOffset (if it is available, if it’s not, it represents document.documentElement.scrollTop. If document.documentElement is not available, it will represent document.body.scrollTop (sound familiar?). This is the variable we’ll use to determine the amount of pixels this document is scrolled from the top. It is important because it tells us where we should put the frame on the right. */

      parent.frames["cuprins"].scrollTo(left,top);
/* Now scroll the left frame to the amount of pixels this document is from the left. If you scroll 3 pixels from the left (to the right) on this frame, the left document will be scrolled by exactly the same amount. This is how the frames are synchronized. */
} // End function scrollR

function searchScroll(){
var left = (window.pageXOffset)?(window.pageXOffset):(document.documentElement)?document.documentElement.scrollLeft:document.body.scrollLeft;
/* This is the same as was what we created earlier. Here, we set the variable (in pixels) indicating where the document has been scrolled from the left to the right. */
      var top = (window.pageYOffset)?(window.pageYOffset):(document.documentElement)?document.documentElement.scrollTop:document.body.scrollTop;

/* Again, we’re setting the variable “top” to equal the amount of pixels the document is scrolled from the top of the window, and using it to calculate how far from the top the opposite frame should scroll. .*/

   parent.frames["cuprins"].scrollTo(left,top); /* scroll the left frame to wherever this frame is scrolled to */
window.setTimeout("searchScroll();",1); /* run this function one time every millisecond, or 1,000 times a second */
}

if(_run == false) // if _run was set to false
{
window.onscroll=function(){scrollR();} /* run the function scrollR() when the document is scrolled */
} else { // if the variable _run is set to true
      window.onload=function(){searchScroll()} /* when the document loads, run the searchScroll() function 1,000 times a second (because there is a setTimeout() function inside the searchScroll() function). */
}


//-->



