<!--
var useSecureImg = 0;
if (parent.frames.length != 0) {
	 for (var i=0; i < eval(parent.frames); i++) {
		var httpRequest = parent.frames[i].location.href;
		if (httpRequest.substring(0,5) == "https") var useSecureImg = 1
	}
} else {
	 var httpRequest = parent.location.href;
	if (httpRequest.substring(0,5) == "https") var useSecureImg = 1
}

function go(box) {
	var val = box.options[box.selectedIndex].value;
	if (val != "") top.location = val;
}

function pick(form, box) {
	var val = box.options[box.selectedIndex].value;
	if (val != "") form.submit();
}

function stripText(oldChar, newChar, str){
	if (str.indexOf(oldChar) > -1){
		var start = 0;
		var strLen = str.length;
		var oldCharLen = oldChar.length;
		var testRes = -1;
		var tempStr = "";
		var x = 0;
		while (x < 1) {
			oldCharIndex = str.indexOf(oldChar, start);
			if (start < strLen){
				if (tempStr != "") tempStr = tempStr + newChar;	
				if (oldCharIndex != -1)	tempStr = tempStr + str.substring(start, oldCharIndex);
				else  {
					tempStr = tempStr + str.substring(start, strLen);
					x = 1;
				}
				start = (oldCharIndex + oldCharLen);
			} else x = 1;
		}
		return tempStr;
	} else return str;
}

function gotoHeaderSearch(form) {
	switch (form.qcat.selectedIndex) {
		case 0:		form.redir.value = "http://dpxml.infospace.com/info.xcite/dog/redir.htm?foo=bar";
					break;
		case 1:		form.redir.value = "http://dir.excite.com/d/search/p/excite?foo=bar";
					form.qcat.name = "c";
					form.qkw.name = "s";
					form.fs.value = "infospace_excite_dir";
					form.fs.name = "Partner";
					break;
		case 2:		form.redir.value = "http://dpxml.infospace.com/info.xcite/dog/newsresults.htm?foo=bar";
					form.fs.value = "nws";
					break;
		case 3:		form.redir.value = "http://dpxml.infospace.com/info.xcite/dog/imageresults.htm?foo=bar";
					form.fs.value = "images";
					break;
	}
	return true;
}

function globQuickLinksCode(fntColor) {
  if (typeof fntColor != "string") { 
    var fntColor='#ffffff';
  }
  var out='<font color='+fntColor+' face="verdana,geneva,arial" size=1>' +
	'<a href=http://www.excite.com><font size=1 color='+fntColor+'>Excite</font></a>&nbsp;|&nbsp;<a href=http://lite.excite.com><font size=1 color='+fntColor+'>Lite</font></a>&nbsp;|&nbsp;<a href=http://rd.excite.com/sp/em><font size=1 color='+fntColor+'>Email</font></a>&nbsp;|&nbsp;<a href=http://help.excite.com><font size=1 color='+fntColor+'>Help</font></a>&nbsp;' +
	'</font>';
   return (out);
}

function globSearchBoxCode() {
 var out='<table border=0 cellpadding=0 cellspacing=0>' +
	'<tr valign=bottom>' +
	'<form name=headerSearch method=get action="http://rd.excite.com/rd" onSubmit="return gotoHeaderSearch(this)" target=_top>' +
	'<input type=hidden name=redir value="http://dpxml.infospace.com/info.xcite/dog/redir.htm?foo=bar">'+
	'<td nowrap align=right>&nbsp;' +
	'<font face="verdana,geneva,arial" size=-2 color=ffffff>Search&nbsp;' +
	'</font>' +
	'<font face="verdana,geneva,arial" size=-2>' +
	'<select name=qcat>' +
	'<option value=web selected>The Web</option>' +
	'<option value=directory>Directory</option>' +
	'<option value="news">News</option>' +
	'<option value="photo">Photos</option>' +
	'</select>' +
	'</font>&nbsp;&nbsp;' +
	'<font face="verdana,geneva,arial" size=-2 color=ffffff>For&nbsp;' +
	'<input type=hidden name=fs value="infospace_excite_search">' +
	'<input  name=qkw size=27 value="">' +
	'</font>' +
	'</td>' +
	'<td><font face="verdana,geneva,arial" size=-2>&nbsp;' +
	'<input type=submit value="Search" height=20>' +
	'</font>' +	
	'</td>' +
	'</form>' +
	'</tr>' +
	'</table>';
  return out;
}

function globHtmlSearchBox() {
	var htmlSearchBox = '<table border=0 cellspacing=0 cellpadding=0 width=100% bgcolor=000000>' +
	'<tr>' +
	'<td bgcolor=000066 align=right height=30>' +
	'<table border=0 cellpadding=0 cellspacing=0 width=100%>' +
	'<tr valign=bottom>' + 
	'<td nowrap width=10%>' + globSearchBoxCode() +
	'<td valign=middle align=right width=90%>' + globQuickLinksCode() +
	'</td>' +			
	'</tr>' +
	'</table>' +
	'</td>' +
	'</tr>' +
	'</table>';
	document.write(htmlSearchBox);
}

function globHtmlSearchBoxOnly() {
	var htmlSearchBox = '<table border=0 cellspacing=0 cellpadding=0 width=100% bgcolor=000000>' +
	'<tr>' +
	'<td bgcolor=#000053 align=right height=45>' +
	'<table border=0 cellpadding=0 cellspacing=0>' +
	'<tr valign=bottom>' + 
	'<td nowrap>' + globSearchBoxCode() + '</td><td>&nbsp;&nbsp;</td>' +	
	'</tr>' +
	'</table>' +
	'</td>' +
	'</tr>' +
	'</table>';
	document.write(htmlSearchBox);
}


