function show_help(){
//$("#flashBanner").hide('fast');	
document.getElementById("flashBanner").style.display = "none";
document.getElementById("flashStill").style.display = "block";
$("#panel").slideDown('fast');
}
function hide_help(){
//$("#flashBanner").show('fast');
document.getElementById("flashStill").style.display = "none";
document.getElementById("flashBanner").style.display = "block";
$("#panel").slideUp('fast');
}



function show_poll(){
$("#poll").slideDown('fast');
$("#pollNavClose").slideDown('fast');
$("#pollNav").slideUp('fast');
}
function hide_poll(){
$("#pollNav").slideDown('fast');
$("#poll").slideUp('fast');
$("#pollNavClose").slideUp('fast');
}


function checkSbarCookie(c_name){
if (document.cookie.length>0){
  c_start=document.cookie.indexOf(c_name + "=");
  if (c_start!=-1){ 
    c_start=c_start + c_name.length+1 ;
    c_end=document.cookie.indexOf(";",c_start);
    if (c_end==-1) c_end=document.cookie.length
    return unescape(document.cookie.substring(c_start,c_end));
    } 
  }
  return ""
}

function displaySportsBarCookie(){
    SportsBarShowCheck = checkSbarCookie('SportsBar');
    if (SportsBarShowCheck!=null && SportsBarShowCheck!=""){
	    // cookie exists, show the bar
		alert("Cookie has been set");	
		show_Sports();
    }else{        
		// hide the bar and delete the cookie
		hide_Sports()
       }
}


function sportsBarCookie(c_name,value,expiredays){
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : "; expires="+exdate.toGMTString());
}


function show_Sports(){	
sportsBarCookie('SportsBar',"SportsBarIsBeingShown",365);
// set cookie
alert("set Coookie")
document.getElementById("SportsBar").style.display = "block";
document.getElementById("HideSportsBarNavLink").style.display = "block";
document.getElementById("ShowSportsBarNavLink").style.display = "none";
}

function hide_Sports(){
sportsBarCookie('SportsBar',"SportsBarIsBeingHidden",-1);
// remove cookie
alert("removed Coookie");
document.getElementById("SportsBar").style.display = "none";
document.getElementById("ShowSportsBarNavLink").style.display = "block";
document.getElementById("HideSportsBarNavLink").style.display = "none";
}





function show_Weather(){
document.getElementById("WeatherBar").style.display = "block";
document.getElementById("HideWeatherBarNavLink").style.display = "block";
document.getElementById("ShowWeatherBarNavLink").style.display = "none";
}
function hide_Weather(){
document.getElementById("WeatherBar").style.display = "none";
document.getElementById("ShowWeatherBarNavLink").style.display = "block";
document.getElementById("HideWeatherBarNavLink").style.display = "none";
}


function show_help2(){
//$("#flashBanner").hide('fast');	
$("#panel").slideDown('fast');
}
function hide_help2(){
//$("#flashBanner").show('fast');
$("#panel").slideUp('fast');
}





function show_help3(){
$("#panel3").slideDown('fast');
}
function hide_help3(){

$("#panel3").slideUp('fast');
}




function show_help4(){
//$("#flashBanner").hide('fast');	
document.getElementById("flashStill").style.display = "block";	
document.getElementById("flashBanner").style.display = "none";
//document.getElementById("flashBanner").style.visibility = "hidden";
$("#panel3").slideDown('fast');
}

function alertSize() {
	var ScrnSize = "UnCommon"
	var myWidth = 0
	if( typeof( window.innerWidth ) == 'number' ) {
		myWidth = window.innerWidth;
	} else if( document.documentElement && ( document.documentElement.clientWidth) ) {
		myWidth = document.documentElement.clientWidth;
	} else if( document.body && ( document.body.clientWidth) ) {
		myWidth = document.body.clientWidth;
	}
	//window.alert( 'Width = ' + myWidth);
	var trapNumber = "1200";
	if(myWidth < trapNumber){
		//document.body.bgColor = 'red';
		document.getElementById('mainBodyClass').className="body2"
	}else{
		//document.body.bgColor = 'white';
		document.getElementById('mainBodyClass').className="body"
	}
}

function show_help2(){
//$("#flashBanner").hide('fast');
$("#panel").slideDown('fast');
}
function hide_help2(){
//$("#flashBanner").show('fast');
$("#panel").slideUp('fast');
}
function show_help4(){
//$("#flashBanner").hide('fast');
$("#panel3").slideDown('fast');
document.getElementById("flashBanner").style.display = "none";
document.getElementById("flashStill").style.display = "block";	
}
function hide_help4(){
//$("#flashBanner").show('fast');
$("#panel3").slideUp('fast');
}
function show_poll(){
$("#poll").slideDown('fast');
$("#pollNavClose").slideDown('fast');
$("#pollNav").slideUp('fast');
}

function hide_poll(){
$("#pollNav").slideDown('fast');
$("#poll").slideUp('fast');
$("#pollNavClose").slideUp('fast');
}


		function show_ads(){
		$("#ads").fadeIn('fast');
		$("#adsShow").fadeOut('fast')
		}
 
		function hide_ads(){
		 $("#ads").fadeOut('fast')
		 $("#adsShow").fadeIn('fast');
		}
		
		



function hide_help4(){
//$("#flashBanner").show('fast');
//document.getElementById("flashBanner").style.visibility = "visible";
document.getElementById("flashBanner").style.display = "block";
document.getElementById("flashStill").style.display = "none";	
$("#panel3").slideUp('fast');
}

function show_ContactMain(){
$("#ContactMain").slideDown('fast');
}
function hide_ContactMain(){
$("#ContactMain").slideUp('fast');
}
function show_LiveChat(){
$("#LiveChatIntroPanel").slideDown('fast');
}
function hide_LiveChat(){
$("#LiveChatIntroPanel").slideUp('fast');
}
function show_help_FromContactCenter(){	
$("#panel_2").slideDown('fast');
}
function hide_help_FromContactCenter(){
$("#panel_2").slideUp('fast');
}
function show_24_7LivePersonServicePanel(){
$("#24_7LivePersonServicePanel").slideDown('fast');
}
function hide_24_7LivePersonServicePanel(){
$("#24_7LivePersonServicePanel").slideUp('fast');
}



function CreateBookmarkLink() {
title = document.title; 
UrlValue = window.location.href;
url = UrlValue;
//alert(title);
	if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} else if( window.external ) { // IE Favorite
		window.external.AddFavorite( url, title); }
	else if(window.opera && window.print) { // Opera Hotlist
		return true; }
 }




