// JavaScript Document
function aviso_legal(idioma){
if (idioma == 'cast')	{
var nota_legal = '<table width="420" height="180" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr><td valign="middle">&nbsp;</td><td valign="middle">&nbsp;</td><td valign="middle">&nbsp;</td></tr><tr><td width="20" valign="middle">&nbsp;</td><td width="380" valign="middle"><table width="380" border="0" align="center" cellpadding="0" cellspacing="0">';
nota_legal +=  '<tr><td><div align="justify"><p align="justify"><span class="txt_notalegal">A los efectos de lo establecido en la Ley Org&aacute;nica 15/1999, de 13 de diciembre, de Protecci&oacute;n de Datos de Car&aacute;cter Personal, Mytplast, S.A garantiza la confidencialidad de los datos personales de los usuarios de su p&aacute;gina web. Los datos proporcionados a trav&eacute;s de distintos formularios ser&aacute;n incorporados a una base de datos gestionada bajo la responsabilidad de Mytplast, S.A , creada para finalidades comerciales y operativas.<br />Al remitirnos sus datos, usted declara su exactitud y veracidad.<br />El usuario podr&aacute; en todo momento ejercitar sus derechos de acceso, rectificaci&oacute;n, cancelaci&oacute;n y oposici&oacute;n de sus datos de car&aacute;cter personal mediante correo ordinario (Pol. Ind. Can Cuy&aacute;s , naves 17-18-19, 08110 Montcada i Reixac - Barcelona) o electr&oacute;nico (info@mytplast.eu), en los t&eacute;rminos establecidos en la LOPD.<br /><br />Mytplast S.A.<br />CIF: A-08637076</span><br /></p>';
nota_legal += '</div></td></tr></table></td><td width="20" valign="middle">&nbsp;</td></tr><tr><td valign="middle">&nbsp;</td><td valign="middle">&nbsp;</td><td valign="middle">&nbsp;</td></tr></table>';
}
if (idioma == 'cat')	{
var nota_legal = '<table width="420" height="180" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr><td valign="middle">&nbsp;</td><td valign="middle">&nbsp;</td><td valign="middle">&nbsp;</td></tr><tr><td width="20" valign="middle">&nbsp;</td><td width="380" valign="middle"><table width="380" border="0" align="center" cellpadding="0" cellspacing="0">';
nota_legal +=  "<tr><td><div align='justify'><p align='justify'><span class='txt_notalegal'>A l'efecte de l'establert en la Llei Org&agrave;nica 15/1999, de 13 de desembre, de   Protecci&oacute; de Dades de Car&agrave;cter Personal, Mytplast, S.A garanteix la   confidencialitat de les dades personals dels usuaris de la seva p&agrave;gina web. Les   dades proporcionades a trav&eacute;s de diferents formularis seran incorporats a una   base de dades gestionada sota la responsabilitat de Mytplast, S.A , creada per a   finalitats comercials i operatives. AL remetre'ns les seves dades, vost&egrave; declara   la seva exactitud i veracitat. L'usuari podr&agrave; en tot moment exercitar els seus   drets d'acc&eacute;s, rectificaci&oacute;, cancel&middot;laci&oacute; i oposici&oacute; de les seves dades de   car&agrave;cter personal mitjan&ccedil;ant correu ordinari (Pol. Ind. Ca Cuy&aacute;s , naus   17-18-19, 08110 Montcada i Reixac - Barcelona) o electr&ograve;nic   (info@mytplast.eu), en els termes establerts en la LOPD.<br /><br />Mytplast S.A.<br />CIF: A-08637076</span><br /></p>";
nota_legal += '</div></td></tr></table></td><td width="20" valign="middle">&nbsp;</td></tr><tr><td valign="middle">&nbsp;</td><td valign="middle">&nbsp;</td><td valign="middle">&nbsp;</td></tr></table>';
}
if (idioma == 'ingl')	{
var nota_legal = '<table width="420" height="180" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr><td valign="middle">&nbsp;</td><td valign="middle">&nbsp;</td><td valign="middle">&nbsp;</td></tr><tr><td width="20" valign="middle">&nbsp;</td><td width="380" valign="middle"><table width="380" border="0" align="center" cellpadding="0" cellspacing="0">';
nota_legal +=  '<tr><td><p align="justify"><span class="txt_notalegal">According to the Data Protection Act, 1998, Mytplast S.A. respects your right to privacy and is committed to complying with applicable data protection and privacy law. Mytplast will only collect personal information about you with your awareness and permission. Any personal information which you provide to Mytplast will be kept secure and confidential using appropriate technical measures. You agree that any data you provide to Mytplast will be true, complete and accurate in all respects. Mytplast will keep your personal information for as long as necessary for the purposes for which it was collected, and to conduct its legitimate business interests. At any time, the client will be able to access, amend, cancel and oppose to any use of his personal information by mail (Pol. Ind. Can Cuy&amp;aacute;s, Naves 17-18-19, 08110 Montcada i Reixac - Barcelona - Spain) or e-mail (info@mytplast.eu).<br /><br />Mytplast S.A.<br />CIF: A-08637076</span></p>';
nota_legal +=  '</td></tr></table></td><td width="20" valign="middle">&nbsp;</td></tr><tr><td valign="middle">&nbsp;</td><td valign="middle">&nbsp;</td><td valign="middle">&nbsp;</td></tr></table>';
}
if (idioma == 'fr')	{
var nota_legal = '<table width="420" height="180" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF"><tr><td valign="middle">&nbsp;</td><td valign="middle">&nbsp;</td><td valign="middle">&nbsp;</td></tr><tr><td width="20" valign="middle">&nbsp;</td><td width="380" valign="middle"><table width="380" border="0" align="center" cellpadding="0" cellspacing="0">';
nota_legal +=  '<tr><td><div align="justify"><p align="justify"><span class="txt_notalegal">Les informations recueillies vous concernant sont indispensables pour r&eacute;pondre &agrave;   vos demandes d&rsquo;information. Elles sont exclusivement destin&eacute;es &agrave; Mytplast S.A.   et &agrave; son r&eacute;seau commercial &agrave; des fins d&rsquo;analyses et de propositions   commerciales. Ces informations sont confidentielles et conserv&eacute;es par Mytplast   S.A. et son r&eacute;seau commercial. Conform&eacute;ment &agrave; la loi &laquo;Informatique et Libert&eacute;s &raquo;   n&deg;78-17 du 6 janvier 1978, vous disposez d\'un droit d\'acc&egrave;s, de modification, de   rectification et de suppression des donn&eacute;es qui vous concernent en nous   contactant par courrier &agrave; l&rsquo;adresse suivante : Mytplast S.A., Pol. Ind. Can   Cuy&aacute;s, Naves 17-18-19, 08110 Montcada i Reixac (Barcelone) Espagne ou par e-mail   &agrave; info@mytplast.eu.<br /><br />Mytplast S.A.<br />CIF: A-08637076</span></p>';
nota_legal += '</div></td></tr></table></td><td width="20" valign="middle">&nbsp;</td></tr><tr><td valign="middle">&nbsp;</td><td valign="middle">&nbsp;</td><td valign="middle">&nbsp;</td></tr></table>';
}


document.getElementById('aviso_legal').innerHTML = nota_legal;	
}

var offsetfromcursorX=12 //Customize x offset of tooltip
var offsetfromcursorY=10 //Customize y offset of tooltip

var offsetdivfrompointerX=10 //Customize x offset of tooltip DIV relative to pointer image
var offsetdivfrompointerY=14 //Customize y offset of tooltip DIV relative to pointer image. Tip: Set it to (height_of_pointer_image-1).

document.write('<div id="dhtmltooltip"></div>') //write out tooltip DIV
document.write('<img id="dhtmlpointer" src="http://www.mytplast.eu/img/arrow2.gif" style="visibility:hidden;">') //write out pointer image

var ie=document.all
var ns6=document.getElementById && !document.all
var enabletip=false
if (ie||ns6)
var tipobj=document.all? document.all["dhtmltooltip"] : document.getElementById? document.getElementById("dhtmltooltip") : ""

var pointerobj=document.all? document.all["dhtmlpointer"] : document.getElementById? document.getElementById("dhtmlpointer") : ""

function ietruebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function ddrivetip(thetext, thewidth, thecolor){
if (ns6||ie){
if (typeof thewidth!="undefined") tipobj.style.width=thewidth+"px"
if (typeof thecolor!="undefined" && thecolor!="") tipobj.style.backgroundColor=thecolor
tipobj.innerHTML=thetext
enabletip=true
return false
}
}


function positiontip(e){
if (enabletip){
var nondefaultpos=false
var curX=(ns6)?e.pageX : event.clientX+ietruebody().scrollLeft;
var curY=(ns6)?e.pageY : event.clientY+ietruebody().scrollTop;
//Find out how close the mouse is to the corner of the window
var winwidth=ie&&!window.opera? ietruebody().clientWidth : window.innerWidth-20
var winheight=ie&&!window.opera? ietruebody().clientHeight : window.innerHeight-20

var rightedge=ie&&!window.opera? winwidth-event.clientX-offsetfromcursorX : winwidth-e.clientX-offsetfromcursorX
var bottomedge=ie&&!window.opera? winheight-event.clientY-offsetfromcursorY : winheight-e.clientY-offsetfromcursorY

var leftedge=(offsetfromcursorX<0)? offsetfromcursorX*(-1) : -1000

//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<tipobj.offsetWidth){
//move the horizontal position of the menu to the left by it's width
tipobj.style.left=curX-tipobj.offsetWidth+"px"
nondefaultpos=true
}
else if (curX<leftedge)
tipobj.style.left="5px"
else{
//position the horizontal position of the menu where the mouse is positioned
tipobj.style.left=curX+offsetfromcursorX-offsetdivfrompointerX+"px"
pointerobj.style.left=curX+offsetfromcursorX+"px"
}

//same concept with the vertical position
if (bottomedge<tipobj.offsetHeight){
tipobj.style.top=curY-tipobj.offsetHeight-offsetfromcursorY+"px"
nondefaultpos=true
}
else{
tipobj.style.top=curY+offsetfromcursorY+offsetdivfrompointerY+"px"
pointerobj.style.top=curY+offsetfromcursorY+"px"
}
tipobj.style.visibility="visible"
if (!nondefaultpos)
pointerobj.style.visibility="visible"
else
pointerobj.style.visibility="hidden"
}
}

function hideddrivetip(){
if (ns6||ie){
enabletip=false
tipobj.style.visibility="hidden"
pointerobj.style.visibility="hidden"
tipobj.style.left="-1000px"
tipobj.style.backgroundColor=''
tipobj.style.width=''
}
}

document.onmousemove=positiontip
