function getDisplayFriendID() { return MySpace.ClientContext.DisplayFriendId; }   

function GetPopupWithLoginCheck()
{
	if (isFriend > 0)
	    openDialog(enterPop, 550, 480);
	else
    	alert("Add Flip Video to your friends before you submit your design!");
}

//LIGHTBOX Code

var win = null;
var index = 1;
function openDialog(id,w,h) {
    Dialog.alert($(id).innerHTML, {className: "alphacube",  width:w, height:h, id: "d" + index})
    index++;
	document.getElementById('flashHide').style.display = 'none';
}

function lastDialog(id) {
    Dialog.confirm($(id).innerHTML, {className: "alphacube",  width:250, okLabel: "Close All", ok: closeAllModalWindows})
}

function closeAllModalWindows() {
    Windows.closeAllModalWindows();
    //return true;
	document.getElementById('flashHide').style.display = 'inline';
}

function checkForMessages(){
	
			if(location.hash == "#forward") {
					document.location = "http://messaging.myspace.com/index.cfm?fuseaction=mail.forward&friendID=277220599&f=forwardprofile";
					location.hash = "#";	
			}
}
