window.onload = function()	{}

/* Note: In Opera 9.01, if onunload is defined, the script stops executing 
window.onunload = function() {}
*/

var ldUnitsProposedConcepts, ldIndexProposedConcepts = 0, ldStateProposedConcepts = 0, ldTimerProposedConcepts;

function showSearchingBar(sId) {
	if (document.getElementById) {
	    var bar = document.getElementById(sId);
		if (bar && bar.style && bar.getElementsByTagName) {
			ldUnitsProposedConcepts = bar.getElementsByTagName('DIV');
			bar.style.visibility = 'visible';
			ldTimerProposedConcepts = window.setInterval(ldBarOnTimer, 70);
		}
	}
}

function ldBarOnTimer() {
	switch (ldStateProposedConcepts) {
		case 0:
			ldUnitsProposedConcepts[ldIndexProposedConcepts].style.visibility = 'visible';
			++ldIndexProposedConcepts;
			if (ldIndexProposedConcepts == ldUnitsProposedConcepts.length) {
				++ldStateProposedConcepts;
				ldIndexProposedConcepts = 0;
			}
			break;
		case 1:
			ldUnitsProposedConcepts[ldIndexProposedConcepts].style.visibility = 'hidden';
			++ldIndexProposedConcepts;
			if (ldIndexProposedConcepts == ldUnitsProposedConcepts.length) {
				++ldStateProposedConcepts;
				ldIndexProposedConcepts = ldUnitsProposedConcepts.length - 1;
			}
			break;
		case 2:
			ldUnitsProposedConcepts[ldIndexProposedConcepts].style.visibility = 'visible';
			--ldIndexProposedConcepts;
			if (ldIndexProposedConcepts == -1) {
				++ldStateProposedConcepts;
				ldIndexProposedConcepts = ldUnitsProposedConcepts.length - 1;
			}
			break;
		case 3:
			ldUnitsProposedConcepts[ldIndexProposedConcepts].style.visibility = 'hidden';
			--ldIndexProposedConcepts;
			if (ldIndexProposedConcepts == -1) {
				ldStateProposedConcepts = 0;
				ldIndexProposedConcepts = 0;
			}
			break;
	}
}

function showPleaseWaitProposedConcepts() {
	if (document.getElementById("proposedConceptsCloudDiv")) {
		document.getElementById("proposedConceptsCloudDiv").style.visibility="hidden";
		document.getElementById("proposedConceptsCloudDiv").style.display="none";
	}
	
	if (document.getElementById("proposedConceptsCloudWait")) {
		document.getElementById("proposedConceptsCloudWait").style.visibility="visible";
		document.getElementById("proposedConceptsCloudWait").style.display="block";
	}
	
	if (document.getElementById("pleaseWaitProposedConcepts")) {
		document.getElementById("pleaseWaitProposedConcepts").style.visibility="visible";
		document.getElementById("pleaseWaitProposedConcepts").style.display="block";
	}

   	showSearchingBar('pleaseWaitProposedConceptsBarId');
}

function hidePleaseWaitProposedConcepts() {
	if (document.getElementById("proposedConceptsCloudDiv")) {
		document.getElementById("proposedConceptsCloudDiv").style.visibility="visible";
		document.getElementById("proposedConceptsCloudDiv").style.display="block";
	}

	if (document.getElementById("proposedConceptsCloudWait")) {
		document.getElementById("proposedConceptsCloudWait").style.visibility="hidden";
		document.getElementById("proposedConceptsCloudWait").style.display="none";
	}
	
	if (document.getElementById("pleaseWaitProposedConcepts")) {
		document.getElementById("pleaseWaitProposedConcepts").style.visibility="hidden";
		document.getElementById("pleaseWaitProposedConcepts").style.display="none";
	}
	
	window.clearInterval(ldTimerProposedConcepts);
}