function Toggle( theId )
{
	obj = document.getElementById( theId );
	if(obj.style.visibility != 'visible')
		ToggleOn( theId );
	else
		ToggleOff( theId );
}

function ToggleOn( theId ) {
		obj = document.getElementById( theId );
		obj.style.visibility = 'visible';
		obj.style.display = 'block';
}

function ToggleOff( theId ) {
		obj = document.getElementById( theId );
		obj.style.visibility = 'hidden';
		obj.style.display = 'none';

}

function SwitchTo(nId){
	var items = Array('headlines', 'world', 'national', 'business', 'technology', 'sports', 'entertainment');
	for(a=0; a<items.length; a++)
		ToggleOff(items[a]);
	ToggleOn(nId);	
}

function CreateBookmarkLink() {

 title = document.title; 
  // Blogger - Replace with <$BlogItemTitle$> 
  // MovableType - Replace with <$MTEntryTitle$>

 url = document.location.href;
  // Blogger - Replace with <$BlogItemPermalinkURL$> 
  // MovableType - Replace with <$MTEntryPermalink$>
  // WordPress - <?php bloginfo('url'); ?>

	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; }
 }