// JavaScript Document


function startLoading() {
	Element.hide('rel_int');
}
function finishLoading() {
	Element.show('rel_int');
}

function loadContent(id,sid) {
	startLoading();
	new Ajax.Updater('rel_int', '/latest.php', {method: 'post', postBody:'lpage='+ id +'&amp;set='+ sid +''});
	finishLoading();
}

function snewsLoading() {
	Element.hide('newsContent');
}
function fnewsLoading() {
	Element.show('newsContent');
}

function loadNews(id) {
	snewsLoading();
	new Ajax.Updater('newsContent', '/newser.php', {method: 'post', postBody:'news_page='+ id +''});
	fnewsLoading();
}

function simL() {
	Element.hide('release');
}
function fimL() {
	Element.show('release');
}

function loadImages(id) {
	simL();
	new Ajax.Updater('release', '/images.php', {method: 'post', postBody:'rel_id='+ id +''});
	fimL();
}

function loadSleeve(id) {
	simL();
	new Ajax.Updater('release', '/sleeve.php', {method: 'post', postBody:'rel_id='+ id +''});
	fimL();
}

function loadTrail(id) {
	simL();
	new Ajax.Updater('release', '/trailer.php', {method: 'post', postBody:'rel_id='+ id +''});
	fimL();
}

function sLsearch() {
	Element.hide('search_results');
}
function fLsearch() {
	Element.show('search_results');
}

function loadSearch(id,search_name) {
	sLsearch();
	new Ajax.Updater('search_results', '/searcher.php', {method: 'post', postBody:'page='+ id +'search='+ search_name +''});
	fLsearch();
}

function sCSLoad() {
	Element.hide('csContent');
}
function fCSLoad() {
	Element.show('csContent');
}

function loadCS(id) {
	sCSLoad();
	new Ajax.Updater('csContent', '/coming-sooner.php', {method: 'post', postBody:'cs_page='+ id +''});
	fCSLoad();
}