function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function buildPage(n,b) {

document.write("<head>");
document.write("<title>Aspen Media and Market Research</title>");
document.write("<link rel=\"STYLESHEET\" type=\"text/css\" href=\"/include/style.css\">");
document.write("</head>");

document.write("<body onLoad=\"MM_preloadImages(\'/images/nav/feedback_on.gif\',\'/images/nav/legal_on.gif\',\'/images/nav/privacy_on.gif\',\'/images/nav/sitemap_on.gif\',\'/images/nav/home_on.gif\',\'/images/nav/jobs_on.gif\',\'/images/nav/whatsnew_on.gif\',\'/images/nav/aspendiff_on.gif\',\'/images/nav/services_on.gif\',\'/images/nav/aboutus_on.gif\')\">");

document.write("<script language=\"JavaScript1.2\">mmLoadMenus();</script>");

document.write("<div align=\"center\"><img src=\"/images/spacer.gif\" width=17 height=50 border=0 alt=\"\"></div>");

document.write("<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=696 align=\"center\" bgcolor=\"FFF6DC\">");
document.write("<tr bgcolor=\"#402135\">");
document.write("<td>&nbsp;</td>");

document.write("<td colspan=\"2\"><img src=\"/images/spacer.gif\" width=17 height=1 border=0 alt=\"\">");

// TOP NAV
str1 = new Array(6);
str1[0]="";
str1[1]=("<a href=\"/aboutus.html\" onMouseOver=\"MM_swapImage(\'about\',\'\',\'/images/nav/aboutus_on.gif\',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"/images/nav/aboutus_off.gif\" alt=\"\" name=\"about\" width=75 height=28 border=0 id=\"about\"></a>");
str1[2]=("<a href=\"/services/index.html\" onMouseOver=\"MM_swapImage(\'services\',\'\',\'/images/nav/services_on.gif\',1);MM_showMenu(window.mm_menu_0615221037_0,3,28,null,\'services\')\" onMouseOut=\"MM_swapImgRestore();MM_startTimeout();\"><img src=\"/images/nav/services_off.gif\" alt=\"\" name=\"services\" width=78 height=28 border=0 id=\"services\"></a>");
str1[3]=("<a href=\"/aspendifference.html\" onMouseOver=\"MM_swapImage(\'aspen\',\'\',\'/images/nav/aspendiff_on.gif\',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"/images/nav/aspendiff_off.gif\" alt=\"\" name=\"aspen\" width=146 height=28 border=0 id=\"aspen\"></a>");
str1[4]=("<a href=\"/news.html\" onMouseOver=\"MM_swapImage(\'new\',\'\',\'/images/nav/news_on.gif\',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"/images/nav/news_off.gif\" alt=\"\" name=\"new\" width=65 height=28 border=0 id=\"new\"></a>");
str1[5]=("<a href=\"/careers.html\" onMouseOver=\"MM_swapImage(\'jobs\',\'\',\'/images/nav/jobs_on.gif\',1)\" onMouseOut=\"MM_swapImgRestore()\"><img src=\"/images/nav/jobs_off.gif\" alt=\"\" name=\"jobs\" width=98 height=28 border=0 id=\"jobs\"></a>");


		s = str1[n];
		l=s.length;
		i=s.indexOf("off.gif");
		if(i>=0) {
			str1[n]=s.substring(0,i)+"on.gif"+s.substring(i+7,l);

	}
	for(i=0;i<str1.length;i++) {
		document.write(str1[i]);
	}

document.write("</td>");

document.write("</tr>");
document.write("<tr>");
document.write("<td><img src=\"/images/grey_yellbar.gif\" width=151 height=6 border=0 alt=\"\"></td>");
document.write("<td colspan=\"2\"><img src=\"/images/main_yellbar.gif\" width=545 height=6 border=0 alt=\"\"></td>");
document.write("</tr>");
document.write("<tr>");

if(n==0){
document.write("<td rowspan=\"2\" bgcolor=\"#C1C8C9\" valign=\"top\">");
}
else{
document.write("<td rowspan=\"3\" bgcolor=\"#C1C8C9\" valign=\"top\">");
}
document.write("<a href=\"/home.html\"><img src=\"/images/logo_inside.gif\" width=151 height=207 border=0 alt=\"\"></a>");

// CONTACT US PAGE SIDENAV
if(n==0 && b==1){
document.write("<p>&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><table cellpadding=0 cellspacing=0 valign=bottom><tr><td style=padding-left:15px;><p><b>Boulder Office</b><br>5505 Central Avenue<br>Boulder, CO 80301<br>Tel: (303) 786-9500<br>Toll-free: (800) 853-2240<br>Fax: (303) 447-9029<br><a href=\"/boulderoffice.html\" style=\"line-height:12px; color: #333399;\">Boulder Office Directions</a></p></td></tr></table>");
}

document.write("</td>");
document.write("<td colspan=\"2\">");
document.write("<table cellpadding=\"11\" cellspacing=\"0\" align=\"right\"><tr>");
document.write("<td valign=\"top\"><a href=\"/contactus.html\"><img src=\"/images/nav/contact_inside.gif\" width=51 height=15 border=0 alt=\"\"></a><br>");
document.write("<a href=\"/researchQuote.html\"><img src=\"/images/nav/researchQuote_inside.gif\" width=108 height=15 border=0></a><br>");
document.write("<a href=\"/circQuote.html\"><img src=\"/images/nav/circQuote_inside.gif\" width=108 height=15 border=0></a></td>");
document.write("<td><img src=\"/images/spacer.gif\" width=4 height=38 border=0 alt=\"\"></td>");
document.write("</tr>");
document.write("</table>");

// HEADERS
if(n==1){
document.write("<img src=\"/images/header_aboutus.gif\" width=128 height=30 border=0 alt=\"\">");
}
else if(n==2 && b==0){
document.write("<img src=\"/images/header_services.gif\" width=237 height=30 border=0 alt=\"\">");
}
else if(n==2 && b==6){
document.write("<img src=\"/images/header_research.gif\" width=321 height=31 border=0 alt=\"\">");
}
else if(n==2 && b==7){
document.write("<img src=\"/images/header_circ.gif\" width=292 height=51 border=0 alt=\"\">");
}
else if(n==2 && b==8){
document.write("<img src=\"/images/header_sales.gif\" width=293 height=51 border=0 alt=\"\">");
}
else if(n==2 && b==9){
document.write("<img src=\"/images/header_special.gif\" width=281 height=51 border=0 alt=\"\">");
}
else if(n==3){
document.write("<img src=\"/images/header_aspendiff.gif\" width=282 height=30 border=0 alt=\"\">");
}
else if(n==4){
document.write("<img src=\"/images/header_news.gif\" width=90 height=51 border=0 alt=\"\">");
}
else if(n==5){
document.write("<img src=\"/images/header_jobs.gif\" width=357 height=30 border=0 alt=\"\">");
}
else {
document.write("");
}

document.write("</td>");
document.write("</tr>");

if(n!=0){
document.write("<tr>");
document.write("<td colspan=\"2\">");

//MAIN PICS
if(n==1){
document.write("<img src=\"/images/pics/mtns_1.jpg\" width=545 height=130 border=0 alt=\"\">");
}
else if(n==2 && b==0){
document.write("<img src=\"/images/pics/dunes_1.jpg\" width=545 height=130 border=0 alt=\"\">");
}
else if(n==2 && b==6){
document.write("<img src=\"/images/pics/office_2.jpg\" width=545 height=130 border=0 alt=\"\">");
}
else if(n==2 && b==7){
document.write("<img src=\"/images/pics/office_1.jpg\" width=545 height=130 border=0 alt=\"\">");
}
else if(n==2 && b==8){
document.write("<img src=\"/images/pics/office_3.jpg\" width=545 height=130 border=0 alt=\"\">");
}
else if(n==2 && b==9){
document.write("<img src=\"/images/pics/mtns_4.jpg\" width=545 height=130 border=0 alt=\"\">");
}
else if(n==3){
document.write("<img src=\"/images/pics/river_1.jpg\" width=545 height=130 border=0 alt=\"\">");
}
else if(n==4){
document.write("<img src=\"/images/pics/aspens_2.jpg\" width=545 height=130 border=0 alt=\"\">");
}
else if(n==5){
document.write("<img src=\"/images/pics/mtns_2.jpg\" width=545 height=130 border=0 alt=\"\">");
}
document.write("</td>");
document.write("</tr>");

document.write("<tr>");
document.write("<td bgcolor=\"#54210B\" align=\"center\" colspan=\"2\">");

// SLOGANS
if(n==1){
document.write("<img src=\"/images/slogan_about.gif\" width=439 height=21 border=0 alt=\"\">");
}
else if(n==2 && b==0){
document.write("<img src=\"/images/slogan_services.gif\" width=503 height=21 border=0 alt=\"\">");
}
else if(n==2 && b==6){
document.write("<img src=\"/images/slogan_research.gif\" width=490 height=21 border=0 alt=\"\">");
}
else if(n==2 && b==7){
document.write("<img src=\"/images/slogan_circ.gif\" width=409 height=21 border=0 alt=\"\">");
}
else if(n==2 && b==8){
document.write("<img src=\"/images/slogan_sales.gif\" width=437 height=21 border=0 alt=\"\">");
}
else if(n==2 && b==9){
document.write("<img src=\"/images/slogan_special.gif\" width=517 height=21 border=0 alt=\"\">");
}
else if(n==3){
document.write("<img src=\"/images/slogan_aspendiff.gif\" width=476 height=21 border=0 alt=\"\">");
}
else if(n==4){
document.write("<img src=\"/images/slogan_whatsnew.gif\" width=466 height=21 border=0 alt=\"\">");
}
else if(n==5){
document.write("<img src=\"/images/slogan_career.gif\" width=544 height=21 border=0 alt=\"\">");
}
else {
document.write("<img src=\"/images/spacer.gif\" width=10 height=21 border=0 alt=\"\">");
}

document.write("</td>");
document.write("</tr>");
}


document.write("<tr>");

if(n!=0){
document.write("<td bgcolor=\"#FFF0C2\" align=\"center\" valign=\"top\">");
document.write("<br>");

// FACTS
if(n==1){
document.write("<p><img src=\"/images/sidebar/aboutus_fact.gif\" width=120 height=152 border=0 alt=\"\"></p>");
}
else if(n==2 && b==0){
document.write("<p><img src=\"/images/sidebar/services_fact.gif\" width=133 height=216 border=0 alt=\"\"></p>");
}
else if(n==2 && b==6){
document.write("<img src=\"/images/sidebar/research_quote.gif\" width=128 height=253 border=0>");
}
else if(n==2 && b==7){
document.write("<img src=\"/images/sidebar/circ_quote.gif\" width=128 height=241 border=0>");
}
else if(n==2 && b==8){
document.write("<img src=\"/images/sidebar/sales_quote.gif\" width=129 height=166 border=0>");
}
else if(n==3){
document.write("<p><img src=\"/images/sidebar/AspenDifference_fact.gif\" width=141 height=229 border=0 alt=\"\"></p>");
}
else if(n==4){
document.write("<p><img src=\"/images/sidebar/whatsnew_fact.gif\" width=138 height=280 border=0 alt=\"\"></p>");
}
else if(n==5){
document.write("<p><img src=\"/images/sidebar/jobs_fact.gif\" width=138 height=281 border=0 alt=\"\"></p>");
}

document.write("</td>");
}

if(n!=0){
document.write("<td background=\"images/vert_yellow_shade.gif\" rowspan=2><img src=\"/images/spacer.gif\" width=6 height=1 alt=\"\" border=\"0\"></td>");
document.write("<td align=center valign=\"top\" rowspan=2>");
}
else{
document.write("<td><img src=\"/images/spacer.gif\" width=6 height=1 alt=\"\" border=\"0\"></td>");
document.write("<td align=center valign=\"top\">");
}



// CONTENT STARTS

}

