var preview;

function focusMe(){
	
	self.focus();
	
}

function flashOpen( url ) {
	
	location = url;
	
}

function flashOpenNew( url ) {
	preview.location = url;
	preview.focusMe();
}

function openPopup( url ) {
	
	var xposition=0;
	var yposition=0;
	var width = 800;
	var height = 600;
	if ((parseInt(navigator.appVersion) >= 4 ))
	{
		xposition = (screen.width - width) / 2;
		yposition = (screen.height - height) / 2;
	}
	
	preview = window.open( url, '', 'width=' + width + ',height='+height+', screenx='+xposition+', screeny='+yposition+', left='+ xposition +', top='+yposition);

}

function closePreview() {
	
	window.close();
	
}
function openFacebook() {
	
}