addLoadListener(function()
{
	mclObj = document.getElementById('mc_lists').getElementsByTagName('a');

	for (i=0; i<mclObj.length; i++) {
//	 mclObj[i].onmouseover = function() {listInfo(this,'show');return false;};
//	 mclObj[i].onmouseout = function() {listInfo(this,'hide');return false;};
	}
	
	document.getElementById('unsubscribe').getElementsByTagName('a')[0].onclick = function() {cancel('unsubscribe');return false;}
	document.getElementById('change_info').getElementsByTagName('a')[0].onclick = function() {cancel('info'); return false;}
	
	bObj = document.getElementsByTagName('body')[0];
	
	responseDiv = document.createElement('div');
	responseDiv.setAttribute('id','response_wrap');
	bObj.insertBefore(responseDiv, bObj.nextSibling);
	 
	html = '<div id="response_inner">';
	html += '<div id="response_top"></div>';
	html += '<div id="response_middle">';
	html += '<div id="response_middle_text"></div>';
	html += '</div>';
	html += '<div id="response_bottom"></div>';
	html += '</div>';
	
	document.getElementById('response_wrap').innerHTML = html;
	
	infoDiv = document.createElement('div');
	infoDiv.setAttribute('id','info');
	bObj.insertBefore(infoDiv, bObj.nextSibling);
	
	preloading(
	"yellow25per_bg_slammed.png",
	"blue60per_bg_slammed.png",
	"red35per_bg_slammed.png",
	"input_white_bg.gif",
	"input_blue_bg.gif",
	"input_red_bg.gif",
	"send_blue.gif",
	"response_slot_slammed.png",
	"response_top_slammed.png",
	"response_middle_solid_slammed.png",
	"response_middle_grad.gif",
	"response_bottom_slammed.png"
	);
});

var myimages = [];
function preloading() {
for (x=0; x<preloading.arguments.length; x++){
myimages[x] = new Image();
myimages[x].src = "images/"+preloading.arguments[x];
}
}

function cancel(option) {
 if (option == 'unsubscribe') {
 unTrObj = document.getElementById('unsubscribe').getElementsByTagName('table')[0].getElementsByTagName('tbody')[0].getElementsByTagName('tr');
 unTrObj[2].getElementsByTagName('td')[1].getElementsByTagName('input')[0].src = 'images/buttons/button_continue_green.gif';
 unTrObj[1].parentNode.removeChild(unTrObj[1]);
 
 document.getElementById('unsubscribe_text').getElementsByTagName('li')[1].className = '';
 
 unsubscribePart = 1;
 document.getElementById('unsubscribe').getElementsByTagName('a')[0].style.visibility = 'hidden';
}

if (option == 'info') {
 infoTrObj = document.getElementById('change_info').getElementsByTagName('table')[0].getElementsByTagName('tbody')[0].getElementsByTagName('tr');
 infoTrObj[2].getElementsByTagName('td')[1].getElementsByTagName('input')[0].src = 'images/buttons/button_continue_green.gif';
 infoTrObj[1].parentNode.removeChild(infoTrObj[1]);
 
 formObj = document.getElementById('change_info').getElementsByTagName('form')[0];
 formObj.removeChild(formObj.firstChild);
 formObj.removeChild(formObj.firstChild);
 
 document.getElementById('change_info_text').getElementsByTagName('li')[1].className = '';
 
 infoPart = 1;
 document.getElementById('change_info').getElementsByTagName('a')[0].style.visibility = 'hidden';
}

document.forms['emailForm'+option].sender_email.value = '';
}

function listInfo(obj,option) {
if (option == 'show') {
 listID = obj.previousSibling.previousSibling.value;
 coors = findPos(obj);
 alert(coors);
}
}

function findPos(obj) {
var curleft = curtop = 0;
if (obj.offsetParent) {
	curleft = obj.offsetLeft
	curtop = obj.offsetTop
	while (obj = obj.offsetParent) {
		curleft += obj.offsetLeft
		curtop += obj.offsetTop
	}
}
return [curleft,curtop];
}

var formOption = 'subscribe';

function buildSuccess(oldList,newList) {
//headerOption = (formOption == 'subscribe') ? 'response_header':'popup_header';
headerOption = 'response_header';
html = '<div class="'+headerOption+' ph_blue">Success!</div>';

if (formOption == 'subscribe') {
 newHtml = '';
 oldHtml = '';
 
 if (oldList) {
  oldListSplit = oldList.split('|');
  oldHtml = '<strong>It looks like you are already signed up for the following list(s):<br /><ul>';
  for (i=0; i<oldListSplit.length; i++) {
   oldHtml += '<li>'+mcLists[oldListSplit[i]][0]+'</li>';
  }
  oldHtml += '</ul>So no need to worry then, you won\'t miss a thing.</strong>';
 }
 
 if (newList) {
  newHtml += '<strong>Thank you for signing up for the following list(s):<br /><ul>';
  newListSplit = newList.split('|');
  for (i=0; i<newListSplit.length; i++) {
   newHtml += '<li>'+mcLists[newListSplit[i]][0]+'</li>';
  }
  newHtml += '</ul>You are almost done. You will receive a confirmation email for each list you\'ve signed up for.</strong>';
 }
 
 html += (newHtml && oldHtml) ? '<p class="red_separator">'+newHtml+'</p>'+oldHtml:newHtml + oldHtml;
 onclicklink = 'responseClose()';
} else if (formOption == 'unsubscribe') {
 html += '<strong>We are sorry to see you leave. Feel free to sign back up anytime. You will receive a confirmation of your unsubscription(s).</strong>';
 onclicklink = 'responseClose()';
} else {
 html += '<strong>All done! You have successfully changed your information. If there is anything else you need, feel free to <a href="contact.php?w=f">contact us</a> and we\'ll help you as best we can.</strong>';
 onclicklink = 'responseClose()';
}

html +='<div style="text-align: center"><a class="close_window" href="javascript:;" onclick="'+onclicklink+'">Close Window</a><span class="chevron">&gt;&gt;</span></div>';
return html;
}

function buildError(errorNum,field) {
//headerOption = (formOption == 'subscribe') ? 'response_header':'popup_header';
headerOption = 'response_header';
html = '<div class="'+headerOption+' ph_red">Error</div>';
html += 'I\'m sorry, an error has occured.<div class="error_div">'+ajax_error[errorNum]+'</div>Please <a class="error_link" href="javascript:ajax_goback(\''+field+'\',true);\">click here</a> and try again.';
return html;
}

var ajax_error = [];
ajax_error[0] = "Your email address is not in the correct format. Please check your entries and try again.";
ajax_error[1] = "Your friend's email address is not in the correct format. Please check your entries and try again.";
ajax_error[2] = "Your email address contains illegal characters. Please check your entries and try again.";
ajax_error[3] = "Your friend's email contains illegal characters. Please check your entries and try again.";
ajax_error[4] = "There are illegal characters in one of the fields you just entered. Please check your entries and try again.";
ajax_error[9] = "I'm sorry, but we can't seem to find your email address in any of our lists. Please check your email address and try again.";
ajax_error[10] = "There was a problem signing you up. An email has been sent to our tech team and we will do everything we can to get you signed up for Jill's Journey.";

var formSenderName;
var formSenderEmail;
var startHeight;
var unsubscribePart = 1;
var infoPart = 1;

function emailCheck(obj) {
dropCheck = document.getElementById('response_slot_'+formOption);
if (dropCheck.style.display == 'block') {
 document.getElementById('response_slot_'+formOption).style.display = 'none';
}

formOption = obj.whichForm.value;

if (formOption == 'subscribe') {
 obj.sender_name.className = 'text';
}

obj.sender_email.className = 'text';

if (formOption == 'unsubscribe' && unsubscribePart == 2) {
 mcListArray = [];
 mclObj = document.getElementById('unsubscribe').getElementsByTagName('table')[0].getElementsByTagName('tbody')[0].getElementsByTagName('tr')[1].getElementsByTagName('td')[0].getElementsByTagName('input');
 
 for (i=0; i<mclObj.length; i++) {
  if (mclObj[i].checked == true) {
   mcListArray.push(mclObj[i].value);
  }
 }

 if (mcListArray.length < 1) {
  alert('Please choose at least one email list you want to unsubscribe from.');
  return false;
 } else {
  mcListAll = mcListArray.join('|');
 }
} else {
 mcListAll = '';
}

if (formOption == 'subscribe') { // Check to see which checkboxes, if any, are checked
 mcListArray = [];
 for (i=0; i<obj.mcListId.length; i++) {
  if (obj.mcListId[i].checked == true) {
   mcListArray.push(obj.mcListId[i].value);
  }
 }
 
 if (mcListArray.length < 1) {
  alert('Please choose at least one email list to sign up with.');
  return false;
 } else {
  mcListAll = mcListArray.join('|');
 }
}

if (formOption == 'subscribe' || (formOption == 'info' && infoPart == 2)) {
 if (obj.sender_name.value.length < 1) {
  alert("Please enter your name.\n\nThank you.");
  obj.sender_name.focus();
  return false;
 }
}

if (formOption == 'info' && infoPart == 1) {
 formSenderName = '';
 formCurrentLists = '';
 formCurrentEmail = '';
} else if (formOption == 'info' && infoPart == 2) {
 formSenderName = obj.sender_name.value;
 formCurrentLists = obj.currentLists.value;
 formCurrentEmail = obj.currentEmail.value;
}

if (obj.sender_email.value.length < 1) {
 alert("Please enter your email address.\n\nThank you.");
 obj.sender_email.focus();
 return false;
}

req = createXMLHttpRequest();

if (!req) {
 obj.submit();
} else {
 if (formOption == 'subscribe') {
  formSenderName = obj.sender_name.value;
 }
 
 formSenderEmail = obj.sender_email.value;
 
 document.getElementById(formOption+'_loading').style.visibility = 'visible';
 loaderSrc = (formOption == 'subscribe') ? 'loader_red_green.gif':(formOption == 'unsubscribe') ? 'loader_red_blue.gif':'loader_red_red.gif';
 document.getElementById(formOption+'_loading').src = 'images/'+loaderSrc;
 
// alert(unsubscribePart);
 if (formOption == 'subscribe') {
  url = 'email-signup-process.php?action=signup&ajax=true&list=sh&sender_name='+formSenderName+'&sender_email='+formSenderEmail+'&mc_list='+mcListAll;
 } else if (formOption == 'unsubscribe') {
  url = 'email-signup-process.php?action=unsubscribe&ajax=true&list=sh&unsubscribePart='+unsubscribePart+'&sender_email='+formSenderEmail+'&mc_list='+mcListAll;
 } else if (formOption == 'info') {
  url = 'email-signup-process.php?action=info&ajax=true&list=sh&infoPart='+infoPart+'&sender_name='+formSenderName+'&sender_email='+formSenderEmail+'&currentLists='+formCurrentLists+'&currentEmail='+formCurrentEmail;
 }

 req.open('GET', url, true);
 if (formOption == 'subscribe' || formOption == 'unsubscribe' || formOption == 'info') {
  req.onreadystatechange = handleResponseSignup;
 } else {
  req.onreadystatechange = handleResponse;
 }
 req.send(null);
 return false;
}
}