function globPoweredByCode() {
	var dell_img_src;
	if (useSecureImg == 1) {
		dell_img_src = "https://cashback.excite.com/cashback/cashback/images/dell_emc.gif"
		dell_img_args = "width=167 height=25";
	} else {
		dell_img_src = "http://ak.imgfarm.com/ex/lg/dell_emc_20020516_1.gif"
		dell_img_args = "width=110 height=25";
	}
	return ('<img src=' + dell_img_src + ' '+dell_img_args+'>');
}

function globFeaturesCode() {
  var out='<font face="verdana,geneva,arial" size=-2>' +
			'<select name=featuredguides onChange=go(this) size=1>' +
			'<option value="">Quick Find' +
			'<option value=http://auctions.excite.com/index.html>Auctions' +
			'<option value=http://autos.excite.com/index.html>Autos' +
			'<option value=http://careers.excite.com/index.html>Careers' +
			'<option value=http://cashback.excite.com/cashback/home.jsp>Cash Back' +
			'<option value=http://games.excite.com/casino/index.html>Casino' +
			'<option value=http://entertainment.excite.com/celebgossip/index.html>Celebrities' +
			'<option value=http://communicate.excite.com/index.html>Community' +
			'<option value=http://computers.excite.com/index.html>Computers' +
			'<option value=http://rd.excite.com/sp/em>Email' +
			'<option value=http://entertainment.excite.com/index.html>Entertainment' +
			'<option value=http://fashion.excite.com/index.html>Fashion' +
			'<option value=http://food.excite.com/index.html>Food &amp; Drink' +
			'<option value=http://games.excite.com/index.html>Games' +
			'<option value=http://www1.excite.com/greetings/0,20409,,00.html>Greetings' +
			'<option value=http://health.excite.com/index.html>Health' +
			'<option value=http://horoscopes.excite.com/index.html>Horoscopes' +
			'<option value=http://money.excite.com/home.html>Investing' +
			'<option value=http://lifestyle.excite.com/index.html>Lifestyle' +
			'<option value=http://lottery2.excite.com/index.html>Lottery' +
			'<option value=http://movies.excite.com>Movies' +
			'<option value=http://entertainment.excite.com/music/index.html>Music' +
			'<option value=http://news.excite.com/index.html>News' +
			'<option value=http://www1.excite.com/home/relationships/relationships_overview/0,13946,,00.html>Online Dating' +
			'<option value=http://prizemachine.games.excite.com/pm3_splash.html>Prize Machine' +
			'<option value=http://realestate.excite.com/index.html>Real Estate' +
			'<option value=http://shopping.excite.com/index.html>Shopping' +
			'<option value=http://companyinfo.excite.com/site_map/index.html>Site Map' +
			'<option value=http://local.excite.com/small_business/index.html>Small Business' +
			'<option value=http://sports.excite.com/index.html>Sports' +
			'<option value=http://today.excite.com/index.html>Today' +
			'<option value=http://travel.excite.com/index.html>Travel' +
			'<option value=http://tv.entertainment.excite.com/index.html>TV' +
			'<option value=http://weather.excite.com/index.html>Weather' +
			'<option value=http://clickit.go2net.com/adclick?cid=210947&area=dp.excite.quickfind&site=dp&shape=textlink&clickurl=http%3A//www.infospace.com/info.xcite/index_ppl.htm>White Pages' +
			'<option value=http://clickit.go2net.com/adclick?cid=210946&area=dp.excite.quickfind&site=dp&shape=textlink&clickurl=http%3A//www.infospace.com/info.xcite/index_ylw.htm>Yellow Pages' +			
			'</select>' +
			'</font>';
  return out;
}

function globHtmlFeaturesLine() {

	var htmlSelectBox = '<table border=0 cellpadding=0 cellspacing=0 width=100%>' +
		'<tr><form>' +
			'<td align=left width=10%>'+ globPoweredByCode() + '</td>' +
			'<td align=right bgcolor=#ffffff width=90%><table cellpadding=0 cellspacing=0 border=0><tr><td valign=middle>' + globQuickLinksCode('000066') + '<font size=1>&nbsp;</font></td><td>' + globFeaturesCode() + '</td></tr></table></td>' +
		'</tr></form>' +
		'</table>' ;
	document.write(htmlSelectBox);
}


function globHtmlSelectBox() {

	var htmlSelectBox = '<table border=0 cellpadding=0 cellspacing=0 width=100%>' +
		'<tr>' +
			'<td colspan=2>' +
				'<table border=0 cellspacing=0 cellpadding=0 width=100%>' +
				'<tr>' +
					'<td height=2></td>' +
				'</tr>' +
				'</table>' +
			'</td>' +
		'</tr>' +
		'<tr><form>' +
			'<td width=100%>'+ globPoweredByCode() + '</td>' +
			'<td width=150 align=right>' + globFeaturesCode() + 	
			'</td>' +
		'</tr></form>' +
		'</table>' ;
	document.write(htmlSelectBox);
}
function globHtmlHeaderLine() {
	document.write();
	var htmlHeaderLine = '<table border=0 cellspacing=0 cellpadding=0 width=100%>' +	
	'<tr>' +		
	'<td bgcolor="cccccc">' +
		'<table border=0 cellspacing=0 cellpadding=0 width=100%>' +
		'<tr>'+
			'<td height=2></td>'+
		'</tr>'+
		'</table>'+
	'</td>'+
	'</tr>'+
'</table>';		
	document.write(htmlHeaderLine);
}
//-->