// JavaScript Document
function init()
{
set_type(1)
}

function set(ss,opt,id)
{
document.webform.option.value=opt;
clearall(ss);
var nodeObj = document.getElementById(id);
	nodeObj.style.fontWeight = 'bold';
	nodeObj.style.color='#000';
}

function clearall(s)
{
	if(s==1 || s==2 || s==3 || s==4 || s==5 || s==6 || s==7 || s==8 || s==9)
	{
	var nodeObj = document.getElementById('w1');
	nodeObj.style.fontWeight = 'normal';
	nodeObj.style.color='#0000FF';
	}
	if(s==1 || s==2 || s==3 || s==4 || s==5 || s==6 || s==7 || s==8 || s==9)
	{
	var nodeObj = document.getElementById('w2');
	nodeObj.style.fontWeight = 'normal';
	nodeObj.style.color='#0000FF';
	}
	if(s==1 || s==2 || s==3 || s==4 || s==7 || s==9)
	{
	var nodeObj = document.getElementById('w3');
	nodeObj.style.fontWeight = 'normal';
	nodeObj.style.color='#0000FF';
	}
	if(s==1 || s==2 || s==3 || s==4 || s==7 || s==9)
	{
	var nodeObj = document.getElementById('w4');
	nodeObj.style.fontWeight = 'normal';
	nodeObj.style.color='#0000FF';
	}
	if(s==1 || s==2 || s==3 || s==4 || s==7)
	{
	var nodeObj = document.getElementById('w5');
	nodeObj.style.fontWeight = 'normal';
	nodeObj.style.color='#0000FF';
	}
	if(s==1 || s==2 || s==3)
	{
	var nodeObj = document.getElementById('w6');
	nodeObj.style.fontWeight = 'normal';
	nodeObj.style.color='#0000FF';
	}
	if(s==2)
	{
	var nodeObj = document.getElementById('w7');
	nodeObj.style.fontWeight = 'normal';
	nodeObj.style.color='#0000FF';
	}
}

function clear_search()
{
	var nodeObj = document.getElementById('web');
	nodeObj.style.fontWeight = 'normal';
	nodeObj.style.color='#0000FF';
	var nodeObj = document.getElementById('images');
	nodeObj.style.fontWeight = 'normal';
	nodeObj.style.color='#0000FF';
	var nodeObj = document.getElementById('news');
	nodeObj.style.fontWeight = 'normal';
	nodeObj.style.color='#0000FF';
	var nodeObj = document.getElementById('videos');
	nodeObj.style.fontWeight = 'normal';
	nodeObj.style.color='#0000FF';
	var nodeObj = document.getElementById('files');
	nodeObj.style.fontWeight = 'normal';
	nodeObj.style.color='#0000FF';
	var nodeObj = document.getElementById('directory');
	nodeObj.style.fontWeight = 'normal';
	nodeObj.style.color='#0000FF';
	var nodeObj = document.getElementById('torrent');
	nodeObj.style.fontWeight = 'normal';
	nodeObj.style.color='#0000FF';
	var nodeObj = document.getElementById('books');
	nodeObj.style.fontWeight = 'normal';
	nodeObj.style.color='#0000FF';
	var nodeObj = document.getElementById('dictionary');
	nodeObj.style.fontWeight = 'normal';
	nodeObj.style.color='#0000FF';
}

