/*************************************************************************
  This code is from Dynamic Web Coding at http://www.dyn-web.com/
  Copyright 2002-3 by Sharon Paine 
  See Terms of Use at http://www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/

// See documentation for information about setting these properties 
// at www.dyn-web/com/dhtml/write-drag/documentation.html
writeDrag.writeId = "cntnt";
writeDrag2.writeId = "cntnt2";

// required arg's: event, image path and file name (as this.href)
// important but optional arg's: width of image, height of image 
// other optional arg's: txt, layer width, offx, offy

function wrapContent(e, img, w, h, txt, type, nr, wd, offx, offy) {
  var imgStr, cntnt, win, str;
  imgStr = '<img src="' + img + '" alt="-" />';
  if ( dragObj.supported && typeof document.body.innerHTML != "undefined" ) {
    cntnt = '<div class="img" alt="-" />' + imgStr + '</div>';
    if (!wd) wd = w; 
    if (!nr) nr = '1210'; 
    writeDrag.set(e, cntnt, wd, offx, offy, txt, type, nr);
  } 
  return false;
}

function wrapContent2(e, img, w, h, txt, type, nr2, wd, offx, offy) {
  var imgStr, cntnt2, win, str;
  imgStr = '<img src="' + img + '" alt="-" />';
  if ( dragObj.supported && typeof document.body.innerHTML != "undefined" ) {
    cntnt2 = '<div class="img" alt="-" />' + imgStr + '</div>';
    if (!wd) wd = w; 
    if (!nr2) nr2 = '1210'; 
    writeDrag2.set(e, cntnt2, wd, offx, offy, txt, type, nr2);
  } 
  return false;
}
