/***********************************************
* 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
***********************************************/

//Contents for menu 1
var menu1=new Array()

//Contents for menu 2
var menu2=new Array()
menu2[0]='<a href="services.html#tm">Technical Marketing</a>'
menu2[1]='<a href="services.html#tc">Training/Courseware</a>'
menu2[2]='<a href="services.html#wd">Web Development</a>'
menu2[3]='<a href="services.html#pm">Web Promotion</a>'

//Contents for menu 3: Pricing
var menu3=new Array()
menu3[0]='<a href="pricing.html">Pricing</a>'


//Contents for menu 4: Portfolio
var menu4=new Array()
menu4[0]='<a href="portfolio.html">Portfolio</a>'


//Contents for menu 5: Resources
var menu5=new Array()
menu5[0]='<a href="resources.html">Resource</a>'

//Contents for menu 6
var menu6=new Array()
menu6[0]='<a href="mailto:info@2neat.com">Contact Us</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 editing 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 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 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


function prtDate() {
 var day,mo,yr;
 var mo2;
 var Today = new Date();
 day = Today.getDate();
 mo = Today.getMonth();
 yr = Today.getYear();
 if(yr<2000) yr=yr+1900;
 if(mo == 0)
        mo2 = "January"
 if(mo == 1)
        mo2 = "February"
 if(mo == 2)
        mo2 = "March"
 if(mo == 3)
        mo2 = "April"
 if(mo == 4)
        mo2 = "May"
 if(mo == 5)
        mo2 = "June"
 if(mo == 6)
        mo2 = "July"
 if(mo == 7)
        mo2 = "August"
 if(mo == 8)
        mo2 = "September"
 if(mo == 9)
        mo2 = "October"
 if(mo == 10)
        mo2 = "November"
 if(mo == 11)
        mo2 = "December"
 
 self.document.write("<b><font size=-1>" + mo2 + "  " + day + ", " + yr + "</font></b>");
}

function prtThought() {
 var thought = " ";
 var Today = new Date();
 var day = Today.getDate();
 if(day == 1)
        thought = "Dare to dream";
 if(day == 2)
        thought = "We put the thought of all that we love into all that we make<br>-- JRR Tolkein";
 if(day == 3)
        thought = "When was the last time you played a game?";
 if(day == 4)
        thought = "Now is the moment of power";
 if(day == 5)
        thought = "Art is the index to life<br>-- Orin Skinner";
 if(day == 6)
        thought = "The proof is not in the pudding.  It is in the eating.";
 if(day == 7)
        thought = "Faster and cheaper, yes.  But is it really better?";
 if(day == 8)
        thought = "Cope with change by helping create it.";
 if(day == 9)
        thought = "Little things affect little minds.<br>-- Benjamin Disraeli";
 if(day == 10)
        thought = "Seize the day";
 if(day == 11)
        thought = "Money's only value is our belief in it";
 if(day == 12)
        thought = "Reading burns more calories than watching television";
 if(day == 13)
        thought = "Great works of art conceal the toil involved in their creation.<br>-- Orin Skinner";
 if(day == 14)
        thought = "Great achievements involve great risk";
 if(day == 15)
        thought = "Spend some time alone every day<br>-- Dalai Lama";
 if(day == 16)
        thought = "Share your knowledge";
 if(day == 17)
        thought = "Nature always prevails in the end";
 if(day == 18)
        thought = "Sometimes silence is the best answer";
 if(day == 19)
        thought = "The world is what you think it is";
 if(day == 20)
        thought = "You can if you think you can";
 if(day == 21)
        thought = "Business is people";
 if(day == 22)
        thought = "Nothing goes up forever";
 if(day == 23)
        thought = "Always be honest -- there's less to remember";
 if(day == 24)
        thought = "All realities begin as dreams";
 if(day == 25)
        thought = "It is better to be an author than a critic";
 if(day == 26)
        thought = "Adversity makes the goal all the sweeter";
 if(day == 27)
        thought = "Growth is uncomfortable; especially for those who aren't doing it";
 if(day == 28)
        thought = "Faith begins where science ends";
 if(day == 29)
        thought = "No one, on their deathbed, ever wishes they had spent more time at the office";
 if(day == 30)
        thought = "Believing is seeing<br>-- JC Husfelt";
 if(day == 31)
        thought = "You always get what you resist";

 self.document.write(thought);
}
