

/***********************************************
* Pop-it menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var defaultMenuWidth="360px" //set default menu width.

var linkset=new Array()

linkset[0]='<div class="dropheader"><table align=center><tr><td valign=middle><img src="images/trklg.gif" border=0></td><td class="dropheader" valign=middle><b>FREE Shipping</b> on Multiple Tube Orders</td><td></td></tr></table></div>'
linkset[0]+='<table width=100% cellpadding=0 cellspacing=0><tr><td><div class="ltborder"><a href="http://www.ecresearchcorp.com/shoppingcart.asp?ProductCode=TRI-779&qty.TRI-779=4"><img src="images/4t.gif" border=0 align=right><br><b>Order 4 Tubes</b> - Save $59.85 <br><span>Per Tube $64.99 - <b>Final cost $259.96</b></span></a></div></td></tr></table>'
linkset[0]+='<table width=100% cellpadding=0 cellspacing=0><tr><td><div class="ltborder"><a href="http://www.ecresearchcorp.com/shoppingcart.asp?ProductCode=TRI-779&qty.TRI-779=3"><img src="images/3t.gif" border=0 align=right><br><b>Order 3 Tubes</b> - Save $29.91<br><span>Per Tube $69.98 - <b>Final cost $209.94</b></span></a></div></td></tr></table>'
linkset[0]+='<table width=100% cellpadding=0 cellspacing=0><tr><td><div class="ltborder"><a href="http://www.ecresearchcorp.com/shoppingcart.asp?ProductCode=TRI-779&qty.TRI-779=2"><img src="images/2t.gif" border=0 align=right><br><b>Order 2 Tubes</b> - Save $9.94<br><span>Per Tube $74.98 - <b>Final cost $149.96</b></span></a></div></td></tr></table>'
linkset[0]+='<table width=100% cellpadding=0 cellspacing=0><tr><td><div class="ltborder"><a href="http://www.ecresearchcorp.com/shoppingcart.asp?ProductCode=TRI-779&qty.TRI-779=1"><img src="images/1t.gif" border=0 align=right><br><b>Order 1 Tubes</b> - Save $0.00<br><span><b>Final cost $79.95</b></span></a></div></td></tr></table>'
linkset[1]='<div class="dropheader2"><table align=center cellpadding=4 cellspacing=8><tr><td valign=middle><p><b>60 DAY MONEY BACK GUARANTEE</b></p>We offer our customers a 100% satisfaction guarantee! We are so confident that you will be pleased with the effectiveness of our products that your purchase is backed by a 60-Day money back guarantee.<br><br>If you are not completely satisfied with any of our products, simply contact EC Research Customer Service within 60 days of the purchase date to obtain a RMA number and return instructions. For detail information about our return policy please refer to our website or contact a Sales Representative at 877-311-7546.</td></tr></table></div>'
linkset[2]='<div class="dropheader2"><table align=center cellpadding=4 cellspacing=8><tr><td valign=middle>TriLASTIN-CF features two, exclusive technologies, LipoTrisome&#0153; Active Complex and SDDS&#0153; - Sequenced Diffusion Delivery System, that work in synergy to target cellulite at the source.<br><br>LipoTrisome&#0153; Active Complex is a proprietary compound of 3 fat-burning ingredients that use the body&quot;s natural mechanisms to help metabolize fat, and progressively replace cellulite with firm, elastic tissue. LipoTrisome&#0153; also aids in the prevention of future cellulite by improving water distribution and drainage in cellulite-prone areas.<br><br>Our exclusive SDDS&#0153; - Sequenced Diffusion Delivery System - creates a protective, invisible skin patch while providing a sequenced release of functional ingredients to the skin. SDDS&#0153; promotes optimal efficacy by sustaining the availability of key ingredients, allowing the skin to absorb them over an extended period of time.<br><br>TriLASTIN-CF&#0174; also features a unique blend of Essential Botanical Oils and caffeine to help stimulate skin metabolism, anti-oxidants to combat free radicals. Additionally, a powerful amino acid complex allows the natural regeneration of Collagen and Elastin to strengthen and restore the weakened connective tissues in Cellulite prone areas.</td></tr></table></div>'
linkset[3]='<div class="dropheader2"><table align=center cellpadding=4 cellspacing=8><tr><td valign=middle><b>TriLASTIN Stretch Mark Cream</b> was Featured on<br><b>The Tyra Banks Show</b> - Air Date: April 2006<br><b>Show Entitled:</b> “All About the Booty”<br><b>Guests:</b> Dr. Robert Rey From Dr. 90210</td></tr></table></div>'
linkset[4]='<div class="dropheader2"><table align=center cellpadding=4 cellspacing=8><tr><td valign=middle>TriLASTIN-SR&#34;s collagen-enhanced filling microsphere technology provides rapid visible change in deeply furrowed tissue. The microspheres are deposited deeply into the furrows where they absorb the ambient moisture within the skin, causing them and the surrounding tissue to swell with collagen-rich hydration. This effectively reduces the depth and length of the furrows by actually filling them in. Additionally, the filling microspheres also maintain the skin&#34; water capital by providing stored hydration, releasing collagen-rich moisture back into the surrounding tissue as it dehydrates. <b>TriLASTIN-SR is the only stretch mark product currently employing this advanced technology</b>.</td></tr></table></div>'
linkset[5]='<div class="dropheader2"><table align=center cellpadding=4 cellspacing=8><tr><td valign=middle>TriLASTIN-SR&#34;s Virtual Patch&#153; technology utilizes an association of collagen, serine and high weight molecules that are capable of forming a filmogenic micro network which functions as a <b>virtual skin patch</b>. Virtual Patch&#153; technology provides and maintains long-lasting, optimum hydration within the skin while also employing serine as a transfer agent to provide deep and sustained penetration of TriLASTIN-SR&#34;s bioactive components. <b>TriLASTIN-SR is the only stretch mark product currently employing this advanced technology</b>.</td></tr></table></div>'
linkset[6]='<div class="dropheader2"><table align=center cellpadding=4 cellspacing=8><tr><td valign=middle>SDDS&#0153; - Sequenced Diffusion Delivery System - creates a protective, invisible skin patch while providing a sequenced release of functional ingredients to the skin. <br><br>SDDS&#0153; also promotes optimal efficacy by sustaining the availability of key ingredients, allowing the skin to absorb them over an extended period of time.</td></tr></table></div>'
linkset[7]='<div class="dropheader2"><table align=center cellpadding=4 cellspacing=0><tr><td valign=middle><img src="http://www.ecresearchcorp.com/images/popup23/upgrade_learn_more_1.gif"></td></tr></table></div>'
linkset[8]='<div class="dropheader2"><table align=center cellpadding=4 cellspacing=0><tr><td valign=middle><img src="http://www.ecresearchcorp.com/images/popup23/upgrade_learn_more_2.gif"></td></tr></table></div>'
linkset[9]='<div class="dropheader2"><table align=center cellpadding=4 cellspacing=0><tr><td valign=middle><img src="http://www.ecresearchcorp.com/images/popup23/upgrade_learn_more_3.gif"></td></tr></table></div>'
linkset[10]='<div class="dropheader2"><table align=center cellpadding=4 cellspacing=0><tr><td valign=middle><img src="http://www.ecresearchcorp.com/images/popup23/bc_upgrade_learn_more_1.gif"></td></tr></table></div>'
linkset[11]='<div class="dropheader2"><table align=center cellpadding=4 cellspacing=0><tr><td valign=middle><img src="http://www.ecresearchcorp.com/images/popup23/bc_upgrade_learn_more_2.gif"></td></tr></table></div>'
linkset[12]='<div class="dropheader2"><table align=center cellpadding=4 cellspacing=0><tr><td valign=middle><img src="http://www.ecresearchcorp.com/images/popup23/bc_upgrade_learn_more_3.gif"></td></tr></table></div>'
linkset[13]='<div class="dropheader2"><table align=center cellpadding=4 cellspacing=0><tr><td valign=middle><img src="http://www.ecresearchcorp.com/images/popup23/bcs_sys_2_upsell_qty1.gif"></td></tr></table></div>'
linkset[14]='<div class="dropheader2"><table align=center cellpadding=4 cellspacing=0><tr><td valign=middle><img src="http://www.ecresearchcorp.com/images/popup23/bcs_sys_2_upsell_qty2.gif"></td></tr></table></div>'
linkset[15]='<div class="dropheader2"><table align=center cellpadding=4 cellspacing=0><tr><td valign=middle><img src="http://www.ecresearchcorp.com/images/popup23/bcs_sys_2_upsell_qty3.gif"></td></tr></table></div>'
linkset[16]='<div class="dropheader2"><table align=center cellpadding=4 cellspacing=0><tr><td valign=middle><img src="http://www.stretchmarks.com/images/popup23/ht_sr_upsell_qty1.gif"></td></tr></table></div>'
linkset[17]='<div class="dropheader2"><table align=center cellpadding=4 cellspacing=0><tr><td valign=middle><img src="http://www.stretchmarks.com/images/popup23/ht_sr_upsell_qty2.gif"></td></tr></table></div>'
linkset[18]='<div class="dropheader2"><table align=center cellpadding=4 cellspacing=0><tr><td valign=middle><img src="http://www.stretchmarks.com/images/popup23/ht_sr_upsell_qty3.gif"></td></tr></table></div>'
linkset[19]='<div class="dropheader2"><table align=center cellpadding=4 cellspacing=0><tr><td valign=middle><img src="http://www.ecresearchcorp.com/images/popup23/2011_SR_TVPROMO.gif"></td></tr></table></div>'


var ie5=document.all && !window.opera
var ns6=document.getElementById

if (ie5||ns6)
document.write('<div id="popitmenu" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)"></div>')

function iecompattest(){
return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
}

function showmenu(e, which, optWidth){
if (!document.all&&!document.getElementById)
return
clearhidemenu()
menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu")
menuobj.innerHTML=which
menuobj.style.width=(typeof optWidth!="undefined")? optWidth : defaultMenuWidth
menuobj.contentwidth=menuobj.offsetWidth
menuobj.contentheight=menuobj.offsetHeight
eventX=ie5? event.clientX : e.clientX
eventY=ie5? event.clientY : e.clientY
//Find out how close the mouse is to the corner of the window
var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY
//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX-menuobj.contentwidth+"px" : window.pageXOffset+eventX-menuobj.contentwidth+"px"
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.style.left=ie5? iecompattest().scrollLeft+eventX+"px" : window.pageXOffset+eventX+"px"
//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.style.top=ie5? iecompattest().scrollTop+eventY-menuobj.contentheight+"px" : window.pageYOffset+eventY-menuobj.contentheight+"px"
else
menuobj.style.top=ie5? iecompattest().scrollTop+event.clientY+"px" : window.pageYOffset+eventY+"px"
menuobj.style.visibility="visible"
return false
}

function contains_ns6(a, b) {
//Determines if 1 element in contained in another- by Brainjar.com
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.style.visibility="hidden"
}

function dynamichide(e){
if (ie5&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
delayhide=setTimeout("hidemenu()",500)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}

if (ie5||ns6)
document.onclick=hidemenu



