var currentState;
var stateCounter=0;
var tempStateCounter;


function displayPostmoviePopup() {

	if (stateCounter==tempStateCounter+2) {
		hideElement('movie');
		showElement('postmovie');
	}

}

function getUpdate(typ,pr1,pr2,pid) {
	//	document.write('..');
	if(pid != null) {
		stateCounter++;
		if((typ == "state")&&(pr1 != undefined)) {
			currentState = pr1;
			if(currentState==3) {
				setTimeout("displayPostmoviePopup()",500);
				tempStateCounter=stateCounter;
			}	
		}
	}
}
