function getNews(id,os,did) {
	document.getElementById(did).style.display='none';
	//alert('/goinc/newsimg.asp?newsID='+id+'&offset='+os+'');
	var xmlHttp;
	try{
		//Firefox, Opera 8.0+, Safari
		xmlHttp = new XMLHttpRequest();
	}catch(e){
		//Internet Explorer
		try{
			xmlHttp = new ActiveXObject('Msxml2.XMLHTTP');
		}catch(e){
			try{
				xmlHttp = new ActiveXObject('Microsoft.XMLHTTP');
			}catch(e){
				alert('Your browser does not support AJAX!');
				return false;
			}
		}
	}
	xmlHttp.onreadystatechange = function(){
		if(xmlHttp.readyState == 4){
			var responseText = xmlHttp.responseText;
			document.getElementById(did).innerHTML = responseText;
			if(responseText!=""){
				document.getElementById(did).style.display='block';
			}
		}
	}
	//var ajaxURL='newsimg';
	//if(did=='thumbCol2'){
	//	ajaxURL = ajaxURL + 'event';
	//}
	var imgQS = did;
	if(imgQS=='spotlightimg'){
		imgQS = 'spotID='+id;
	}else{
		imgQS = 'newsID='+id;
	}
	xmlHttp.open('GET','/goinc/'+did+'.asp?'+imgQS+'&offset='+os,true);
	xmlHttp.send(null);
}

function tagPhoto(img,sid,del) {
	if(sid!='NULL'){
		var xmlHttp;
		try{
			//Firefox, Opera 8.0+, Safari
			xmlHttp = new XMLHttpRequest();
		}catch(e){
			//Internet Explorer
			try{
				xmlHttp = new ActiveXObject('Msxml2.XMLHTTP');
			}catch(e){
				try{
					xmlHttp = new ActiveXObject('Microsoft.XMLHTTP');
				}catch(e){
					alert('Your browser does not support AJAX!');
					return false;
				}
			}
		}
		xmlHttp.onreadystatechange = function(){
			if(xmlHttp.readyState == 4){
				var responseText = xmlHttp.responseText;
				if(responseText!=''){
					if(responseText!='INSERT' && responseText!='DELETE'){
						alert('ERROR');
					}else{
						getTags(img);
						getTagList(img);
					}
				}else{
					alert('no action');
				}
			}
		}
		var delQS = '';
		if(del!=''){
			delQS = '&del='+del;
		}
		xmlHttp.open('GET','/goinc/phototag.asp?img='+img+'&spot='+sid+delQS,true);
		xmlHttp.send(null);
	}
}
function getTags(img,admin) {
	var xmlHttp;
	try{
		//Firefox, Opera 8.0+, Safari
		xmlHttp = new XMLHttpRequest();
	}catch(e){
		//Internet Explorer
		try{
			xmlHttp = new ActiveXObject('Msxml2.XMLHTTP');
		}catch(e){
			try{
				xmlHttp = new ActiveXObject('Microsoft.XMLHTTP');
			}catch(e){
				alert('Your browser does not support AJAX!');
				return false;
			}
		}
	}
	xmlHttp.onreadystatechange = function(){
		if(xmlHttp.readyState == 4){
			var responseText = xmlHttp.responseText;
			document.getElementById('photoTags'+img).innerHTML = responseText;
			//alert(responseText);
		}
	}
	if(admin!=''){
		admin = '&admin='+admin;	
	}
	xmlHttp.open('GET','/goinc/photogettag.asp?img='+img+admin,true);
	xmlHttp.send(null);
}

function getTagList(img) {
	var xmlHttp;
	try{
		//Firefox, Opera 8.0+, Safari
		xmlHttp = new XMLHttpRequest();
	}catch(e){
		//Internet Explorer
		try{
			xmlHttp = new ActiveXObject('Msxml2.XMLHTTP');
		}catch(e){
			try{
				xmlHttp = new ActiveXObject('Microsoft.XMLHTTP');
			}catch(e){
				alert('Your browser does not support AJAX!');
				return false;
			}
		}
	}
	xmlHttp.onreadystatechange = function(){
		if(xmlHttp.readyState == 4){
			var responseText = xmlHttp.responseText;
			document.getElementById('photoTagsList'+img).innerHTML = responseText;
		}
	}
	xmlHttp.open('GET','/goinc/phototaglist.asp?img='+img,true);
	xmlHttp.send(null);
}

function subMenu(id,val){
	if(document.getElementById('sub_'+id)){
		//if(val=='block'){
		//	$('#sub_'+id).stop().slideDown();
		//}else{
		//	$('#sub_'+id).stop().slideUp();
		//}
		document.getElementById('sub_'+id).style.display = val;
	}
	var fColor = '';
	var bColor = '';
	if(val == 'block'){
		fColor = '#002d62';
		bColor = '#fff';
	}else{
		fColor = '';
		bColor = '';
	}
	document.getElementById('link_'+id).style.color = fColor;
	document.getElementById('link_'+id).style.background = bColor;
}

var newsTime = 7000;
var newsTimeLeft = newsTime + 9000;
var newsNext = 2;
var newsNow = 1;
var newsHover = '';

function newsCountdown(){
	newsTimeLeft = newsTimeLeft - 500;
	if(newsTimeLeft <= 0){
		changeNews(newsNext);
		newsTimeLeft = newsTime;
	}
	//document.getElementById('newsCount').innerHTML = newsTimeLeft/1000;
}

function mainHover(id){
	document.getElementById('seahawksMain').style.background='none';
	document.getElementById('timberwolvesMain').style.background='none';
	document.getElementById('knightsMain').style.background='none';
	document.getElementById('seahawksMain').style.color='#fff';
	document.getElementById('timberwolvesMain').style.color='#fff';
	document.getElementById('knightsMain').style.color='#fff';
	
	if(id != ""){
		document.getElementById(id+'Main').style.background='#fff';
		document.getElementById(id+'Main').style.color='#002d62';
	}
}

function changeEmbed(id,hl,elID){
	var vSize = '';
	var vHt = 0;
	var vWt = 0;
	var sName = window.location.href;
	if(sName.indexOf('/video/') > 0){
		vSize = 'l';
		vHt = 480;
		vWt = 640;
	}else{
		vSize = 's';
		vHt = 240;
		vWt = 320;
	}
	if(sName.indexOf('com') > 0){
		sName = sName.slice(0,sName.indexOf('com')+3);
	}
	
	var shareVal, shareEmail, shareFacebook, shareDigg, shareStumble, shareDelicious, shareFark, shareReddit, shareBlink, shareNewsvine, shareMixx, shareMagnolia, shareSimpy, shareFurl, shareGoogle, shareLink, shareEmbed;
	shareVal = '';
	shareEmail = '';
	shareFacebook = '';
	shareDigg = '';
	shareStumble = '';
	shareDelicious = '';
	shareFark = '';
	shareReddit = '';
	shareBlink = '';
	shareNewsvine = '';
	shareMixx = '';
	shareMagnolia = '';
	shareSimpy = '';
	shareFurl = '';
	shareGoogle = '';
	shareLink = '';
	shareEmbed = '';
	shareLink = sName+'/video/?id='+id;
	
	var surl = escape(shareLink);
	hl = escape(hl);
	var sEmbed = '<'+'iframe scrolling="no" frameborder="0" height="'+vHt+'" width="'+vWt+'" src="'+sName+'/video/flashImage.asp?id='+id+'&amp;s='+vSize+'&amp;embed=true"></'+'iframe>';
	
	shareEmail = '<'+'li><'+'a href="javascript:emailNews('+id+');" title="Email"><'+'img src="/goinc/img/ico_email.gif" alt="Email" /> Email<'+'/a><'+'/li>';
	shareRss = '<'+'li><'+'a href="/rss/" target="_blank"><'+'img src="/goinc/img/rss2.png" alt="rss" /><'+'/a><'+'/li>';
	shareFacebook = '<'+'li><'+'a href="http://www.facebook.com/sharer.php?u='+surl+'&amp;t='+hl+'" target="_blank" title="add to Facebook"><'+'img src="/goinc/img/blog_facebook.gif" alt="add to Facebook" /> Facebook<'+'/a><'+'/li>';
	shareDigg = '<'+'li><'+'a href="http://digg.com/submit?phase=2&amp;url='+surl+'" target="_blank" title="Digg It"><'+'img src="/goinc/img/blog_digg.gif" alt="Digg It" /> Digg<'+'/a><'+'/li>';
	shareStumble = '<'+'li><'+'a href="http://www.stumbleupon.com/submit?url='+surl+'&amp;title='+hl+'" target="_blank" title="Stumble It"><'+'img src="/goinc/img/blog_stumbleit.gif" alt="Stumble It" /> StumbleUpon<'+'/a><'+'/li>';
	shareDelicious = '<'+'li><'+'a href="http://del.icio.us/post?url='+surl+'&amp;title='+hl+'" target="_blank" title="add to del.icio.us"><'+'img src="/goinc/img/blog_delicious.gif" alt="add to del.icio.us" /> del.icio.us<'+'/a><'+'/li>';
	//shareFark = '<'+'li><'+'a href="http://cgi.fark.com/cgi/fark/edit.pl?new_url='+surl+'&amp;new_comment='+hl+'" target="_blank" title="add to fark"><'+'img src="/goinc/img/blog_fark.gif" alt="fark" /> Fark<'+'/a><'+'/li>';
	shareReddit = '<'+'li><'+'a href="http://reddit.com/submit?url='+surl+'&amp;title='+hl+'" target="_blank" title="add to reddit"><'+'img src="/goinc/img/blog_reddit.gif" alt="add to reddit" /> reddit<'+'/a><'+'/li>';
	//shareBlink = '<'+'li><'+'a href="http://www.blinklist.com/index.php?Action=Blink/addblink.php&amp;Description=&amp;Url='+surl+'&amp;Title='+hl+'" target="_blank" title="add to Blinklist"><'+'img src="/goinc/img/blog_blinklist.gif" alt="add to Blinklist" /> Blinklist<'+'/a><'+'/li>';
	shareNewsvine = '<'+'li><'+'a href="http://www.newsvine.com/_tools/seed&amp;save?url='+surl+'&amp;title='+hl+'" target="_blank" title="seed the vine"><'+'img src="/goinc/img/blog_newsvine.gif" alt="seed the vine" /> newsvine<'+'/a><'+'/li>';
	shareMixx = '<'+'li><'+'a href="http://www.mixx.com/submit?page_url='+surl+'" target="_blank" title="add to Mixx"><'+'img src="/goinc/img/blog_mixx.gif" alt="add to Mixx" /> Mixx<'+'/a><'+'/li>';
	//shareMagnolia = '<'+'li><'+'a href="http://ma.gnolia.com/bookmarklet/add?url='+surl+'&amp;title='+hl+'" target="_blank" title="add to ma.gnolia"><'+'img src="/goinc/img/blog_magnolia.gif" alt="add to ma.gnolia" /> ma.gnolia<'+'/a><'+'/li>';
	//shareSimpy = '<'+'li><'+'a href="http://www.simpy.com/simpy/LinkAdd.do?url='+surl+'&amp;title='+hl+'" target="_blank" title="add to simpy"><'+'img src="/goinc/img/blog_simpy.gif" alt="add to simpy" /> simpy<'+'/a><'+'/li>';
	//shareFurl = '<'+'li><'+'a href="http://www.furl.net/storeIt.jsp?u='+surl+'&amp;t='+hl+'" target="_blank" title="add to Furl"><'+'img src="/goinc/img/blog_furl.gif" alt="add to Furl" /> Furl<'+'/a><'+'/li>';
	shareGoogle = '<'+'li><'+'a href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk='+surl+'&amp;title='+hl+'" target="_blank" title="add to Google"><'+'img src="/goinc/img/blog_google.gif" alt="add to Google" /> Google<'+'/a><'+'/li>';
	
	//shareLink = '<'+'li class="shareText" style="border-top:1px solid #0081c6;">Link:<'+'br /><'+'input type="text" id="videoLink" readonly="readonly" onclick="selectAll(\'videoLink\');"  value="'+shareLink+'" /><'+'/li>';
	//shareEmbed = '<'+'li class="shareText">Embed:<'+'br /><'+'input type="text" id="videoEmbed" readonly="readonly" onclick="selectAll(\'videoEmbed\');" value="" /><'+'/li>';
	document.getElementById('videoLink').value = shareLink;
	document.getElementById('videoEmbed').value = sEmbed;
	
	shareLink = '';
	shareEmbed = '';
	
	shareVal = shareEmail+'\n'+shareFacebook+'\n'+shareRss+'\n'+shareDigg+'\n'+shareStumble+'\n'+shareDelicious+'\n'+shareFark+'\n'+shareReddit+'\n'+shareBlink+'\n'+shareNewsvine+'\n'+shareMixx+'\n'+shareMagnolia+'\n'+shareSimpy+'\n'+shareFurl+'\n'+shareGoogle+'\n'+shareLink+'\n'+shareEmbed;
	document.getElementById(elID).innerHTML = shareVal;
	
}

