// JavaScript Document

function show_hide_div(div_id) {
	var elem, vis;

	if( document.getElementById ) // this is the way the standards work
    	elem = document.getElementById( div_id );
	else if( document.all ) // this is the way old msie versions work
    	elem = document.all[div_id];
	else if( document.layers ) // this is the way nn4 works
    	elem = document.layers[div_id];

	vis = elem.style;
  	// if the style.display value is blank we try to figure it out here
  	if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
    	vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
		
	vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}

function addbookmark(strDomainName)
{
	bookmarkurl="http://www."+strDomainName;
	bookmarktitle="All about Betting";

	if (window.sidebar)
	{ // Mozilla Firefox Bookmark
		window.sidebar.addPanel(bookmarktitle, bookmarkurl,"");
	}
	else if( window.external )
	{ // IE Favorite
		window.external.AddFavorite( bookmarkurl, bookmarktitle);
	}
	else if(window.opera && window.print)
	{ // Opera Hotlist
		return(true);
	}
	return(false);
}

function setAsHomePage(ctl, strDomainName)
{
	bookmarkurl="http://www."+strDomainName;

	if( window.external )
	{ // IE
		ctl.style.behavior='url(#default#homepage)';
		ctl.setHomePage(bookmarkurl);
	}
	return(false);
}