function handleResponseSignup() {
  if(req.readyState == 4){
    if (req.status == 200) {
      var response = req.responseText;
      update = response.split(':');
      
      if (update[0] == 'error') {
       document.getElementById('response_slot_'+formOption).style.display = 'block';
       document.getElementById('response_middle_text').innerHTML = buildError(update[1],update[2]);
       responseInnerHeight = document.getElementById('response_inner').offsetHeight;
	   document.getElementById('response_inner').style.top = (responseInnerHeight * -1) + 'px';
	   document.getElementById('response_wrap').style.height = responseInnerHeight + 'px';
       coors = findPos(document.getElementById('response_slot_'+formOption));
       document.getElementById('response_wrap').style.left = coors[0] + 1 + 'px';
       document.getElementById('response_wrap').style.top = coors[1] + 2 + 'px';
       slideTop(responseInnerHeight * -1,0);
      } else if (update[0] == 'success') {
       if (formOption == 'unsubscribe' && unsubscribePart == 1) {
        unsubLists = update[1].split('|');
        unsubListsHTML = '';
        
        for(i=0; i<unsubLists.length; i++) {
         unsubListsHTML += '<input name="mcListId" type="checkbox" value="'+unsubLists[i]+'" />'+mcLists[unsubLists[i]][0]+'<br />';
        }
        
        newTr = document.createElement('tr');
        newTd = document.createElement('td');
        newTd.setAttribute('colSpan','2');
        newDiv = document.createElement('div');
        newDiv.setAttribute('id','unsubscribe_lists');
        newDiv.innerHTML = unsubListsHTML;
        
        newTd.appendChild(newDiv);
        newTr.appendChild(newTd);
        trObj = document.getElementById('unsubscribe').getElementsByTagName('table')[0].getElementsByTagName('tbody')[0].getElementsByTagName('tr');
        trObj[0].parentNode.insertBefore(newTr, trObj[0].nextSibling);
        trObj[2].getElementsByTagName('td')[1].getElementsByTagName('input')[0].src = 'images/buttons/button_unsubscribe.gif';
        
        document.getElementById('unsubscribe').getElementsByTagName('a')[0].style.visibility = 'visible';
        
        document.getElementById('unsubscribe_text').getElementsByTagName('li')[1].className = 'next_step';
        unsubscribePart = 2;
       } else if (formOption == 'info' && infoPart == 1) {
        curLists = update[1];
        curName = update[2];
        chHTML = '';
        
        //use browser sniffing to determine if IE or Opera (ugly, but required)
        var isOpera, isIE = false;
        if(typeof(window.opera) != 'undefined'){isOpera = true;}
        if(!isOpera && navigator.userAgent.indexOf('Internet Explorer') != -1){isIE = true;}

        if (!isIE) {
         newHidden = document.createElement('input');
         newHidden.setAttribute('type','hidden');
         newHidden.setAttribute('name','currentLists');
         newHidden.setAttribute('value',curLists);
        } else {
         newHidden = document.createElement('<input type="hidden" name="currentLists" value="'+curLists+'" />');
        }
        chForm = document.getElementById('change_info').getElementsByTagName('form')[0];
        chForm.insertBefore(newHidden, chForm.firstChild);
        
        if (!isIE) {
         newHidden = document.createElement('input');
         newHidden.setAttribute('type','hidden');
         newHidden.setAttribute('name','currentEmail');
         newHidden.setAttribute('value',document.forms['emailForm'+formOption].sender_email.value);
        } else {
         newHidden = document.createElement('<input type="hidden" name="currentEmail" value="'+document.forms['emailForm'+formOption].sender_email.value+'" />');
        }
        chForm = document.getElementById('change_info').getElementsByTagName('form')[0];
        chForm.insertBefore(newHidden, chForm.firstChild);
        
        newTr = document.createElement('tr');
        newTd = document.createElement('td');
        newTd.setAttribute('align','right');
        newTd.innerHTML = 'Name:';
        newTr.appendChild(newTd);
        newTd = document.createElement('td');
        newTd.innerHTML = '<input type="text" value="'+curName+'" name="sender_name" class="text"/>';
        newTr.appendChild(newTd);
        
        trObj = document.getElementById('change_info').getElementsByTagName('table')[0].getElementsByTagName('tbody')[0].getElementsByTagName('tr');
        trObj[0].parentNode.insertBefore(newTr, trObj[0].nextSibling);
        trObj[2].getElementsByTagName('td')[1].getElementsByTagName('input')[0].src = 'images/buttons/button_submit_blue.gif';
        
        document.getElementById('change_info_text').getElementsByTagName('li')[1].className = 'next_step';
        
        document.getElementById('change_info').getElementsByTagName('a')[0].style.visibility = 'visible';
        infoPart = 2;
       } else {
        document.getElementById('response_slot_'+formOption).style.display = 'block';
        document.getElementById('response_middle_text').innerHTML = buildSuccess(update[1],update[2]);
        responseInnerHeight = document.getElementById('response_inner').offsetHeight;
	    document.getElementById('response_inner').style.top = (responseInnerHeight * -1) + 'px';
	    document.getElementById('response_wrap').style.height = responseInnerHeight + 'px';
	    coors = findPos(document.getElementById('response_slot_'+formOption));
        document.getElementById('response_wrap').style.left = coors[0] + 1 + 'px';
        document.getElementById('response_wrap').style.top = coors[1] + 2 + 'px';
        slideTop(responseInnerHeight * -1,0);
       }
      }
      document.getElementById(formOption+'_loading').style.visibility = 'hidden';
    }
  }
}