function shareNews(){
	
}

var videoNow = 1;
function playVideo(id,src){
	videoNow = id;
	//document.getElementById('videoThumb1').style.border = '2px solid #fff';
	//document.getElementById('videoThumb2').style.border = '2px solid #fff';
	//document.getElementById('videoThumb3').style.border = '2px solid #fff';
	//document.getElementById('videoThumb4').style.border = '2px solid #fff';
	//document.getElementById('videoThumb'+id).style.border = '2px solid #0081c6';
	var wHREF = window.location.href;
	if(wHREF.indexOf('/video/') > 0){
		document.getElementById('videoFrame').src = '/video/flashPlayer.asp?id='+src+'&s=l'; //auto play when clicked
	}else{
		//window.location = '#Avideo';
		document.getElementById('videoFrame').src = '/video/flashPlayer.asp?id='+src+'&s=s'; //auto play when clicked
		//document.getElementById('videoFrame').src = '/video/image.asp?id='+src; //no auto play
	}
		document.getElementById('vidDet'+document.getElementById('currentVideoID').innerHTML).style.background = '#fff';
		document.getElementById('vidDet'+src).style.background = '#ffc89b';
		document.getElementById('currentVideoID').innerHTML = src;
		document.getElementById('currentVideoViews').innerHTML = document.getElementById('videoViews'+id).innerHTML;
		document.getElementById('currentVideoHeadline').innerHTML = document.getElementById('videoHeadline'+id).innerHTML;
		document.getElementById('currentVideoDate').innerHTML = document.getElementById('videoDate'+id).innerHTML;
		document.getElementById('currentVideoOver').innerHTML = document.getElementById('videoOver'+id).innerHTML;
		document.getElementById('currentVideoSports').innerHTML = document.getElementById('videoSports'+id).innerHTML;
		changeEmbed(id,document.getElementById('videoHeadline'+id).innerHTML,'videoShare');
}

