//********************************************************************************************************
//
//		Java Script
//		Developer : Asnaka mawilmada
//		Company	  : Net Starter 
//		Web Site  : http://www.netstarter.com.au
//
//********************************************************************************************************

var globalCurrentMovieName='';
var tmpMovieName='';

function ShowFlash(name){
	
	if (globalCurrentMovieName==''){

		new Effect.Opacity('ShowLargeMovie7', { from: 0, to: 1})
		document.getElementById('SlideShowContainer').style.visibility = 'visible';

	}else{
		tmpMovieName=name;
		
		if (globalCurrentMovieName=='ShowLargeMovie1'){new Effect.Opacity('ShowLargeMovie7', { from: 1, to: 0,afterFinish:onFadeAfterFinish})}
		if (globalCurrentMovieName=='ShowLargeMovie2'){new Effect.Opacity('ShowLargeMovie2', { from: 1, to: 0,afterFinish:onFadeAfterFinish})}		
		if (globalCurrentMovieName=='ShowLargeMovie3'){new Effect.Opacity('ShowLargeMovie3', { from: 1, to: 0,afterFinish:onFadeAfterFinish})}		
		if (globalCurrentMovieName=='ShowLargeMovie4'){new Effect.Opacity('ShowLargeMovie4', { from: 1, to: 0,afterFinish:onFadeAfterFinish})}		
		if (globalCurrentMovieName=='ShowLargeMovie5'){new Effect.Opacity('ShowLargeMovie5', { from: 1, to: 0,afterFinish:onFadeAfterFinish})}		
		if (globalCurrentMovieName=='ShowLargeMovie6'){new Effect.Opacity('ShowLargeMovie6', { from: 1, to: 0,afterFinish:onFadeAfterFinish})}	
		if (globalCurrentMovieName=='ShowLargeMovie7'){new Effect.Opacity('ShowLargeMovie7', { from: 1, to: 0,afterFinish:onFadeAfterFinish})}			

	}
	
	globalCurrentMovieName=name;
	
}

function onFadeAfterFinish(){
	
		if (tmpMovieName=='ShowLargeMovie1'){new Effect.Opacity('ShowLargeMovie7', { from: 0, to: 1})}
		if (tmpMovieName=='ShowLargeMovie2'){new Effect.Opacity('ShowLargeMovie2', { from: 0, to: 1})}		
		if (tmpMovieName=='ShowLargeMovie3'){new Effect.Opacity('ShowLargeMovie3', { from: 0, to: 1})}		
		if (tmpMovieName=='ShowLargeMovie4'){new Effect.Opacity('ShowLargeMovie4', { from: 0, to: 1})}		
		if (tmpMovieName=='ShowLargeMovie5'){new Effect.Opacity('ShowLargeMovie5', { from: 0, to: 1})}		
		if (tmpMovieName=='ShowLargeMovie6'){new Effect.Opacity('ShowLargeMovie6', { from: 0, to: 1})}	
		if (tmpMovieName=='ShowLargeMovie7'){new Effect.Opacity('ShowLargeMovie7', { from: 0, to: 1})}	
}

	


function hideFlash(){
		

		if (document.getElementById) { // DOM3 = IE5, NS6
		
		if (globalCurrentMovieName=='ShowLargeMovie1'){new Effect.Opacity('ShowLargeMovie7', { from: 1, to: 0,afterFinish:onAfterFinish})}
		if (globalCurrentMovieName=='ShowLargeMovie2'){new Effect.Opacity('ShowLargeMovie2', { from: 1, to: 0,afterFinish:onAfterFinish})}		
		if (globalCurrentMovieName=='ShowLargeMovie3'){new Effect.Opacity('ShowLargeMovie3', { from: 1, to: 0,afterFinish:onAfterFinish})}		
		if (globalCurrentMovieName=='ShowLargeMovie4'){new Effect.Opacity('ShowLargeMovie4', { from: 1, to: 0,afterFinish:onAfterFinish})}		
		if (globalCurrentMovieName=='ShowLargeMovie5'){new Effect.Opacity('ShowLargeMovie5', { from: 1, to: 0,afterFinish:onAfterFinish})}		
		if (globalCurrentMovieName=='ShowLargeMovie6'){new Effect.Opacity('ShowLargeMovie6', { from: 1, to: 0,afterFinish:onAfterFinish})}	
		if (globalCurrentMovieName=='ShowLargeMovie7'){new Effect.Opacity('ShowLargeMovie7', { from: 1, to: 0,afterFinish:onAfterFinish})}	


			
		}
		else {
			if (document.layers) { // Netscape 4
				document.SlideShowContainer.visibility = 'hidden';
			}
			else { // IE 4
				document.all.SlideShowContainer.style.visibility = 'hidden';
			}
		}

}	
function onAfterFinish(){
	document.getElementById('SlideShowContainer').style.visibility = 'hidden';
	globalCurrentMovieName=''
}
	
function hideAllSubMoviesFlash(){
	new Effect.Opacity('ShowLargeMovie1', { from: 1, to: 0})
	new Effect.Opacity('ShowLargeMovie2', { from: 1, to: 0})
	new Effect.Opacity('ShowLargeMovie3', { from: 1, to: 0})
	new Effect.Opacity('ShowLargeMovie4', { from: 1, to: 0})
	new Effect.Opacity('ShowLargeMovie5', { from: 1, to: 0})
	new Effect.Opacity('ShowLargeMovie6', { from: 1, to: 0})
	new Effect.Opacity('ShowLargeMovie7', { from: 1, to: 0})
}