// set default links & names var defaulturls = new Array(); defaulturls[0] = 'http://www.switchboard.com' //defaulturls[0] = 'http://ypng.infospace.com/_1_2KV9TRC0IVHMV3__info/ypv3/dsearch.htm?&qnqkw=1&qc=' + city + '&qs=' + state + '&fromform=dsearch'; defaulturls[1] = 'http://www.switchboard.com'; defaulturls[2] = 'http://www.infospace.com/_1_115816643__info/index_ppl.htm'; defaulturls[3] = 'http://guides.infospace.com/_1_2KV9TRC0IVHMV3__info/wthrac?otmpl=wthrac/weather-out.htm&op=weather_us&qo=us&qs=' + state + '&qc=' + city + '&ran=4360'; defaulturls[4] = 'http://www.infospace.com/mapdir.html'; defaulturls[5] = 'http://www.infospace.com/reverse.htm'; var defaulttitles = new Array(); defaulttitles[0] = 'Local Yellow Pages'; defaulttitles[1] = 'U.S. Yellow Pages'; defaulttitles[2] = 'White Pages'; defaulttitles[3] = 'Weather'; defaulttitles[4] = 'Maps & Directions'; defaulttitles[5] = 'Info Search'; // set default bar colors barcolor = new Array(); barcolor[0] = '#FFAE00'; barcolor[1] = '#006394'; barcolor[2] = '#4A7BAD'; barcolor[3] = '#A51818'; barcolor[4] = '#BDA539'; barcolor[5] = '#184ABD'; barcolor[6] = '#CE2121'; barcolor[7] = '#00638C'; barcolor[8] = '#9C2942'; barcolor[9] = '#183184'; barcolor[10] = '#AD3942'; barcolor[11] = '#294A9C'; barcolor[12] = '#9C8C39'; barcolor[13] = '#9C0021'; barcolor[14] = '#00299C'; barcolor[15] = '#0084A5'; barcolor[16] = '#00007B'; barcolor[17] = '#006394'; barcolor[18] = '#790102'; // set default preferences if (divider=="") divider = '  •  '; if (boxcolor.length<3) { if (boxcolor=="") boxcolor = barcolor[0]; if(boxcolor=='4'||boxcolor=='12') { boxcolor = barcolor[boxcolor]; if (fontcolor=='') fontcolor = 'black'; if (mouseovercolor=='') mouseovercolor = 'red'; } else { boxcolor = barcolor[boxcolor]; if (mouseovercolor=='') mouseovercolor = 'yellow'; } } if (fontfamily=="") fontfamily = 'Arial'; if (fontsize=="") fontsize = '10'; if (fontweight=="") fontweight = 'normal'; if (fontcolor=="") fontcolor = 'white'; if (mouseovercolor=="") mouseovercolor = 'yellow'; if (boxwidth=="") boxwidth = '540'; if (boxheight=="") boxheight = '16'; // Window properties if (winww=="") { winww = alertSize("w")-100; if (winww>650) { winww = '650'; } else { winww = alertSize("w")-100; } } if (winhh=="") { winhh = alertSize("h")-50; if (winhh>525) { winhh = '525'; } else { winhh = alertSize("h")-50; } } // build output var header = '
'; for (i=0; i"; if (linktitles[i] == "") { header = header + defaulttitles[i]; } else { header = header + linktitles[i]; } header = header + ''; if (i!=(itemcount-1)) header = header + divider; } header = header + '
'; function alertSize(whch) { if( typeof( window.innerWidth ) == 'number' ) { //Non-IE myWidth = window.innerWidth; myHeight = window.innerHeight; } else { if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode' myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else { if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } } } if (whch=="w") return(myWidth); else return(myHeight); } document.write(header);