function ajax_goback(elm,error) {
if (error) {
 slideTop(0,document.getElementById('response_inner').offsetHeight * -1,elm);
 return;
}

document.forms['emailForm'+formOption].elements[elm].className = 'text_error';
document.forms['emailForm'+formOption].elements[elm].focus();
}

function responseClose() {
if (formOption == 'subscribe') {
 document.forms['emailForm'+formOption].sender_name.value = '';

 for (i=0; i<document.forms['emailForm'+formOption].mcListId.length; i++) {
  document.forms['emailForm'+formOption].mcListId[i].checked = false;
 }
}

if (formOption == 'unsubscribe') {
 unTrObj = document.getElementById('unsubscribe').getElementsByTagName('table')[0].getElementsByTagName('tbody')[0].getElementsByTagName('tr');
 unTrObj[2].getElementsByTagName('td')[1].getElementsByTagName('input')[0].src = 'images/buttons/button_continue_green.gif';
 unTrObj[1].parentNode.removeChild(unTrObj[1]);
 document.getElementById('unsubscribe_text').getElementsByTagName('li')[1].className = '';
 unsubscribePart = 1;
 document.getElementById('unsubscribe').getElementsByTagName('a')[0].style.visibility = 'hidden';
}

if (formOption == 'info') {
 infoTrObj = document.getElementById('change_info').getElementsByTagName('table')[0].getElementsByTagName('tbody')[0].getElementsByTagName('tr');
 infoTrObj[2].getElementsByTagName('td')[1].getElementsByTagName('input')[0].src = 'images/buttons/button_continue_green.gif';
 infoTrObj[1].parentNode.removeChild(infoTrObj[1]);
 
 formObj = document.getElementById('change_info').getElementsByTagName('form')[0];
 formObj.removeChild(formObj.firstChild);
 formObj.removeChild(formObj.firstChild);
 
 document.getElementById('change_info_text').getElementsByTagName('li')[1].className = '';
 
 infoPart = 1;
 document.getElementById('change_info').getElementsByTagName('a')[0].style.visibility = 'hidden';
}

document.forms['emailForm'+formOption].sender_email.value = '';
slideTop(0,document.getElementById('response_inner').offsetHeight * -1,'responseClose');
}

var slideTimer = '';
var inc = 4;

function slideTop(initY, finalY, elm) {
window.clearTimeout(slideTimer);

obj = document.getElementById('response_inner');

if (initY != finalY) {
 if (initY > finalY) {
  rate = Math.floor((finalY - initY) / inc);
 } else {
  rate = Math.ceil((finalY - initY) / inc);
 }
 
 newTop = obj.offsetTop + parseInt(rate);
 obj.style.top = newTop + 'px';
 
 slideTimer = window.setTimeout("slideTop(" + newTop + ", " + finalY + ", '"+elm+"');", 2);
} else {
 if (elm != 'undefined') {
  document.getElementById('response_slot_'+formOption).style.display = 'none';
  document.getElementById('response_wrap').style.height = '0';
  
  if (elm != 'responseClose' && elm != '-1') {
   ajax_goback(elm);
  }
 }
}
}

function slide(initY, finalY, elm) {
window.clearTimeout(slideTimer);

obj = document.getElementById('popup_middle');

if (initY != finalY) {
 if (initY > finalY) {
  rate = Math.floor((finalY - initY) / inc);
 } else {
  rate = Math.ceil((finalY - initY) / inc);
 }
 
 newHeight = obj.offsetHeight + parseInt(rate);
 obj.style.height = newHeight + 'px';
 
 slideTimer = window.setTimeout("slide(" + newHeight + ", " + finalY + ", '"+elm+"');", 2);
} else {
 if (elm != 'undefined') {
  ajax_goback(elm);
 }
}
}

/* ================
Center Functions
================ */

