
function onClick1(){
	document.getElementById("homebutton").src="images/homebuttonclick.gif";
	setTimeout("onMouseReleased1()",30);
}

function onMouseReleased1(){
	document.getElementById("homebutton").src="images\homebutton.gif";
}

function popup(){
	window.open ('lyrics.php?lyrics=%3$s','null', 'height=250,width=450,status=yes,toolbar=no,menubar=no,location=no');
}

function report_item(item_id, type, title) {

	var url = "http://" + window.location.hostname + '/report_item/';
	do_report=confirm('You are about to report content on this page.');
	if(do_report){
		$("#itemreport").load(url, { 'item_id': item_id, 'type': type, 'title': title } );
	}
}

function add_to_fav(gameid) {

	var url = "http://" + window.location.hostname + '/user/add_fav';
	$("#addtofav").load(url, {'gameid': gameid});
	
}

function add_friend(friendid) {

	var url = "http://" + window.location.hostname + '/user/add_friend';
	$("#addfriend").load(url, {'friendid': friendid});
	
}

// top 100 popup
function popout_top_100() {
	window.open("/top_100", "mywindow","location=0,status=no,menubar=no,resizable=no,scrollbars=0,width=650,height=252");
}


// game scores

function print_score(score) {
	alert (score);
}
//if (top != self) top.location.href = location.href;   <----- removes frame
