function jumpToAMP()
{	
	$('html, body').animate({scrollTop:0}, function() {});
}

function focusCMS()
{	
	$('html, body').animate({scrollTop:650}, function() {});
}


function reloadAMP()
{
	mp = frames['player'];
	mp.reloadAMP();
	
	jumpToAMP();
}


function resizeCMS(size)
{
	ifr = $("#cms"); 

	//resetting size
	ifr.attr("height",size);
	
	return true;
}

function contentCall(content_url,media_gen,user_id)
{
	frames['player'].contentCall(content_url,media_gen,user_id);
	window.top.jumpToAMP();
}

function playerCall(user_id,is_artist)
{	
	frames['player'].playerCall(user_id,is_artist);
}


function refreshPlayerTabs()
{
	frames['player'].refreshPlayerTabs();
}	


/* FaceBook routines */

function fbk_redirect(url) {
	window.location.href=url;	
};