function popupDiv(id,option) {
obj = document.getElementById(id);
if (option == 'show') {
 obj.style.display = 'block';
 winSize = windowSize();
 screenWidth = winSize[0];
 screenHeight = winSize[1];
// divWidth = screenWidth - 80;
// divHeight = screenHeight - 60;
 divWidth = obj.offsetWidth;
 divHeight = obj.offsetHeight;
 scrollPosTop = f_scrollTop();
 divLeft = parseInt((screenWidth-divWidth)/2);
 divTop = parseInt((screenHeight-divHeight)/2);
// obj.style.width = divWidth+'px';
// obj.style.height = divHeight+'px';
 obj.style.left = divLeft+'px';
 obj.style.top = scrollPosTop+divTop+'px';

// headerHeight = document.getElementById('header').offsetHeight;
// footerHeight = document.getElementById('footer').offsetHeight;
 //alert(headerHeight+' - '+footerHeight);
// document.getElementById('imgLib_iframe').style.height = (divHeight - headerHeight - footerHeight) + 'px';

 obj.style.visibility = 'visible';
 if (typeof document.uniqueID != 'undefined') {
//  createIframeLayer(document.getElementById(id));
 }
} else {
 obj.style.visibility = 'hidden';
 obj.style.display = 'none';
 if (typeof document.uniqueID != 'undefined') {
//  removeIframeLayer(document.getElementById(id))
 }
}
}

function createIframeLayer(menu)
{
//  if (!toggleSelects('hidden'))
//  {
    var layer = document.createElement('iframe');
// Altered Code: Name the new iframe so we can delete it later by name.
    layer.setAttribute("id","");
    layer.id = menu.getAttribute("id")+"iframe";
// End Altered Code
    layer.tabIndex = '-1';
    layer.src = 'javascript:false;';
    menu.parentNode.appendChild(layer);

    layer.style.left = menu.offsetLeft + 'px';
    layer.style.top = menu.offsetTop + 'px';
    layer.style.width = menu.offsetWidth + 'px';
    layer.style.height = menu.offsetHeight + 'px';
//  }
}

function removeIframeLayer(menu)
{
//  if (!toggleSelects('visible'))
//  {
//    var layers = menu.parentNode.getElementsByTagName('iframe');
//    alert(layers.length);
//    while (layers.length > 0)
//    {
//      layers[0].parentNode.removeChild(layers[0]);
//    }
//  }

// Altered Code: Targets the named iframe so it doesn't delete ALL the iframe on the page.
var layer = document.getElementById(menu.getAttribute("id")+'iframe');
var parent = layer.parentNode;
parent.removeChild(layer);
}

function windowSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
//  window.alert( 'Width = ' + myWidth );
//  window.alert( 'Height = ' + myHeight );
  return [myWidth,myHeight];

}

function f_clientWidth() {
	return f_filterResults (
		window.innerWidth ? window.innerWidth : 0,
		document.documentElement ? document.documentElement.clientWidth : 0,
		document.body ? document.body.clientWidth : 0
	);
}
function f_clientHeight() {
	return f_filterResults (
		window.innerHeight ? window.innerHeight : 0,
		document.documentElement ? document.documentElement.clientHeight : 0,
		document.body ? document.body.clientHeight : 0
	);
}
function f_scrollLeft() {
	return f_filterResults (
		window.pageXOffset ? window.pageXOffset : 0,
		document.documentElement ? document.documentElement.scrollLeft : 0,
		document.body ? document.body.scrollLeft : 0
	);
}
function f_scrollTop() {
	return f_filterResults (
		window.pageYOffset ? window.pageYOffset : 0,
		document.documentElement ? document.documentElement.scrollTop : 0,
		document.body ? document.body.scrollTop : 0
	);
}
function f_filterResults(n_win, n_docel, n_body) {
	var n_result = n_win ? n_win : 0;
	if (n_docel && (!n_result || (n_result > n_docel)))
		n_result = n_docel;
	return n_body && (!n_result || (n_result > n_body)) ? n_body : n_result;
}

function findPos(obj) {
var curleft = curtop = 0;
if (obj.offsetParent) {
	curleft = obj.offsetLeft
	curtop = obj.offsetTop
	while (obj = obj.offsetParent) {
		curleft += obj.offsetLeft
		curtop += obj.offsetTop
	}
}
return [curleft,curtop];
}