function moreVideo(sUrl){
	var chkID = '';
	if(document.getElementById('currentVideoID')){
		chkID = document.getElementById('currentVideoID').innerHTML;
		document.getElementById('videoFrame').src = '/video/flashImage.asp?id='+chkID+'&s=s';
	}
	var wHt;
	if(navigator.appName=='Netscape'){
		wHt = 700;
	}else{
		wHt = 541;
	}
	if(sUrl!=''){
		sUrl = '?qsURL='+sUrl;
	}
	//window.open('/video/'+sUrl,'moreVideo','resizable=no,scrollbars=no,status=no,toolbar=no,width=1004,height='+wHt+',menubar=no');
	window.location='/video/'+sUrl;
}
function changeSport(url){
	if(url!=''){
		url = '?qsURL='+url;
	}
	window.location = '/video/'+url;
}
function selectAll(id){
	document.getElementById(id).focus();
	document.getElementById(id).select();
}
function videoThumbHover(val,id){
	if(val == ''){
		if(videoNow==id){
			//document.getElementById('videoThumb'+id).style.border = '2px solid #0081c6';
			document.getElementById('videoThumb'+id).style.border = '2px solid #fff';
		}else{
			document.getElementById('videoThumb'+id).style.border = '2px solid #fff';
		}
		document.getElementById('videoThumb'+id).style.height = '56px';
		document.getElementById('videoThumb'+id).style.width = '75px';
	}else{
		document.getElementById('videoThumb'+id).style.border = '0px';
		document.getElementById('videoThumb'+id).style.height = '60px';
		document.getElementById('videoThumb'+id).style.width = '79px';
	}
}

function newsIMGOver(id,val){
	if(val == ''){
		document.getElementById('newsLink'+id).style.color='';
	}else{
		document.getElementById('newsLink'+id).style.color='#ff7300';
	}
}

function newsThumbHover(val,id){
	if(val == ''){
		newsHover = 0;
		val = '&nbsp;';
		if(newsNow==id){
			document.getElementById('newsThumbDiv'+id).style.border = '2px solid #0081c6';
		}else{
			document.getElementById('newsThumbDiv'+id).style.border = '2px solid #fff';
		}
		//document.getElementById('newsThumb'+id).style.height = '67px';
		//document.getElementById('newsThumb'+id).style.width = '100px';
	}else{
		newsHover = id;
		//document.getElementById('newsThumbDiv'+id).style.border = '0px';
		document.getElementById('newsThumbDiv'+id).style.border = '2px solid #ff7300';
	}
	document.getElementById('thumbHeadline').innerHTML = val;
}

function hThumbHover(id,val){
	if(id!=''){
		var thumbColor = '';
		var woot = id.indexOf('newsThumbIMG');
		var woot2 = id.indexOf('eventThumbIMG');
		//alert(woot);
		if(woot>=0&&woot2>=0){
			//thumbColor = 'E0E0E0';
			thumbColor = 'fff';
		}else{
			thumbColor = 'fff';
		}
		if(val=='out'){
			document.getElementById(id).style.border = '2px solid #'+thumbColor;
		}else{
			val='nHeadlineIMG'+id;
			document.getElementById(id).style.border = '2px solid #ff7300';
		}
	}
}
function changeNews(id){
	newsTimeLeft = newsTime;
	newsNow = id;
	var totNews = 1;
	if(document.getElementById('news2')){
		totNews = totNews + 1;
	}
	if(document.getElementById('news3')){
		totNews = totNews + 1;
	}
	if(document.getElementById('news4')){
		totNews = totNews + 1;
	}
	if(id == totNews){
		newsNext = 1;
	}else{
		newsNext = id + 1;
	}
	if(newsHover!=1){
		document.getElementById('newsThumbDiv1').style.border = '2px solid #fff';
	}
	if(newsHover!=2 && document.getElementById('news2')){
		document.getElementById('newsThumbDiv2').style.border = '2px solid #fff';
	}
	if(newsHover!=3 && document.getElementById('news3')){
		document.getElementById('newsThumbDiv3').style.border = '2px solid #fff';
	}
	if(newsHover!=4 && document.getElementById('news4')){
		document.getElementById('newsThumbDiv4').style.border = '2px solid #fff';
	}
	if(newsHover!=id){
		document.getElementById('newsThumbDiv'+id).style.border = '2px solid #0081c6';
	}
	document.getElementById('news1').style.display = 'none';
	if(document.getElementById('news2')){
		document.getElementById('news2').style.display = 'none';
	}
	if(document.getElementById('news3')){
		document.getElementById('news3').style.display = 'none';
	}
	if(document.getElementById('news4')){
		document.getElementById('news4').style.display = 'none';
	}
	document.getElementById('news'+id).style.display = 'block';
}

