//Contents for TEMPLATES
var menu1=new Array()
menu1[0]='<a href="http://www.sellyourbusinessnow.com.au/resources/templates/Confidentiality_Agreement_Template.pdf" target="_blank">Confidentiality Agreement</a>'
menu1[1]='<a href="http://www.sellyourbusinessnow.com.au/resources/templates/Business_for_sale_Checklist.pdf" target="_blank">Business for sale Checklist</a>'
menu1[2]='<a href="http://www.sellyourbusinessnow.com.au/resources/templates/Due_Diligence_Checklist.pdf" target="_blank">Due Diligence Checklist</a>'
menu1[3]='<a href="http://www.sellyourbusinessnow.com.au/resources/templates/Sample_One_Page_Fact_Sheet.pdf" target="_blank">One Page Fact Sheet</a>'
menu1[4]='<a href="http://www.sellyourbusinessnow.com.au/infokit/free_info_kit.html">FREE Information Kit</a>'
//Contents for SOFTWARE PRODUCTS
var menu2=new Array()
menu2[0]='<a href="http://www.sellyourbusinessnow.com.au/software/sbp/sellbiz_pro_professional.html">SellBiz Pro Professional</a>'
menu2[1]='<a href="http://www.sellyourbusinessnow.com.au/software/sbp/sellbiz_pro_consultants.html">SellBiz Pro Consultants</a>'
menu2[2]='<a href="http://www.sellyourbusinessnow.com.au/software/imw/information_memorandum_writer.html">Information Memorandum</a>'
//menu2[3]='<a href=submission/>Dynamic Submission</a>'
//menu2[4]='<a href=webrank/>Web Ranking</a>'
//menu2[5]='<a href=emailvalidator.html>Email Validator</a>'
//menu2[6]='<a href=internet_marketing_suite/index.html>Internet Marketing Suite</a>'
//menu2[7]='<a href=http://www.dynamicsitestats.com>Site Stats</a>'
//menu2[8]='<a href=http://www.dynamicseo.com>Dynamic SEO</a>'
//menu2[9]='<a href=http://www.apexpacific.com/download.html>Free 30 Days Trial</a>'
//menu2[10]='<a href=system_requirement.html>System Requirements</a>'
//Contents for Books
var menu3=new Array()
menu3[0]='<a href="http://www.sellyourbusinessnow.com.au/books/sell_your_business_the_practical_guide.html">Sell Your Business Book</a>'
//menu3[1]='<a href=search_engine_optimization_report.html>SEO Express Report</a>'
//menu3[2]='<a href=http://www.apexreach.com/pay-per-click-ppc-management.html>Pay Per Click Management</a>'
//menu3[3]='<a href=internet_marketing_training_college.html>Internet Marketing Training</a>'
//menu3[4]='<a href=internet_marketing_business_opportunity.html>Internet Business Opportunity</a>'
//Contents for ADVERTISING
var menu4=new Array()
menu4[0]='<a href="http://www.sellyourbusinessnow.com.au/advertising/diy_business_sale_kit.html">DIY Business Sale Kit</a>'
//menu4[1]='<a href=../software/sbp/sellbiz_pro_consultants.html>SellBiz Pro Consultants</a>'
//menu4[2]='<a href=../software/imw/information_memorandum_writer.html>Information Memorandum Writer</a>'
//menu4[3]='<a href=http://www.apexpacific.com/pricelist.html>Price List</a>'
//menu4[4]='<a href=http://www.apexpacific.com/offer.asp>Special Promotion</a>'
//menu4[5]='<a href=order/agreement_and_policy.html>Agreement & Policy</a>'
//Contents for CONTACT
var menu5=new Array()
menu5[0]='<a href="http://www.sellyourbusinessnow.com.au/aboutus.html">About Us</a>'
menu5[1]='<a href="http://www.business-broker.com.au" target="_blank">Business Brokers</a>'
menu5[2]='<a href="http://www.mauscoaching.com.au" target="_blank">Business Coaches</a>'
menu5[3]='<a href="http://www.sellyourbusinessnow.com.au/contact.html">Contact Us</a>'
//menu5[4]='<a href=download2.html#DWR>Web Ranking</a>'
//menu5[5]='<a href=download2.html#DEV>Email Validator</a>'
//Contents for HELP
var menu6=new Array()
menu6[0]='<a href=http://www.apexpacific.com/knowledgebase/>Knowledge Base</a>'
menu6[1]='<a href=help/support-center.html>Support Center</a>'
menu6[2]='<a href=help/sales-inquiry.html>Sales Inquiry</a>'
menu6[3]='<a href=help/support-policy.html>Support Policy</a>'
//Contents for RESOURCES
var menu7=new Array()
menu7[0]='<a href=resources/newsletter_archive.html>Newsletter Archive</a>'
menu7[1]='<a href=http://www.apexpacific.com/forum>Discussion Forum</a>'
menu7[2]='<a href=resources/how_to_drive_traffic_to_your_web_site.html>Drive Traffic to your site</a>'
menu7[3]='<a href=resources/how_to_keep_customers_coming_back.html>Customer Loyalty</a>'
menu7[4]='<a href=resources/stay_on_top_of_customer.html>Stay on top of the Competition</a>'
menu7[5]='<a href=resources/google_adwords_campaign.html>3 Ways to Maximize PPC Campaigns</a>'
menu7[6]='<a href=http://www.mauscoaching.com.au>Business Coaching</a>'
menu7[7]='<a href=http://www.business-broker.com.au>Business Broker</a>'
menu7[8]='<a href=glossary.html>Glossary</a>'
menu7[9]='<a href=resource.html>Resources</a>'
//Contents for CLIENTS
var menu8=new Array()
menu8[0]='<a href=clients/case_studies_apex_pacific.html>Case Studies</a>'
menu8[1]='<a href=clients/index.html>Client List</a>'
menu8[2]='<a href=testimonial.html>Testimonials</a>'
menu8[3]='<a href=feedback.html>Submit Feed back</a>'
menu8[4]='<a href=send_your_story.html>Submit Story</a>'
//Contents for PARTNERS
var menu9=new Array()
menu9[0]='<a href=reseller/referralsignup.html>Reseller Sign Up</a>'
menu9[1]='<a href=reseller/login.asp>Reseller Login</a>'
menu9[2]='<a href=partners/consultant_network.html>Consultant Network</a>'
menu9[3]='<a href=partners/outsource_search_engine_optimization.html>Internet Business Partner</a>'

var menuwidth='165px' //default menu width
var menubgcolor='lightyellow'  //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="-500px"
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 topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
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){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
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")
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 true
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