var cordXX;
var cordYY;
var displayduracion_der=0; //duration in seconds image should remain visible. 0 for always.
var medidaimagen_der = 0; // maximum image size.
var previewancho_der = medidaimagen_der + 45;
var prev_h;
var prev_w;
var flip_loc_coordenada_x_der = 0; // When we get to loc clientWidth - 445 then move the preview to the left of the cursor
var espacio_izquierda_der = 100; // close the gap when we move the preview to the left of the cursor
var flip_loc_coordenada_y_der = 0;
var espacio_superior_der = 100;

var dnd_thm_loc;
var dnd_big_thm_loc;
var dnd_hoid;

var lbx_items = [];
var num_lbx_items = 0;
var last_lbx_item = null;
var start_lbx_item = null;

function lbx_item(o,thm,thl,h,n,p) {
    this.oid = o;
    this.thmloc = thm;
    this.thlloc = thl;
    this.hoid = h;
    this.added = false;
    this.deleted = false;
    this.prev=p;
    this.next=n;
}

function js_add_to_lbx(n,tloc,btloc,hoid){

    var this_lbx_item=lbx_items.length;
     if(start_lbx_item == null) start_lbx_item=this_lbx_item;
     
    lbx_items[lbx_items.length++]= new lbx_item(n,tloc,btloc,hoid,last_lbx_item,null);
    if(last_lbx_item != null) lbx_items[last_lbx_item].next=this_lbx_item;
    last_lbx_item=this_lbx_item;
    return(lbx_items[this_lbx_item]);
}

function add_to_lbx_(n,tloc,btloc,hoid){

    var lbxfloater = window.frames['lbxframe'];
    var list = lbxfloater.document.forms.lightbox.lbx;

    if(n == "undefined") return;

    if(lbxfloater.document.forms.lightbox.lightbox_total.value >= 48){
        alert("Your light box is full. No more items can be added.");
        return;
    }


    lbxfloater.document.forms.lightbox.action.value = 'add';
    lbxfloater.document.forms.lightbox.OBJECT_ID.value = n;
    lbxfloater.document.forms.lightbox.THM_URI_1.value = tloc;
    lbxfloater.document.forms.lightbox.THM_URI_2.value = btloc;
    lbxfloater.document.forms.lightbox.lastitemadded.value = n;
    lbxfloater.document.forms.lightbox.submit();
}

function getprevobj_der(o){

    if (document.getElementById)
        return document.getElementById(o).style
    else if (document.all)
       return document.all.o.style
}

function getprevobjdernostyle(o){

    if (document.getElementById)
        return document.getElementById(o)
    else if (document.all)
        return document.all.o
}

function getObjectByName(n){
    alert(n);

    return(document.getElementsByTagName(n)[0].firstChild);
}