function init(){
	if(document.getElementById('features') && document.getElementById('newsDetail1')){
		if(document.getElementById('news1')){
			/*
			var ndht1,ndht2,ndht3,ndht4,ndht
			ndht1=0;
			ndht2=0;
			ndht3=0;
			ndht4=0;
			ndht=0;
			if(document.getElementById('news2')){
				document.getElementById('news2').style.display='block';
				ndht2 = document.getElementById('newsDetail2').offsetHeight;
				document.getElementById('news2').style.display='none';
				if(document.getElementById('news3')){
					document.getElementById('news3').style.display='block';
					ndht3 = document.getElementById('newsDetail3').offsetHeight;
					document.getElementById('news3').style.display='none';
					if(document.getElementById('news4')){
						document.getElementById('news4').style.display='block';
						ndht4 = document.getElementById('newsDetail4').offsetHeight;
						document.getElementById('news4').style.display='none';
					}
				}
			}
			
			ndht1 = document.getElementById('newsDetail1').offsetHeight;
			ndht = Math.max(ndht1,ndht2,ndht3,ndht4);
			ndht = ndht+'px';
			document.getElementById('newsDetail1').style.height=ndht;
			document.getElementById('thumbHeadline').innerHTML=document.getElementById('newsThumbDiv1').title;
			ndht1 = document.getElementById('thumbHeadline').offsetHeight;
			if(document.getElementById('news2')){
				document.getElementById('newsDetail2').style.height=ndht;
				document.getElementById('thumbHeadline').innerHTML=document.getElementById('newsThumbDiv2').title;
				ndht2 = document.getElementById('thumbHeadline').offsetHeight;
			}
			if(document.getElementById('news3')){
				document.getElementById('newsDetail3').style.height=ndht;
				document.getElementById('thumbHeadline').innerHTML=document.getElementById('newsThumbDiv3').title;
				ndht3 = document.getElementById('thumbHeadline').offsetHeight;
			}
			if(document.getElementById('news4')){
				document.getElementById('newsDetail4').style.height=ndht;
				document.getElementById('thumbHeadline').innerHTML=document.getElementById('newsThumbDiv4').title;
				ndht4 = document.getElementById('thumbHeadline').offsetHeight;
			}
			document.getElementById('thumbHeadline').innerHTML='';
			ndht = Math.max(ndht1,ndht2,ndht3,ndht4);
			ndht = ndht+'px';
			document.getElementById('thumbHeadline').style.height=ndht;
			*/
			var newsIntervalRun;
			if(document.getElementById('news2')){
				newsIntervalRun = setInterval('newsCountdown();', 500);
			}
		}
	}
	if(document.getElementById('jumpTo')){
		var jumpto = '';
		var btt = '<a href="#" class="hideStyle">BACK TO TOP</a>';
		if(document.getElementById('sportmenu')){
			jumpto = jumpto + '<li><a href="#Asportmenu">NAVIGATION</a></li>';
			//document.getElementById('sportmenu').innerHTML = btt+document.getElementById('sportmenu').innerHTML;
		}
		if(document.getElementById('newsArticle')){
			jumpto = jumpto + '<li><a href="#AnewsArticle">NEWS ARTICLE</a></li>';
			//document.getElementById('newsArticle').innerHTML = btt+document.getElementById('newsArticle').innerHTML;
		}
		if(document.getElementById('scheduleall')){
			jumpto = jumpto + '<li><a href="#Ascheduleall">SCHEDULE</a></li>';
			//document.getElementById('scheduleall').innerHTML = btt+document.getElementById('scheduleall').innerHTML;
		}
		if(document.getElementById('schedulefull')){
			jumpto = jumpto + '<li><a href="#Aschedulefull">SCHEDULE</a></li>';
			//document.getElementById('schedulefull').innerHTML = btt+document.getElementById('schedulefull').innerHTML;
		}
		if(document.getElementById('spotlight')){
			jumpto = jumpto + '<li><a href="#Aspotlight">SCHEDULE</a></li>';
			//document.getElementById('spotlight').innerHTML = btt+document.getElementById('spotlight').innerHTML;
		}
		if(document.getElementById('roster')){
			jumpto = jumpto + '<li><a href="#Aroster">ROSTER</a></li>';
			//document.getElementById('roster').innerHTML = btt+document.getElementById('roster').innerHTML;
		}
		if(document.getElementById('coaches')){
			jumpto = jumpto + '<li><a href="#Acoaches">COACHES</a></li>';
			//document.getElementById('coaches').innerHTML = btt+document.getElementById('coaches').innerHTML;
		}
		if(document.getElementById('features')){
			jumpto = jumpto + '<li><a href="#Afeatures">FEATURED HEADLINES</a></li>';
			//document.getElementById('features').innerHTML = btt+document.getElementById('features').innerHTML;
			showFeatureSlider();
		}
		if(document.getElementById('headlines')){
			jumpto = jumpto + '<li><a href="#Aheadlines">MORE HEADLINES</a></li>';
			//document.getElementById('headlines').innerHTML = btt+document.getElementById('headlines').innerHTML;
		}
		if(document.getElementById('stats')){
			jumpto = jumpto + '<li><a href="#Astats">STATS</a></li>';
			//document.getElementById('stats').innerHTML = btt+document.getElementById('stats').innerHTML;
		}
		if(document.getElementById('scheduleresults')){
			jumpto = jumpto + '<li><a href="#Ascheduleresults">SCHEDULE/RESULTS</a></li>';
			//document.getElementById('scheduleresults').innerHTML = btt+document.getElementById('scheduleresults').innerHTML;
		}
		if(document.getElementById('video')){
			jumpto = jumpto + '<li><a href="#Avideo">VIDEO HIGHLIGHTS</a></li>';
			//document.getElementById('video').innerHTML = btt+document.getElementById('video').innerHTML;
		}
		//if(document.getElementById('videoLinks')){
		//	changeEmbed(document.getElementById('currentVideoID').innerHTML,document.getElementById('currentVideoHeadline').innerHTML,'videoShare');
		//}
		document.getElementById('jumpTo').innerHTML = jumpto;
	}
	if(document.getElementById('tCol')){
		showUnit('tCol');
	}
	if(document.getElementById('mColUnit')){
		showUnit('mColUnit');
	}
	if(document.getElementById('cColUnit')){
		showUnit('cColUnit');
	}
	if(document.getElementById('lColUnit')){
		showUnit('lColUnit');
	}
	if(document.getElementById('bCol')){
		showUnit('bCol');
	}
}

