/***********************************************
* 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 linkset0=new Array()
var linkset1=new Array()
var linkset2=new Array()
var linkset3=new Array()
var linkset4=new Array()
var linkset5=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT

//Pocket PC Links
linkset0[0]='<a href="/?p=reviews" target="_top">Software Reviews</a>'
linkset0[1]='<a href="/?p=pics" target="_top">Image Gallery</a>'
linkset0[2]='<hr>'
linkset0[3]='<a href="/?p=ipaq" target="_top">HP iPAQ Pocket PCs</a>'
linkset0[4]='<a href="/?p=specs" target="_top">Pocket PC Specifications</a>'
linkset0[5]='<a href="/?p=compare" target="_top">Pocket PC Comparison</a>'

//Theme Main Links
linkset1[0]='<a href="/?p=newthemes" target="_top">Latest Pocket PC Themes</a>'
linkset1[1]='<a href="/?p=pop" target="_top">Popular Pocket PC Themes</a>'
linkset1[2]='<a href="/?p=comp" target="_top">Portrait Themes - Computers &amp; OS</a>'
linkset1[3]='<a href="/?p=misc" target="_top">Portrait Themes - Miscellaneous</a>'
linkset1[4]='<a href="/?p=vga" target="_top">VGA Themes</a>'
linkset1[5]='<a href="/?p=square" target="_top">Square Themes</a>'
linkset1[6]='<a href="/?p=qvga" target="_top">QVGA Themes</a>'
linkset1[7]='<a href="/?p=ow" target="_top">Orientation-Aware Themes</a>'
linkset1[8]='<a href="/?p=ext" target="_top">Extended Themes</a>'
linkset1[9]='<a href="/?p=fs" target="_top">Full Screen Themes</a>'
linkset1[10]='<a href="/?p=archives" target="_top">PPC2002 Theme Archives</a>'
linkset1[11]='<a href="/?p=ppcthemepack" target="_top">Pocket PC Theme Packs</a>'
linkset1[12]='<a href="/?p=waskins" target="_top">WisBar Advance Skins</a>'
linkset1[13]='<hr>'
linkset1[14]='<a href="/?p=sp" target="_top">Smartphone Non-QVGA Themes</a>'
linkset1[15]='<a href="/?p=spqvga" target="_top">Smartphone QVGA Themes</a>'
linkset1[16]='<a href="/?p=spthemepack" target="_top">Smartphone Theme Packs</a>'
linkset1[17]='<hr>'
linkset1[18]='<a href="/?p=tf3d" target="_top">TouchFLO 3D Themes</a>'
linkset1[19]='<hr>'
linkset1[20]='<a href="/?p=wm5view" target="_top">WM5 Theme Preview</a>'
linkset1[21]='<a href="/?p=faq" target="_top">Frequently Asked Questions</a>'

//Guide Links
linkset2[0]='<a href="/?p=articles" target="_top">Articles and Reviews</a>'
linkset2[1]='<a href="/?p=benchmark" target="_top">Spb Benchmark Results</a>'
linkset2[2]='<a href="/?p=storagetests" target="_top">Storage Card Benchmarks</a>'
linkset2[3]='<hr>'
linkset2[4]='<a href="/?p=htc" target="_top">HTC Codename Table</a>'
linkset2[5]='<a href="/?p=phones" target="_top">Windows Mobile Smartphones</a>'

//Free Graphics
linkset3[0]='<a href="/?p=emoticons" target="_top">Emoticons</a>'
linkset3[1]='<hr>'
linkset3[2]='<a href="/?p=graphics" target="_top">Web Graphics</a>'
linkset3[3]='<a href="/?p=icons" target="_top">Web Icons</a>'
linkset3[4]='<a href="/?p=wp" target="_top">Free Wallpapers</a>'
linkset3[5]='<a href="/?p=t610" target="_top">Phone Downloads</a>'
linkset3[6]='<hr>'
linkset3[7]='<a href="/?p=banners" target="_top">Banners &amp; Logos</a>'

//Web Section
linkset4[0]='<a href="/?p=colors" target="_top">Web Colors</a>'
linkset4[1]='<a href="/?p=bgnd" target="_top">Webpage Backgrounds</a>'
linkset4[2]='<hr>'
linkset4[3]='<a href="/?p=asp" target="_top">ASP Guides</a>'
linkset4[4]='<a href="/?p=aspx" target="_top">ASP.Net Guides</a>'
linkset4[5]='<a href="/?p=jsp" target="_top">JSP Guides</a>'
linkset4[6]='<a href="/?p=js" target="_top">Javascript &amp; CSS Guides</a>'

//Misc Section
linkset5[0]='<a href="/?p=desktop" target="_top">Desktop Software</a>'
linkset5[1]='<a href="/?p=apps" target="_top">Pocket PC Software</a>'
linkset5[2]='<a href="/?p=spapps" target="_top">Smartphone Software</a>'

var menuwidth='200px' //default menu width
var menubgcolor='white'  //menu bgcolor
var disappeardelay=200  //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 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) {
	return false; //disable this buggy function
	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