

/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/


var sales=new Array()
sales[0]='<a href="rep_sales_summary.php" class="dd_link">Summary</a>'
sales[1]='<img src="images/blank.gif" height="1" width="1">'
sales[2]='<a href="rep_sales_day.php" class="dd_link">by Day</a>'
sales[3]='<a href="rep_sales_month.php" class="dd_link">by Month</a>'
sales[4]='<img src="images/blank.gif" height="1" width="1">'
sales[5]='<a href="rep_sales_country.php" class="dd_link">by Country</a>'
sales[6]='<a href="rep_sales_state.php" class="dd_link">by State</a>'
sales[7]='<a href="rep_sales_city.php" class="dd_link">by City</a>'
sales[8]='<a href="rep_sales_zip.php" class="dd_link">by Zip Code</a>'
sales[9]='<img src="images/blank.gif" height="1" width="1">'
sales[10]='<a href="rep_sales_cat.php" class="dd_link">by Category</a>'
sales[11]='<a href="rep_sales_coupon.php" class="dd_link">by Coupon</a>'
sales[12]='<a href="rep_sales_amount.php" class="dd_link">by Amount</a>'
sales[13]='<a href="rep_sales_transaction.php" class="dd_link">by Transaction</a>'


var products=new Array()
products[0]='<a href="rep_top_sellers.php" class="dd_link">Top Sellers</a>'
products[1]='<a href="rep_bot_sellers.php" class="dd_link">Bottom Sellers</a>'
products[2]='<a href="rep_prod_all_items.php" class="dd_link">All Items Sold</a>'

	
var performance=new Array()
performance[0]='<a href="rep_perf_day.php" class="dd_link">by Day</a>'
performance[1]='<a href="rep_perf_month.php" class="dd_link">by Month</a>'
		
var settings=new Array()
settings[0]='<a href="edit_account.php" class="dd_link">Account</a>'
settings[1]='<a href="pass_change.php" class="dd_link">Password</a>'
settings[2]='<a href="categories.php" class="dd_link">Categories</a>'
settings[3]='<a href="edit_products.php" class="dd_link">Product</a>'
settings[4]='<a href="edit_images.php" class="dd_link">Image</a>'
settings[5]='<a href="edit_email.php" class="dd_link">Email Lists</a>'
settings[6]='<a href="order_import.php" class="dd_link">Import History</a>'
settings[7]='<a href="mod_dl.php" class="dd_link">Module Setup</a>'


var help=new Array()
help[0]='<a href="about.php" class="dd_link">About</a>'
help[1]='<a href="faq.php" class="dd_link">FAQ</a>'
help[2]='<a href="mod_install.php" class="dd_link">Setup</a>'
help[3]='<a href="features.php" class="dd_link">Features</a>'
help[4]='<a href="pricing.php" class="dd_link">Pricing</a>'
help[5]='<a href="contact.php" class="dd_link">Contact</a>'
help[6]='<a href="reseller.php" class="dd_link">Resellers</a>'

var menuwidth='85px' //default menu width
var menubgcolor='#4b4b4b'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left") - 5
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu
