//AJAX Functions
function ajax() {
	var ro;
	var browser = navigator.appName;
	if(browser == "Microsoft Internet Explorer"){
		ro = new ActiveXObject("Microsoft.XMLHTTP");
	}else{
		ro = new XMLHttpRequest();
	}
	return ro;
}

function loadYahoo() {
	alert("Getting Here");
	var ajx = new ajax();
	ajx.open("get","http://hotjobs.yahoo.com/partner- sltrib -console", true);
	ajx.onreadystatechange = function() {
		if(ajx.readyState == 4) {
			document.getElementById('yahooConsole').innerHTML = ajx.responseText;
			alert("Hitting Output");
		}
	}
	ajx.send(null);
}

// JavaScript Document
function $(value){
	return document.getElementById(value);
}	

function changeSection(value){
	switch(value){
		case "1":
			$('selectedPoint').style.left = "15px";
			window.location = "index.php";
			break;
		case "2":
			$('selectedPoint').style.left = "116px";
			window.location = "TopJobListings.php";
			break;
		case "3":
			$('selectedPoint').style.left = "240px";
			window.location = "JobClips.php";
			break;
		case "4":
			$('selectedPoint').style.left = "380px";
			window.location = "EmployersAdvertise.php";
			break;
		case "6":
			$('selectedPoint').style.left = "550px";
			window.location = "TipsAndResources.php";
			break;
		case "7":
			//$('selectedPoint').style.left = "680px";
			window.open("http://ads.mediaoneutah.com");
			break;
	}
}
function searchFocus(act){
	if(act == 1){
		if($('search').value == "Search Site..."){
			$('search').value = "";
		}
	} else {
		if($('search').value == "Search Site..."){
			$('search').value = "Search Site...";
		}
		if($('search').value == ""){
			$('search').value = "Search Site...";
		}
	}
}