var amnu=0,amnu2,amn2=0,amtm=0,amtr=0,amtr2,amX,amY,
amm=['','building/','promotion/','income/','advanced/','tools/','resources/','building/','building/','building/','building/','building/','building/','building/','building/','promotion/','income/','advanced/','tools/','tools/','resources/'],
am=[['index','Home Page','1-page-guide','One-page Guide','map','Site Map','glossary','Glossary','articles/index','Articles','downloads/index','Free Downloads','contact','Contact Us'],
 ['build-website','Overview','content','7 Site Content','search-engine-optimization','8 Search Engine Optimization','web-design','9 Web Design','html-codes','10HTML Codes','web-graphics','11Web Graphics','domain-names','12Domain Names','web-hosting-services','13Web Hosting','website-builders','14Website Builders'],
 ['website-promotion','Overview','search-engines','15Search Engines','directories','Web Directories','pay-per-click','PPC Advertising','email-list','Optin Email List'],
 ['building-income','Overview','affiliate-programs','Affiliate Programs','adsense','Google AdSense','selling-on-internet','Selling on the Internet','free-merchant-accounts','16Free Merchant Accounts'],
 ['advanced','Overview','style-sheets','Cascading Style Sheets (CSS)','html-frames','HTML Frames','javascript-code','17JavaScript','php','PHP','cgi-scripts','CGI Scripts','htaccess-file','.htaccess file'],
 ['web-tools','Overview','submission','Free Website Submission','web-search','Advanced Web Search','site-search','18Site Search Engine','secure-html','19Secure HTML'],
 ['web-resources','Overview','html-tutorials','HTML Tutorials','html-editors','HTML Editors','graphics-editors','Graphics Editors','website-builders','Web Site Builders','web-templates','20Web Page Templates','inexpensive-web-hosting','Inexpensive Web Hosting','books','Books on Web Designing','web-developer-news','Web Developer News'],
 ['niche','Optimal Niche','keywords','Choosing Keywords','competitors','Analyzing Competitors','structure','Site Structure'],
 ['body-copy','Body Copy','meta-tags','Meta Tags','web-crawlers','Controlling Web Crawlers','seo-news','Latest SEO News'],
 ['web-page-design','Web Page Design','web-page-backgrounds','Web Page Backgrounds','web-fonts','Web Fonts','website-navigation','Web Site Navigation'],
 ['html-tags','Basic HTML Tags','html-validators','HTML Validators'],
 ['web-graphics-formats','Web Graphics Formats','web-graphics-tips','Web Graphics Tips','banners','Free Web Banners'],
 ['domain-registration','Domain Registration'],
 ['free-web-hosting','Free Website Hosting','multiple-domain-hosting','Multiple Domain Hosting','ftp-software','FTP Software'],
 ['free-website-builders','Free Website Builders','website-builders2','Business Website Builders'],
 ['search-engine-submissions','Search Engine Submissions','collection-search-engines','Collection of Free Search Engines','link-popularity','Website Link Popularity'],
 ['credit-card-processing','Free Credit Card Processing'],
 ['javascript-examples','JavaScript Examples'],
 ['sshelp','Site Search Help'],
 ['secure-html2','Online Service'],
 ['flash-templates','Flash Website Templates','corporate-templates','Corporate Identity and Logo Design']];
function amAE(obj,ev,fn){
 if(typeof obj[ev]=='function'){
	var old=obj[ev];
	obj[ev]=function(){
		old();
		return fn();
	}
 }
 else obj[ev]=fn;
}
function amGE(id){return document.getElementById(id);}
function amPos(t){
 amX=amY=0;
 if(t.offsetParent){do{amX+=t.offsetLeft;amY+=t.offsetTop;}while(t=t.offsetParent);}
 else if(t.x){amX=t.x;amY=t.y;}
}
function amInit(){
 var all=amGE('mnu1').getElementsByTagName('a');
 for(var i=0;i<all.length;++i){amAE(all[i],'onmouseover',amS);amAE(all[i],'onmouseout',amH);}
}
function amS(){
 amF();amHH();amtr=this;
 for(var n=6;n>0&&amtr.href.indexOf(am[n][0])<0;--n);
 amtr.id='over';
 amnu=amGE('dmenu'+n).style;
 amPos(this);amnu.left=amX-1+'px';amnu.top=amY+this.offsetHeight+'px';
 amnu.display='block';
}
function amH(){amF();amtm=setTimeout('amHH()',300);}
function amF(){if(amtm)clearTimeout(amtm);amtm=0;}
function amF2(n,t){
 if(amn2&&n!=amn2){amn2=0;amnu2.display='none';amtr2.id='';}
 if(n){
	amnu2=amGE('dmenu'+(amn2=n)).style;
	amPos(amtr2=t);amnu2.left=amX+t.offsetWidth+'px';amnu2.top=amY-1+'px';
	amnu2.display='block';t.id='over2';
 }
}
function amHH(){
 if(amnu)amnu.display='none';
 if(amn2){amnu2.display='none';amtr2.id='';}
 if(amtr) amtr.id='';
 amtr=amnu=amn2=amtm=0;
}
function amPF(){
 amGE("main").style.height=Math.max(amGE("cont").offsetHeight,amGE("side").offsetHeight)+'px';
}
if(document.getElementById){
 amPF();amGE("ftr").style.visibility="visible";
 amAE(window,'onresize',amPF);
 amAE(window,'onload',function(){var i,ii=document.getElementsByTagName("iframe");for(i=0;i<ii.length;++i) if(ii[i].className=='w100')ii[i].style.width='100%';amPF();});
 var i,p='',ii=document.getElementsByTagName("link");
 for(i=0;i<ii.length;++i)
	if((a=ii[i].href.indexOf('def.css'))>=0){p=ii[i].href.substring(0,a);break;}
 for(i=0;i<am.length;++i){
	var t,n;
	document.write("<div id=dmenu",i," onMouseOver='amF()' onMouseOut='amH()' style='position:absolute;display:none;z-index:1;background-color:#000'>");
	for(var j=0;j<am[i].length;j+=2){
		document.write("<div class=dm");
		n=0;t=am[i][j+1];
		if(i<7){
			if(n=parseInt(t.substring(0,2)))t=t.substring(2);else n=0;
			document.write(" onMouseOver='amF2(",n,",this)'");
		}
		document.write("><a href='",p,amm[i],am[i][j],".shtml'>");
		if(n)document.write(" <b style='float:right'>&raquo;</b>");
		document.write(t,"</a></div>");
	}
	document.write("</div>");
 }
 amInit();
}