function showUnit(id){
	var unitVal = document.getElementById(id).innerHTML;
	var unitValExp = "";
	if(unitVal.length > 0){
		unitValExp = /&nbsp;/gi;
		unitVal = unitVal.replace(unitValExp,'');
		unitValExp = /\n/gi;
		unitVal = unitVal.replace(unitValExp,'');
		unitValExp = /\t/gi;
		unitVal = unitVal.replace(unitValExp,'');
		unitValExp = / /gi;
		unitVal = unitVal.replace(unitValExp,'');
	}
	if(unitVal.length > 1){
		unitVal = document.getElementById(id).innerHTML;
		unitValExp = /&nbsp;/gi;
		unitVal = unitVal.replace(unitValExp,' ');
		document.getElementById(id).innerHTML = unitVal;
		//document.getElementById(id).style.display='block';
		$('#'+id).slideDown('slow');
	}
}
function showFeatureSlider(){
	try{
		//document.getElementById('panel1').style.visibility='visible';
		document.getElementById('panel2').style.display='block';
		document.getElementById('panel3').style.display='block';
		document.getElementById('panel4').style.display='block';
	}catch(e){
		
	}
}

function printNews(id){
	window.open('/news/print/?newsID='+id,'printNews','toolbar=no,width=0,height=0,scrollbars=no,resizable=no');
}

