<!-- 


// function callExternalInterface(el) {

//     thisMovie("flashanimation").mouseLeave();
    
// }


function thisMovie(movieName) {
    if (navigator.appName.indexOf("Microsoft") != -1) {
        return window[movieName]
    }
    else {
        return document[movieName]
    }
}


// schrijf swf-file
function setHeaderAnimation(swfSrc,page,baseURL) {
	//if(hasRightFlashVersion) {  // if we've detected an acceptable version
		// verberg html menu
	//	document.getElementById('main-navigation').style.display = 'none';
	//	document.getElementById('top-navigation').style.display = 'none';
		document.getElementById('flash-animation').style.display = 'block';
				document.getElementById('flash-animation').style.overflow = 'hidden';
		//document.getElementById('flash-menu').style.zindex = '999';
		// plaats swf-file
		var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" onmouseout="callExternalInterface(this)" id="flashheader"'
		+ 'width="970" height="235"'
		+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<param name="movie" value="' + swfSrc + '?page=' + page + '&baseURL=' + baseURL + '" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="salign" value="lt" /><param name="wmode" value="transparent" />'
		+ '<embed src="' + swfSrc + '?page=' + page + '&baseURL=' + baseURL + '" menu="false" quality="high" scale="noscale" salign="lt" wmode="transparent"  '
		+ 'width="970" height="235" align="top" name="flashanimation"'
		+ 'play="true"'
		+ 'loop="true"'
		+ 'quality="high"'
		+ 'allowScriptAccess="sameDomain"'
		+ 'type="application/x-shockwave-flash"'
		+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
		+ '<\/embed>'
		+ '<\/object>';
		document.write(oeTags);
//		document.getElementById('header').style.display = 'none';
 	
		
		
		// embed the flash movie
//	} else {  // flash is too old or we can't detect the plugin
//		var alternateContent = '';
//	document.write(alternateContent);  // insert non-flash content
//	}
}
function resize(){
	document.getElementById('flash-animation').style.height = "235px";
//alert('resizing to 305')
}
var t;
function resizeHeaderAnimation(h) {
 if(document.getElementById('flash-animation').style.height != '235px'){


 	if(h==305 ){

	t = setTimeout("resize()",750);
// 	resize();
	}

else{
	if(t != undefined) clearTimeout(t);
//	document.getElementById('flash-menu-parent').style.height= '405px';
	document.getElementById('flash-animation').style.display='block';
	document.getElementById('flash-animation').style.height = h + "px";
}
}
 
  
	//		document.getElementById('flash-menu').style.display = 'block';	
			
	// verberg teaser op home als he menu er overheen uitklapt
/*	if(document.getElementById('flash-teaser')!=null) {
		if (h>80) {
			document.getElementById('flash-teaser').style.visibility = 'hidden';
		} else {
			document.getElementById('flash-teaser').style.visibility = 'visible';
		}
	}
	// verberg subnavigatie op content als het menu er overheen uitklapt
	if(document.getElementById('leftNavigation')!=null) {
		if (h>80) {
			document.getElementById('leftNavigation').style.visibility = 'hidden';
		} else {
			document.getElementById('leftNavigation').style.visibility = 'visible';
		}
	}
	// verberg videoBlok op content als het menu er overheen uitklapt
	if(document.getElementById('videoBlok')!=null) {
		if (h>80) {
			document.getElementById('videoBlok').style.visibility = 'hidden';
		} else {
			document.getElementById('videoBlok').style.visibility = 'visible';
		}
	}
	// verberg videoBlok op content als het menu er overheen uitklapt
	if(document.getElementById('flashLayer')!=null) {
		if (h>80) {
			document.getElementById('flashLayer').style.visibility = 'hidden';
		} else {
			document.getElementById('flashLayer').style.visibility = 'visible';
		}
	}
	if(document.getElementById('boekenoverzicht')!=null) {
		if (h>80) {
			document.getElementById('boekenoverzicht').style.zIndex = -1;
		} else {
			document.getElementById('boekenoverzicht').style.zIndex = 1;
		}
	}
*/
}




// Volgende functie wordt vanuit Flash aangeroepen om de zoekstring te verwerken tot een url
function zoekFunctie(str) {
//alert(str);
document.forms['gs'].elements['q'].value = str;
document.gs.submit();
}


function playFlash(){
	if (document.getElementById("videomudule") != null){
		document.videomudule.Play();
	}
}

function loadURL() {
	var hrefs,i,strHref,strUrl;
	hrefs=document.getElementsByTagName('a');
	strUrl = location.hostname;
	for (i=0;i<hrefs.length;i++)
	  {
	  strHref = hrefs[i].toString();
	  if (strHref.match(strUrl)!= null)
		  {
		  strHref = strHref.slice(strUrl.length + 7);
		  strHref = "http://www.twynstragudde.nl" + strHref;
		  hrefs[i].href = strHref;
		  }
	  }
}

function loadScript() {
	playFlash();
	loadURL();
}
//-->