
function movieStoped_ShowProTitel(){		//  --- this come to work when you click on "embed" "send" or "list" buttons
clearTimeout(auShowTite); 
clearTimeout(showtitelfirst);
//  setTimeout(function(){titelSlideShow("show");},500);
}

function showFragment(){
	videoObj.stopit();
	if(lastActiveMenu == "empty"){this.showbillboard('show')};

	setTimeout(function(){videoObj.formvisibleplace('R_holder');},200);
	
			var obj = document.getElementById('R_holder').style;
			var objleft =  parseInt(obj.left);		
}


function sendForwardForm(){
		this.stopit();
		if(lastActiveMenu == "empty"){this.showbillboard('show')};	
	 setTimeout(function(){videoObj.formvisibleplace('sendforward');},200);		
	getRef('message').value ='Je boodschap / berich'; 
	getRef('ontvangeremailadres').value ='Ontvanger E-mail';
	getRef('verzendernaam').value ='Uw naam';		

	_writeForwardMail(); 
}

function embeddedForm(){
		this.stopit();
		if(lastActiveMenu == "empty"){this.showbillboard('show')};
	//	changeOpac(10, 'movie_titel');
//		this.selectedForm ='formembed';
	setTimeout(function(){videoObj.formvisibleplace('formembed');},200);
		 _writeEmbed();
		
}

function formVisiblePlace(eleID){
var id = eleID ;
		
	if(lastActiveMenu == "empty"){		// for first time show one of the three 
	
			moveElement(eleID, this.formVisibSmallXpos, this.formVisibSmallYpos, 10);
	movieStoped_ShowProTitel();
	getSty('movie_titel_trans').visibility ="hidden";
			}
			if(lastActiveMenu != "empty" && lastActiveMenu != eleID){	//	second one is not the same as before one

			moveElement(eleID, this.formVisibSmallXpos, this.formVisibSmallYpos, 10);
			moveElement(lastActiveMenu, this.formHidSmallXpos, this.formHidSmallYpos, 10)

			}
			if(lastActiveMenu == eleID){	//	second one is the same as before one
			moveElement(eleID, this.formHidSmallXpos, this.formHidSmallYpos, 10);
		setTimeout(function(){videoObj.showbillboard('hide');},200);
//		changeOpac(100, 'movie_titel');
	setTimeout(function(){autoShowTitel()},10000);
	getSty('movie_titel_trans').visibility ="visible";
			id = "empty";
		
			
			}
lastActiveMenu = id;
		
// getRef('ing').innerHTML= "titelStatus = " +titelStatus + "  showBillboardIs = " + showBillboardIs + "  lastActiveMenu =" + lastActiveMenu ;
}

function formHidPlace(eleID){		
		moveElement(eleID, this.formHidSmallXpos, this.formHidSmallYpos, 10);
			
}
// -----------  structeur van towee formulier  -----------
// var formsSizeSmall = Array(senW,senH,senbgW,senvideoL,senvideoT,sensubL,sensubT,textereaClass)

 var formsSizeSmall = Array(215,215,215,7,200,7,73,150,78,'form_textareasmall');
function formChangeSize(){
		
		getSty('sendforward').width =formsSizeSmall[0] +'px';
		getSty('sendforward').height =formsSizeSmall[1]+'px';		
		getSty('forwardbgtitel').width =formsSizeSmall[2] +'px';		
		getSty('forwardtekstvelden').left =formsSizeSmall[3] +'px';
		getSty('forwardtekstvelden').width =formsSizeSmall[4] +'px';		
		getSty('forwardvideo').left =formsSizeSmall[5] +'px';
		getSty('forwardvideo').top =formsSizeSmall[6] +'px';
		getRef('message').className ='form_textareasmall'; 
		getSty('forwardsubmit').left =formsSizeSmall[7] +'px';
		getSty('forwardsubmit').top =formsSizeSmall[8] +'px';		
		getSty('formembed').width =215 +'px';
		getSty('formembed').height =191 +'px';
		getSty('embeddedbgtitel').width =215 +'px';
		getSty('embeddedvideo').left =7 +'px';
		getSty('embeddedvideo').top =23 +'px';		
		getRef('embedtextarea').className ='embedtextareasmall'; 		
		getSty('embeddedsubmit').width =59 +'px';
		getSty('embeddedsubmit').height =46 +'px';
		getSty('embeddedsubmit').left =148 +'px';
		getSty('embeddedsubmit').top =28 +'px';
		
		
		
}

// put the forms in the hidden position ...  triggered from change size buttons
function replaceElement(){
	var forms = Array('sendforward','formembed');

	for(var i=0 ; i<forms.length;i++){
		if(this.formSize == 'small'){
			getSty(forms[i]).left =this.hidSpos[0];
			getSty(forms[i]).top =this.hidSpos[1];
			}else{
			getSty(forms[i]).left =this.hidBpos[0];
			getSty(forms[i]).top =this.hidBpos[1];
		}

// getRef("boordsize").innerHTML="top of small form = "+ this.hidSpos[1] ;
	}
}

function checkEmail(email) {

var str = new String(email);
var isOK = true;
rExp = /[!\"£$%\^&*()-+=<>,\'#?\\|Â`\/\[\]]/
if( rExp.test(str) )
isOK = false;
if( str.indexOf('.') == -1 || str.indexOf('@') == -1 )
isOK = false;
if( str.slice(str.lastIndexOf('.')+1,str.length).length < 2 )
isOK = false;
if( str.slice(0,str.indexOf('@')).length < 1 )
isOK = false;
if( str.slice(str.indexOf('@')+1,str.lastIndexOf('.')).length < 1 )
isOK = false;

// if( !isOK ) alert( "Invalid email address" );

return isOK;
}