function shareNews(){
	if(document.getElementById('share').style.display=='none'){
		document.getElementById('shareBtn').src = '/goinc/img/ico_minus.gif';
		document.getElementById('shareBtn').alt = 'minus';
		document.getElementById('share').style.display='block';
	}else{
		document.getElementById('shareBtn').src = '/goinc/img/ico_plus.gif';
		document.getElementById('shareBtn').alt = 'plus';
		document.getElementById('share').style.display='none';
	}
}
function shareVideo(vStuff){
	if(vStuff!=''){
		document.getElementById('shareBtnVid').src = '/goinc/img/ico_minus.gif';
		document.getElementById('videoShareDiv').style.display='block';
	}else{
		document.getElementById('shareBtnVid').src = '/goinc/img/ico_plus.gif';
		document.getElementById('videoShareDiv').style.display='none';
	}
}
function initSchedule(woot){
	if(document.getElementById('schedContainer')){
		//document.getElementById('schedule').style.display='block';
		if(document.getElementById('bbSchedule')){
		
		}else{
			try{
				document.getElementById('results').style.display='block';
			}catch(e){
				
			}
			var ht1 = document.getElementById('results').offsetHeight;
			var ht2 = document.getElementById('schedule').offsetHeight;
			var ht3 = 0;
			if(woot != ''){
				ht3 = ht1+ht2;
			}else{
				//switchSchedule('results');
				switchSchedule('schedule');
				//document.getElementById('schedule').style.display='none';
				//document.getElementById('results').style.display='none';
				ht3 = Math.max(ht1,ht2);
			}
			ht3 = ht3+5;
			document.getElementById('schedContainer').style.height=ht3+'px';
		}
	}
}

function switchSchedule(id){
	if(id=='schedule'){
		document.getElementById('results').style.display = 'none';
		$('#schedule').fadeIn();
	}else{
		document.getElementById('schedule').style.display = 'none';
		$('#results').fadeIn();
	}
	//document.getElementById('schedule').style.display = 'none';
	//document.getElementById('results').style.display = 'none';
	document.getElementById('aschedule').style.color = '#ccc';
	document.getElementById('aresults').style.color = '#ccc';
	document.getElementById('aschedule').style.background = '#0081c6';
	document.getElementById('aresults').style.background = '#0081c6';
	//document.getElementById(id).style.display = 'block';
	document.getElementById('a'+id).style.color = '#002d62';
	document.getElementById('a'+id).style.background = '#c3d8ea';
}

function updateNews(){
	var nstart = document.getElementById('startDate').value;
	var nend = document.getElementById('endDate').value;
	var nsport = document.getElementById('selectSport').value;
	var qs = '';
	qs = '/news/';
	//qs = window.location;
	//qs = String(qs);
	//if(qs.length>2){
	//	var qsNum = qs.indexOf('?');
	//	if(qsNum){
	//		qs=qs.substr(0,qsNum);
	//	}
	//}else{
	//	qs = '';
	//}
	qs = qs + '?strStart='+nstart+'&strEnd='+nend;
	if(nsport != ''){
		qs = qs+'&qsSport='+nsport;
	}
	//alert(qs);
	window.location = qs;
}
function updateNews2(){
	var nsport = document.getElementById('selectSport').value;
	var qs = '/news/';
	if(nsport != ''){
		qs = qs+'?qsSport='+nsport;
	}
	window.location = qs;
}
function searchGOTxt(obj) {
	if(obj.value == 'Search...') {
		obj.value = '';
	} else {
		if(obj.value == '') {
			obj.value = 'Search...';
		}
	}
}