function truebody(){
   return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function mostrarderecha(imagen,texto,catID,cordX,cordY){
	var subCat = catID.substring(0,2);
	var subSubCat = catID.substring(0,3);
	var match = /\.swf/.test(imagen);
	cordXX=parseFloat(cordX);
	cordYY=parseFloat(cordY);

	 if(subCat == 'C1') {

	newHTML = '<table width="300" cellpadding="0" cellspacing="0"><tr><td width="10"><img src="estructura/borde01.gif" width="10" height="10" /></td><td width="281" background="estructura/borde02.jpg" bgcolor="#FFFFFF"><img src="estructura/transp.gif" width="10" height="10" /></td><td width="9" height="10" valign="top"><img src="estructura/borde02.gif" width="10" height="10"/></td></tr><tr><td rowspan="2" align="center" background="estructura/borde01.jpg" bgcolor="#FFFFFF"></td><td bgcolor="#FFFFFF"><p align="justify" class="sttextnegro2">'+texto+'</p></td><td rowspan="2" align="right" background="estructura/borde03.jpg" bgcolor="#FFFFFF"></td></tr><tr><td align="center" bgcolor="#FFFFFF"><img src="imagenes/'+imagen+'"/></td></tr><tr><td><img src="estructura/borde03.gif" width="10" height="10"/></td><td background="estructura/borde04.jpg" bgcolor="#FFFFFF"></td><td width="9" height="10"><img src="estructura/borde04.gif" width="10" height="10"/></td></tr></table>';
	
	} else if (subCat == 'C2') { 
	
	 newHTML = '<table width="380" border="0" cellspacing="0" cellpadding="0"><tr><td width="10"><img src="estructura/borde01.gif" width="10" height="10" /></td><td colspan="2" background="estructura/borde02.jpg" bgcolor="#FFFFFF"><img src="estructura/transp.gif" width="10" height="10" /></td><td width="10"><img src="estructura/borde02.gif" width="10" height="10"/></td></tr><tr><td background="estructura/borde01.jpg" bgcolor="#FFFFFF"></td><td width="137" valign="top" bgcolor="#FFFFFF"><img src="imagenes/'+imagen+'"/></td><td width="223" valign="top" bgcolor="#FFFFFF"><p align="justify" style="padding:0; margin:0 0 0 5px;">'+texto+'</p></td><td background="estructura/borde03.jpg" bgcolor="#FFFFFF"></td></tr><tr><td><img src="estructura/borde03.gif" width="10" height="10"/></td><td colspan="2" background="estructura/borde04.jpg" bgcolor="#FFFFFF"><img src="estructura/transp.gif" width="10" height="10" /></td><td><img src="estructura/borde04.gif" width="10" height="10"/></td></tr></table>';
	
	} else if (subCat == 'C3') { 
	
	 newHTML = '<table width="700" border="0" cellspacing="0" cellpadding="0"><tr><td width="10"><img src="estructura/borde01.gif" width="10" height="10" /></td><td colspan="2" background="estructura/borde02.jpg" bgcolor="#FFFFFF"><img src="estructura/transp.gif" width="10" height="10" /></td><td width="10"><img src="estructura/borde02.gif" width="10" height="10"/></td></tr><tr><td background="estructura/borde01.jpg" bgcolor="#FFFFFF"></td><td width="50" valign="bottom" bgcolor="#FFFFFF"><img src="imagenes/'+imagen+'"/></td><td width="630" valign="top" bgcolor="#FFFFFF"><p align="justify" style="padding:0; margin:0 0 0 5px;">'+texto+'</p></td><td background="estructura/borde03.jpg" bgcolor="#FFFFFF"></td></tr><tr><td><img src="estructura/borde03.gif" width="10" height="10"/></td><td colspan="2" background="estructura/borde04.jpg" bgcolor="#FFFFFF"><img src="estructura/transp.gif" width="10" height="10" /></td><td><img src="estructura/borde04.gif" width="10" height="10"/></td></tr></table>';
	
	} else if (subCat == 'C4') {
	
	 newHTML = '<table border="0" cellspacing="0" cellpadding="0"><tr><td width="10"><img src="estructura/borde01.gif" width="10" height="10" /></td><td background="estructura/borde02.jpg" bgcolor="#FFFFFF"><img src="estructura/transp.gif" width="10" height="10" /></td><td width="10"><img src="estructura/borde02.gif" width="10" height="10"/></td></tr><tr><td background="estructura/borde01.jpg" bgcolor="#FFFFFF"></td><td valign="top" bgcolor="#FFFFFF"><img src="imagenes/'+imagen+'"/></td><td background="estructura/borde03.jpg" bgcolor="#FFFFFF"></td></tr><tr><td><img src="estructura/borde03.gif" width="10" height="10"/></td><td background="estructura/borde04.jpg" bgcolor="#FFFFFF"><img src="estructura/transp.gif" width="10" height="10" /></td><td><img src="estructura/borde04.gif" width="10" height="10"/></td></tr></table>';
	
	} else if (subCat == 'C5') {
	
	 newHTML = '<table width="550" border="0" cellspacing="0" cellpadding="0"><tr><td width="10"><img src="estructura/borde01.gif" width="10" height="10" /></td><td colspan="2" background="estructura/borde02.jpg" bgcolor="#FFFFFF"><img src="estructura/transp.gif" width="10" height="10" /></td><td width="10"><img src="estructura/borde02.gif" width="10" height="10"/></td></tr><tr><td background="estructura/borde01.jpg" bgcolor="#FFFFFF"></td><td width="2" valign="top" bgcolor="#FFFFFF"><img src="imagenes/'+imagen+'"/></td><td width="528" valign="top" bgcolor="#FFFFFF"><p align="justify" style="padding:0; margin:0 0 0 5px;">'+texto+'</p></td><td background="estructura/borde03.jpg" bgcolor="#FFFFFF"></td></tr><tr><td><img src="estructura/borde03.gif" width="10" height="10"/></td><td colspan="2" background="estructura/borde04.jpg" bgcolor="#FFFFFF"><img src="estructura/transp.gif" width="10" height="10" /></td><td><img src="estructura/borde04.gif" width="10" height="10"/></td></tr></table>';
	
	} else if (subCat == 'C6') { 
	
	 newHTML = '<table width="650" border="0" cellspacing="0" cellpadding="0"><tr><td width="10"><img src="estructura/borde01.gif" width="10" height="10" /></td><td colspan="2" background="estructura/borde02.jpg" bgcolor="#FFFFFF"><img src="estructura/transp.gif" width="10" height="10" /></td><td width="10"><img src="estructura/borde02.gif" width="10" height="10"/></td></tr><tr><td background="estructura/borde01.jpg" bgcolor="#FFFFFF"></td><td width="53" valign="top" bgcolor="#FFFFFF"><img src="imagenes/'+imagen+'"/></td><td width="577" valign="top" bgcolor="#FFFFFF"><p align="justify" style="padding:0; margin:0 0 0 5px;">'+texto+'</p></td><td background="estructura/borde03.jpg" bgcolor="#FFFFFF"></td></tr><tr><td><img src="estructura/borde03.gif" width="10" height="10"/></td><td colspan="2" background="estructura/borde04.jpg" bgcolor="#FFFFFF"><img src="estructura/transp.gif" width="10" height="10" /></td><td><img src="estructura/borde04.gif" width="10" height="10"/></td></tr></table>';
	
	} else if (subCat == 'C7') {
	
	 newHTML = '<table width="850" cellpadding="0" cellspacing="0"><tr><td width="10"><img src="estructura/borde01.gif" width="10" height="10" /></td><td width="828" background="estructura/borde02.jpg" bgcolor="#FFFFFF"><img src="estructura/transp.gif" width="10" height="10" /></td><td width="10" height="10" valign="top"><img src="estructura/borde02.gif" width="10" height="10"/></td></tr><tr><td rowspan="2" align="center" background="estructura/borde01.jpg" bgcolor="#FFFFFF"></td><td bgcolor="#FFFFFF"><img src="imagenes/'+imagen+'"/></td><td rowspan="2" align="right" background="estructura/borde03.jpg" bgcolor="#FFFFFF"></td></tr><tr><td align="center" bgcolor="#FFFFFF"><p align="justify" class="sttextnegro2">'+texto+'</p></td></tr><tr><td><img src="estructura/borde03.gif" width="10" height="10"/></td><td background="estructura/borde04.jpg" bgcolor="#FFFFFF"></td><td width="10" height="10"><img src="estructura/borde04.gif" width="10" height="10"/></td></tr></table>';
	
	} else if (subCat == 'C8') {
	
	 newHTML = '<table width="450" cellpadding="0" cellspacing="0"><tr><td width="10"><img src="estructura/borde01.gif" width="10" height="10" /></td><td background="estructura/borde02.jpg" bgcolor="#FFFFFF"><img src="estructura/transp.gif" width="10" height="10" /></td><td width="10" height="10" valign="top"><img src="estructura/borde02.gif" width="10" height="10"/></td></tr><tr><td rowspan="2" align="center" background="estructura/borde01.jpg" bgcolor="#FFFFFF"></td><td bgcolor="#FFFFFF" align="center"><img src="imagenes/'+imagen+'"/></td><td rowspan="2" align="right" background="estructura/borde03.jpg" bgcolor="#FFFFFF"></td></tr><tr><td align="center" bgcolor="#FFFFFF"><p align="justify" class="sttextnegro2">'+texto+'</p></td></tr><tr><td><img src="estructura/borde03.gif" width="10" height="10"/></td><td background="estructura/borde04.jpg" bgcolor="#FFFFFF"></td><td width="10" height="10"><img src="estructura/borde04.gif" width="10" height="10"/></td></tr></table>';
	} else if (subCat == 'C9') { 
	
	 newHTML = '<table width="450" cellpadding="0" cellspacing="0"><tr><td width="10"><img src="estructura/borde01.gif" width="10" height="10" /></td><td background="estructura/borde02.jpg" bgcolor="#FFFFFF"><img src="estructura/transp.gif" width="10" height="10" /></td><td width="10" height="10" valign="top"><img src="estructura/borde02.gif" width="10" height="10"/></td></tr><tr><td rowspan="2" align="center" background="estructura/borde01.jpg" bgcolor="#FFFFFF"></td><td bgcolor="#FFFFFF"><p align="justify" class="sttextnegro2">'+texto+'</p></td><td rowspan="2" align="right" background="estructura/borde03.jpg" bgcolor="#FFFFFF"></td></tr><tr><td align="center" bgcolor="#FFFFFF"><img src="imagenes/'+imagen+'"/></td></tr><tr><td><img src="estructura/borde03.gif" width="10" height="10"/></td><td background="estructura/borde04.jpg" bgcolor="#FFFFFF"></td><td width="10" height="10"><img src="estructura/borde04.gif" width="10" height="10"/></td></tr></table>';
	} else if (subCat == '1C') { 
	 newHTML = '<table width="500" cellpadding="0" cellspacing="0"><tr><td width="10"><img src="estructura/borde01.gif" width="10" height="10" /></td><td background="estructura/borde02.jpg" bgcolor="#FFFFFF"><img src="estructura/transp.gif" width="10" height="10" /></td><td width="10" height="10" valign="top"><img src="estructura/borde02.gif" width="10" height="10"/></td></tr><tr><td align="center" background="estructura/borde01.jpg" bgcolor="#FFFFFF"></td><td align="center" bgcolor="#FFFFFF"><p align="justify" class="sttextnegro2">'+texto+'</p></td><td align="right" background="estructura/borde03.jpg" bgcolor="#FFFFFF"></td></tr><tr><td><img src="estructura/borde03.gif" width="10" height="10"/></td><td background="estructura/borde04.jpg" bgcolor="#FFFFFF"></td><td width="10" height="10"><img src="estructura/borde04.gif" width="10" height="10"/></td></tr></table>';
	} if(subCat == '2C') {

		newHTML = '<div style="z-index:10000;"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="300" height="300">';
		newHTML = newHTML + '<param name="movie" value="animaciones/'+imagen+'" />';
		newHTML = newHTML + '<param name="quality" value="high" />';
		newHTML = newHTML + '<param name="wmode" value="transparent" />';
		newHTML = newHTML + '<embed wmode="transparent" src="animaciones/'+imagen+'" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="300" height="300"></embed>';
	  newHTML = newHTML + '</object></div>';
	} else if (subCat == '3C') { 
		newHTML = '<table width="450" border="0" cellpadding="0" cellspacing="0"><tr><td width="10"><img src="estructura/borde01.gif" width="10" height="10" /></td><td colspan="2" background="estructura/borde02.jpg"><img src="estructura/transp.gif" width="10" height="10"/></td><td width="10"><img src="estructura/borde02.gif" width="10" height="10"/></td></tr><tr><td background="estructura/borde01.jpg"></td><td width="248" bgcolor="#FFFFFF"><img src="imagenes/'+imagen+'" alt=""/></td><td width="182" bgcolor="#FFFFFF" class="columnas-pais-destino">'+texto+'</td><td background="estructura/borde03.jpg"></td></tr><tr><td><img src="estructura/borde03.gif" alt="" width="10" height="10"/></td><td colspan="2" background="estructura/borde04.jpg"><img src="estructura/transp.gif" width="10" height="10"/></td><td><img src="estructura/borde04.gif" width="10" height="10"/></td></tr></table>';
  }else if (subCat == '4C') { 
		newHTML = '<table width="250" cellpadding="0" cellspacing="0"><tr><td width="10"><img src="estructura/borde01.gif" width="10" height="10" /></td><td background="estructura/borde02.jpg" bgcolor="#FFFFFF"><img src="estructura/transp.gif" width="10" height="10" /></td><td width="10" height="10" valign="top"><img src="estructura/borde02.gif" width="10" height="10"/></td></tr><tr><td rowspan="2" align="center" background="estructura/borde01.jpg" bgcolor="#FFFFFF"></td><td bgcolor="#FFFFFF" align="center"><img src="imagenes/'+imagen+'"/></td><td rowspan="2" align="right" background="estructura/borde03.jpg" bgcolor="#FFFFFF"></td></tr><tr><td align="center" bgcolor="#FFFFFF"><p align="justify" class="sttextnegro2">'+texto+'</p></td></tr><tr><td><img src="estructura/borde03.gif" width="10" height="10"/></td><td background="estructura/borde04.jpg" bgcolor="#FFFFFF"></td><td width="10" height="10"><img src="estructura/borde04.gif" width="10" height="10"/></td></tr></table>';
  } else if(subCat == '5C') {
	  newHTML = '<div style="z-index:10000;"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="660" height="295">';
      newHTML = newHTML + '<param name="movie" value="animaciones/'+imagen+'" />';
      newHTML = newHTML + '<param name="quality" value="high" />';
      newHTML = newHTML + '<param name="wmode" value="transparent" />';
	  newHTML = newHTML + '<embed wmode="transparent" src="animaciones/'+imagen+'" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="660" height="320"></embed>';
	  newHTML = newHTML + '</object></div>';
	}else if (subCat == '6C') { 
		newHTML = '<table width="570" border="0" cellpadding="0" cellspacing="0"><tr><td width="120" height="10"><img src="estructura/transp.gif" width="10" height="10"/></td><td width="10"><img src="estructura/borde01.gif" width="10" height="10" /></td><td colspan="2" background="estructura/borde02.jpg"><img src="estructura/transp.gif" width="10" height="10"/></td><td width="10"><img src="estructura/borde02.gif" width="10" height="10"/></td></tr><tr><td></td><td background="estructura/borde01.jpg"></td><td width="248" bgcolor="#FFFFFF"><img src="imagenes/'+imagen+'" alt=""/></td><td width="182" bgcolor="#FFFFFF" class="columnas-pais-destino">'+texto+'</td><td background="estructura/borde03.jpg"></td></tr><tr><td><img src="estructura/transp.gif" width="10" height="10"/></td><td><img src="estructura/borde03.gif" alt="" width="10" height="10"/></td><td colspan="2" background="estructura/borde04.jpg"><img src="estructura/transp.gif" width="10" height="10"/></td><td><img src="estructura/borde04.gif" width="10" height="10"/></td></tr></table>';
  } else if (subCat == '7C') { 
		newHTML = '<table width="250" cellpadding="0" cellspacing="0"><tr><td width="10"><img src="estructura/borde01.gif" width="10" height="10" /></td><td background="estructura/borde02.jpg" bgcolor="#FFFFFF"><img src="estructura/transp.gif" width="10" height="10" /></td><td width="10" height="10" valign="top"><img src="estructura/borde02.gif" width="10" height="10"/></td></tr><tr><td align="center" background="estructura/borde01.jpg" bgcolor="#FFFFFF"></td><td align="center" bgcolor="#FFFFFF"><p align="justify" class="sttextnegro2">'+texto+'</p></td><td align="right" background="estructura/borde03.jpg" bgcolor="#FFFFFF"></td></tr><tr><td><img src="estructura/borde03.gif" width="10" height="10"/></td><td background="estructura/borde04.jpg" bgcolor="#FFFFFF"></td><td width="10" height="10"><img src="estructura/borde04.gif" width="10" height="10"/></td></tr></table>';
} else if(subCat == '8C') {
	  newHTML = '<table width="640" cellpadding="0" cellspacing="0"><tr><td width="10"><img src="estructura/borde01.gif" width="10" height="10" /></td><td width="620" background="estructura/borde02.jpg" bgcolor="#FFFFFF"><img src="estructura/transp.gif" width="10" height="10" /></td><td width="36" height="10" valign="top"><img src="estructura/borde02.gif" width="10" height="10"/></td></tr><tr><td align="center" background="estructura/borde01.jpg" bgcolor="#FFFFFF"></td><td align="center" bgcolor="#FFFFFF"><span style="z-index:10000;"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="620" height="305">';
        newHTML = newHTML + '<param name="movie" value="animaciones/'+imagen+'" />';
        newHTML = newHTML + '<param name="quality" value="high" />';
        newHTML = newHTML + '<param name="wmode" value="transparent" />';
        newHTML = newHTML + '<embed wmode="transparent" src="animaciones/'+imagen+'" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="620" height="305"></embed>';
        newHTML = newHTML + '</object></span></td><td align="right" background="estructura/borde03.jpg" bgcolor="#FFFFFF"></td></tr><tr><td><img src="estructura/borde03.gif" width="10" height="10"/></td><td background="estructura/borde04.jpg" bgcolor="#FFFFFF"></td><td width="36" height="10"><img src="estructura/borde04.gif" width="10" height="10"/></td></tr></table>';
}
	
	getprevobjdernostyle("previewcontainer").innerHTML = newHTML;
	setTimeout('getprevobj_der("previewcontainer").visibility="visible"',400);
	document.onmousemove=followmouse_der;

}

function ocultarderecha(){
        getprevobj_der("previewcontainer").visibility="hidden";
        getprevobj_der("previewcontainer").left="-3000px";
        document.onmousemove="";
}

function followmouse_der(e){

    var coord_x_der=cordXX;
    var coord_y_der=cordYY;

    var scroll_superior_der=0

		if(getprevobjdernostyle('bodyContent').scrollTop)
				scroll_superior_der=getprevobjdernostyle('bodyContent').scrollTop
		else
				scroll_superior_der=truebody().scrollTop

    var doc_ancho_der=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15
		var doc_alto_der=document.all? truebody().clientHeight : window.innerHeight

    if (typeof e != "undefined"){
        if (doc_ancho_der - e.pageX < flip_loc_coordenada_x_der){
            coord_x_der = e.pageX - flip_loc_coordenada_x_der - coord_x_der; // Move to the left side of the cursor
        } else {
            coord_x_der += e.pageX;
        }
				/**/
				if (doc_alto_der - e.pageY < flip_loc_coordenada_y_der){
            coord_y_der = e.pageY - flip_loc_coordenada_y_der - coord_y_der - 110 + espacio_superior_der; // Move to the left side of the cursor
        } else {
            coord_y_der += e.pageY;
        }
				/**/

    } else if (typeof window.event != "undefined"){
        if (doc_ancho_der - event.clientX < flip_loc_coordenada_x_der){ // changed from 300
            coord_x_der = event.clientX + truebody().scrollLeft - flip_loc_coordenada_x_der - 150 + espacio_izquierda_der; // changed from 286 Move to the left side of the cursor
        } else {
            coord_x_der += truebody().scrollLeft+event.clientX;
        }
				
				if (doc_alto_der - event.clientY < flip_loc_coordenada_y_der){ // changed from 300
            coord_y_der = event.clientY + truebody().scrollTop - flip_loc_coordenada_y_der - 110 + espacio_superior_der; // changed from 286 Move to the left side of the cursor
        } else {
            coord_y_der += scroll_superior_der + event.clientY;
						/*coord_y_der += truebody().scrollTop+event.clientY;*/
        }
    }
		var doc_ancho_der=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15
    var doc_alto_der=document.all? Math.max(truebody().scrollHeight, truebody().clientHeight) : Math.max(document.body.offsetHeight, window.innerHeight)
		getprevobj_der("previewcontainer").left=coord_x_der+"px"
		getprevobj_der("previewcontainer").top=coord_y_der+"px"
}
