                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
var color = "";

function changeCellColor(obj,color) {
  if (document.all) {
    obj.style.backgroundColor=color;
  }
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		community_on = newImage("/media/Onsection/on_community_btn_on.gif");
		audio_on = newImage("/media/Onsection/on_audio_btn_on.gif");
		video_on = newImage("/media/Onsection/on_video_btn_on.gif");
		webcast_on = newImage("/media/Onsection/on_webcast_btn_on.gif");
		turbo_on = newImage("/media/Onsection/on_turbo_btn_on.gif");
		vote_on = newImage("/media/Onsection/on_vote_btn_on.gif");
		wire_on = newImage("/media/Onsection/on_wire_btn_on.gif");
		
		community_title_on = newImage("/media/Onsection/on_community_title.gif");
		audio_title_on = newImage("/media/Onsection/on_audio_title.gif");
		video_title_on = newImage("/media/Onsection/on_video_title.gif");
		turbo_title_on = newImage("/media/Onsection/on_turbo_title.gif");
		webcast_title_on = newImage("/media/Onsection/on_webcast_title.gif");
		vote_title_on = newImage("/media/Onsection/on_vote_title.gif");
		wire_title_on = newImage("/media/Onsection/on_wire_title.gif");

		preloadFlag = true;
	}
}

function ShowText(Item)
	{
		for (j=1; j<=7; j++) 
		{
		if (document.all)
		   eval("Text"+j+".style.visibility='hidden'");
		else
		   document.eval("Text"+j).visibility ="hide";
		}		
		if (document.all)
		   eval("Text"+Item+".style.visibility='visible'");
		else
		   document.eval("Text"+Item).visibility  = "show";
		  
	}
	

	
function ShowOff()
	{
		changeImages('community','/media/Onsection/on_community_btn_off.gif');
		changeImages('audio','/media/Onsection/on_audio_btn_off.gif');
		changeImages('video','/media/Onsection/on_video_btn_off.gif');
		changeImages('webcast','/media/Onsection/on_webcast_btn_off.gif');
		changeImages('turbo','/media/Onsection/on_turbo_btn_off.gif');
		changeImages('vote','/media/Onsection/on_vote_btn_off.gif');
		changeImages('wire','/media/Onsection/on_wire_btn_off.gif');
		
	}		
	
function PgLoad(textnum, imagename)
	{
		changeImages('ontitle', '/media/Onsection/on_'+imagename+'_title.gif');
		changeImages( imagename, '/media/Onsection/on_'+imagename+'_btn_on.gif');
		ShowText(textnum)
	}		
	
	
// code for GOTO drop box 	
function goTo(pagename) {
        
        if ((-1 < pagename.selectedIndex) && (pagename.options[pagename.selectedIndex].value != 'nil')) {
                val = pagename.options[pagename.selectedIndex].value;
                if(val!="NoValue") {
                        location.href=val;
                        return true;
                }
        }
}	

// end of GOTO code


// jscript for KEYWORD SEARCH top & bottom


function search() {
    if(document.seeklight.rq.selectedIndex == 1) {
        document.seeklight.action = "http://my.abcnews.go.com/keyword/lookup";
    }
}


function searchBottom() {
    if(document.seeklightBottom.rq.selectedIndex == 1) {
        document.seeklightBottom.action = "http://my.abcnews.go.com/keyword/lookup";
    }
}

function searchChrome() {
    if(document.seeklightChrome.rq.selectedIndex == 2) {
        document.seeklightChrome.action = "http://my.abcnews.go.com/keyword/lookup";
    }
}


// jscript for news plus


function go_nav(){
	if (document.navselect.sys.options[0].selected) parent.location.href = "http://abcnews.go.com/sections/techjobs/DailyNews/techjobs_index.html";
	if (document.navselect.sys.options[1].selected) parent.location.href = "http://abcnews.go.com/sections/auto/DailyNews/AUTO_INDEX.html";
	if (document.navselect.sys.options[2].selected) parent.location.href = "http://abcnews.go.com/ad/specialservices/shopping_guide/index.html";
}


// LaunchURL main function

function launchURL(url,name,x,y) {
	window.name = "_newshome";
    var ItsTheWindow;
    ItsTheWindow = window.open(url, name,
    "status=no,height="+y+",width="+x+",scrollbars=no,resizable=no,toolbar=no");
}

// end of KEYWORD search code 