function set_type(obj)
{
document.webform.service.value=obj;
clear_search();
if(obj==1)
{
document.webform.submit.value='Web Search';
document.getElementById("choice").innerHTML = '<span id="w1"><a onclick="javascript:set(1,1,\'w1\')">Google</a></span><img src="spacer.gif"/><span id="w2"><a onclick="javascript:set(1,2,\'w2\')">Yahoo</a></span><img src="spacer.gif" /><span id="w3"><a onclick="javascript:set(1,3,\'w3\')">Msn</a></span><img src="spacer.gif" /><span id="w4"><a onclick="javascript:set(1,4,\'w4\')">Ask</a></span><img src="spacer.gif" /><span id="w5"><a onclick="javascript:set(1,5,\'w5\')">Altavista</a></span><img src="spacer.gif" /><span id="w6"><a onclick="javascript:set(1,6,\'w6\')">Bloglines</a></span><img src="spacer.gif" /><span id="w7"><a onclick="javascript:set(1,7,\'w7\')">AllTheWeb</a></span>';
var nodeObj = document.getElementById('web');
	nodeObj.style.fontWeight = 'bold';
	nodeObj.style.color='#000';
}
if(obj==2)
{
document.webform.submit.value='Images Search';
document.getElementById("choice").innerHTML = '<span id="w1"><a onclick="javascript:set(2,1,\'w1\')">Google</a></span><img src="spacer.gif"/><span id="w2"><a onclick="javascript:set(2,2,\'w2\')">Yahoo</a></span><img src="spacer.gif" /><span id="w3"><a onclick="javascript:set(2,3,\'w3\')">Msn</a></span><img src="spacer.gif" /><span id="w4"><a onclick="javascript:set(2,4,\'w4\')">Ask</a></span><img src="spacer.gif" /><span id="w5"><a onclick="javascript:set(2,5,\'w5\')">Altavista</a></span><img src="spacer.gif" /><span id="w6"><a onclick="javascript:set(2,6,\'w6\')">Flickr</a></span><img src="spacer.gif" /><span id="w7"><a onclick="javascript:set(2,7,\'w7\')">Picsearch</a></span><img src="spacer.gif" /><span id="w8"><a onclick="javascript:set(2,7,\'w8\')">Webshots</a></span>';
var nodeObj = document.getElementById('images');
	nodeObj.style.fontWeight = 'bold';
	nodeObj.style.color='#000';
}
if(obj==3)
{
document.webform.submit.value='News Search';
document.getElementById("choice").innerHTML = '<span id="w1"><a onclick="javascript:set(3,1,\'w1\')">Google</a></span><img src="spacer.gif"/><span id="w2"><a onclick="javascript:set(3,2,\'w2\')">Yahoo</a></span><img src="spacer.gif" /><span id="w3"><a onclick="javascript:set(3,3,\'w3\')">Msn</a></span><img src="spacer.gif" /><span id="w4"><a onclick="javascript:set(3,4,\'w4\')">Ask</a></span><img src="spacer.gif" /><span id="w5"><a onclick="javascript:set(3,5,\'w5\')">Altavista</a></span><img src="spacer.gif" /><span id="w6"><a onclick="javascript:set(3,6,\'w6\')">AllTheWeb</a></span>';
var nodeObj = document.getElementById('news');
	nodeObj.style.fontWeight = 'bold';
	nodeObj.style.color='#000';
}
if(obj==4)
{
document.webform.submit.value='Videos Search';
document.getElementById("choice").innerHTML = '<span id="w1"><a onclick="javascript:set(4,1,\'w1\')">Google</a></span><img src="spacer.gif"/><span id="w2"><a onclick="javascript:set(4,2,\'w2\')">Yahoo</a></span><img src="spacer.gif" /><span id="w3"><a onclick="javascript:set(4,3,\'w3\')">Youtube</a></span><img src="spacer.gif" /><span id="w4"><a onclick="javascript:set(4,4,\'w4\')">Ask</a></span><img src="spacer.gif" /><span id="w5"><a onclick="javascript:set(4,5,\'w5\')">Altavista</a></span>';
var nodeObj = document.getElementById('videos');
	nodeObj.style.fontWeight = 'bold';
	nodeObj.style.color='#000';
}
if(obj==5)
{
document.webform.submit.value='Files Search';
document.getElementById("choice").innerHTML = '<span id="w1"><a onclick="javascript:set(5,1,\'w1\')">Filewatcher</a></span><img src="spacer.gif"/><span id="w2"><a onclick="javascript:set(5,2,\'w2\')">Filez</a></span>';
var nodeObj = document.getElementById('files');
	nodeObj.style.fontWeight = 'bold';
	nodeObj.style.color='#000';
}
if(obj==6)
{
document.webform.submit.value='Directory Search';
document.getElementById("choice").innerHTML = '<span id="w1"><a onclick="javascript:set(6,1,\'w1\')">Yahoo</a></span><img src="spacer.gif"/><span id="w2"><a onclick="javascript:set(6,2,\'w2\')">Wikipedia</a></span>';
var nodeObj = document.getElementById('directory');
	nodeObj.style.fontWeight = 'bold';
	nodeObj.style.color='#000';
}
if(obj==7)
{
document.webform.submit.value='Torrent Search';
document.getElementById("choice").innerHTML = '<span id="w1"><a onclick="javascript:set(7,1,\'w1\')">Torrentreactor</a></span><img src="spacer.gif"/><span id="w2"><a onclick="javascript:set(7,2,\'w2\')">The Pirate Bay</a></span><img src="spacer.gif" /><span id="w3"><a onclick="javascript:set(7,3,\'w3\')">Torentspy</a></span><img src="spacer.gif" /><span id="w4"><a onclick="javascript:set(7,4,\'w4\')">Bittorrent</a></span><img src="spacer.gif" /><span id="w5"><a onclick="javascript:set(7,5,\'w5\')">Meganova</a></span>';
var nodeObj = document.getElementById('torrent');
	nodeObj.style.fontWeight = 'bold';
	nodeObj.style.color='#000';
}
if(obj==8)
{
document.webform.submit.value='Book Search';
document.getElementById("choice").innerHTML = '<span id="w1"><a onclick="javascript:set(8,1,\'w1\')">Google</a></span><img src="spacer.gif"/><span id="w2"><a onclick="javascript:set(8,2,\'w2\')">Reviewscout</a></span>';
var nodeObj = document.getElementById('books');
	nodeObj.style.fontWeight = 'bold';
	nodeObj.style.color='#000';
}
if(obj==9)
{
document.webform.submit.value='Dictionary Search';
document.getElementById("choice").innerHTML = '<span id="w1"><a onclick="javascript:set(9,1,\'w1\')">Cambridge</a></span><img src="spacer.gif"/><span id="w2"><a onclick="javascript:set(9,2,\'w2\')">Dictionary</a></span><img src="spacer.gif" /><span id="w3"><a onclick="javascript:set(9,3,\'w3\')">Yourdictionary</a></span><img src="spacer.gif" /><span id="w4"><a onclick="javascript:set(9,4,\'w4\')">Encarta</a></span>';
var nodeObj = document.getElementById('dictionary');
	nodeObj.style.fontWeight = 'bold';
	nodeObj.style.color='#000';
}
var nodeObj = document.getElementById('w1');
	nodeObj.style.fontWeight = 'bold';
	nodeObj.style.color='#000';
document.webform.option.value=1;
}

