function change_news(title, header, file, link) {
	//div_title = document.getElementById('featured_title');
	//div_title.innerHTML = '<b>'+title+'</b><br/>'+header;
	div_image = document.getElementById('featured_image');
	div_image.style.background = 'url('+file+') no-repeat';
	div_link = document.getElementById('featured_link');
	div_link.href = link;
	div_link.innerHTML = title;
	div_header = document.getElementById('featured_header');
	div_header.innerHTML = header;
}
function stripslashes (str) {
    return (str+'').replace(/\\(.?)/g, function (s, n1) {
        switch (n1) {
            case '\\':
                return '\\';
            case '0':
                return '\0';
            case '':
                return '';
            default:
                return n1;
        }
    });
}
function sendPage() {
	mail_str = "mailto:?";
	mail_str += "body=" + "You have been sent a link from the Newcastle Vipers official website %0D%0A%0D%0A" + location.href + "%0D%0A%0D%0ARegards%0D%0A%0D%0ANewcastle Vipers";
	location.href = mail_str;
}
function addBookmark(title,url) {
	if (window.sidebar) { 
	window.sidebar.addPanel(title, url,""); 
	} else if( document.all ) {
	window.external.AddFavorite( url, title);
	} else if( window.opera && window.print ) {
	return true;
	}
}
function printPage() {
	window.print();
}
function live(id) {
	document.getElementById('live_fixtures').style.display = 'none';
	document.getElementById('live_results').style.display = 'none';
	document.getElementById('live_tables').style.display = 'none';
	document.getElementById('live_stats').style.display = 'none';
	document.getElementById('live_'+id).style.display = 'block';
	
	document.getElementById('live_link_fixtures').style.backgroundColor = '#222222';
	document.getElementById('live_link_results').style.backgroundColor = '#222222';
	document.getElementById('live_link_tables').style.backgroundColor = '#222222';
	document.getElementById('live_link_stats').style.backgroundColor = '#222222';
	document.getElementById('live_link_'+id).style.backgroundColor = '#AC9863';
	
	document.getElementById('live_link_fixtures').style.color = '#AC9863';
	document.getElementById('live_link_results').style.color = '#AC9863';
	document.getElementById('live_link_tables').style.color = '#AC9863';
	document.getElementById('live_link_stats').style.color = '#AC9863';
	document.getElementById('live_link_'+id).style.color = '#222222';
	
}
function album(file) {
	document.getElementById('img_large').src = 'http://www.vipershockey.co.uk/gallery/'+file;
}
