// JavaScript Document
if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller


//noclick no source
/*function disableselect(e){
return false
}

function reEnable(){
return true
}
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
//noclick no source
<!-- Beginning of JavaScript -
/*tabel menu*/
//document.onselectstart=new Function ("return false")

//********SLIDESHOW
function viewpage(_link,_subj){ 
/*if (_link =='contact'){
document.all.content.src=_link+'.php?Titel=contact';
} else{*/
document.all.content.src=_link+'.php?pg='+_subj;
//document.location='index.php?src=' + _link; //}
//}
resizeIframe()
}
function getcontent(slink){
	if (slink=='Leveringsvoorwaarden'){
		Showpopup('leveringsvoorwaarden.php',600,400)}
    else if(slink=='Routebeschrijving'){
		Showpopup('http://www.routenet.nl/',600,400)}
else if(slink=='Verzekeringen'){
		Showpopup('verzekeringen.php?Titel=Verzekeringen',600,400)}		
else if(slink=='Financieringen'){
	Showpopup('financieringen.php?Titel=Financieringen',600,400)}
else if(slink=='Hypotheken'){
		Showpopup('hypotheken.php?Titel=Hypotheken',600,400)}		
    else{
	document.location='Pragdetail.php?Titel=' + slink
	}
}
function Showpopup(url,w,h){
 intWindowLeft = (screen.width - w) / 2;
 intWindowTop = (screen.height - h) / 2;		
 window.open(url,'','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=' + w + ',height=' + h + ',left=' + intWindowLeft + ',top=' + intWindowTop);	
}	
function loadINpopup(url,w,h){
 intWindowLeft = (screen.width - w) / 2;
 intWindowTop = (screen.height - h) / 2;		
 window.open(url,'','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=' + w + ',height=' + h + ',left=' + intWindowLeft + ',top=' + intWindowTop);	
}
/*function popit(url,w,h){
var mwidth = w ;//632
var mheight = h ;//629*/

//if (document.all&&window.print)  {//if ie5
//eval('window.showModelessDialog(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")') 
//else {eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=1,scrollbars=0")')	}
 /*intWindowLeft = (screen.width - w) / 2;
 intWindowTop = (screen.height - h) / 2;		
 window.open(url,'','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=' + w + ',height=' + h + ',left=' + intWindowLeft + ',top=' + intWindowTop);	
*/
/*}*/
function popit(url,w,h){
 intWindowLeft = (screen.width - w) / 2;
 intWindowTop = (screen.height - h) / 2;		
 window.open(url,'','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=' + w + ',height=' + h + ',left=' + intWindowLeft + ',top=' + intWindowTop);	
}	
function oldresizeIframe() {

	// Must launched on the body onload event handler for IE
	// Use document.documentElement if you are in Compat mode
	i = parent.document.getElementById('content')
	iHeight = document.body.scrollHeight
	i.style.height = iHeight + "px"
}

function oiFrameHeight() {
if(parent.document.getElementById && !(document.all)) {
h = parent.document.getElementById('content').contentDocument.body.scrollHeight;
parent.document.getElementById('content').style.height = h;
}
else if(document.all) {
h = parent.document.frames('content').document.body.scrollHeight;
parent.document.all.content.style.height = h;
}
//alert(document.all.content.style.height)
}

var newsdoc="newsdoc.php";

//*********************/


<!-- Original:  Ernst Straka (ernst.straka@central-europe.basf.org) -->
<!-- Web Site:  http://www.rs-systems.at/straka -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin/******vliegtuig*/
var l1 =   0; // left of ticker in pixel, or 0 to position relative
var t1 =   0; // top of ticker in pixel, or 0 to position relative
var w1 = 825; // width of ticker in pixel
var ie = document.all ? true : false;
var first = true;
var l2 = l1 + w1;
var l3 = l1 - l2;
var l = l2;
function tickinit() {
if (ie) {
if (l1 == 0 && t1 == 0) {
pos = document.all['tickpos'];
l1 = getLeft(pos);
t1 = getTop(pos);
}
ticktext.style.posTop = t1;
}
else {
if (l1 == 0 && t1 == 0) {
pos = document.anchors['tickpos'];
l1 = pos.x;
t1 = pos.y;
}
document.ticktext.pageY = t1;
}
l2 = l1 + w1;
l3 = l1 - l2;
l = l2;
setInterval('tick()', 2);
}
function getLeft(ll) {
if (ll.offsetParent)
return (ll.offsetLeft + getLeft(ll.offsetParent));
else 
return (ll.offsetLeft);
}
function getTop(ll) {
if (ll.offsetParent)
return (ll.offsetTop + getTop(ll.offsetParent));
else
return (ll.offsetTop);
}
function tick() {
l = l - 0.5;
if (l < l3) l = l2;
cl = l1 - l;
cr = l2 - l;
if (ie) {
ticktext.style.posLeft = l;
ticktext.style.posTop = t1;
ticktext.style.clip = "rect(auto "+cr+"px auto "+cl+"px)";
if (first) ticktext.style.visibility = "visible";
}
else {
document.ticktext.pageX = l;
document.ticktext.clip.left = cl;
document.ticktext.clip.right = cr;
if (first) document.ticktext.visibility = "show";
}
first = false;
}
//  End --> vliegtuig
/***news scroll*/
<!-- Begin
//slider's width
var swidth=455

//slider's height
var sheight=72

//slider's speed
var sspeed=1

//messages: change to your own; use as many as you'd like; set up Hyperlinks to URLs as you normally do: <a target=... href="... URL ...">..message..</a>
var singletext=new Array()
singletext[0]='<div align="Left"><b><font style=bold face=Arial size=2 color="FF600">Vertrek 09 juni t/m 31 Aug </FONT><font style=bold face=Arial size=2 color="navy">Madrid-spanje met Slechts</FONT> <font face=Arial size=4 style=bold color="RED">€ 109</font> <font face=Arial size=2 color="navy"><br>U  vliegt met KLM (reserv. voor 25 juni)</FONT></div>'
singletext[1]='<div align="Left"><b><font style=bold face=Arial size=2 color="FF600">Vertrek 09 juni t/m 14 Juni </FONT><font style=bold face=Arial size=2 color="navy">CANCUN-MEXICO Slechts</FONT> <font face=Arial size=4 style=bold color="RED">€ 448<br></font> <font face=Arial size=2 color="navy"> <br>(reserv. voor 12 juni)</FONT></b></div>'
singletext[2]='<div align="Left"><b><font style=bold face=Arial size=2 color="FF600">Vertrek 09 juni t/m 31 Aug </FONT><font style=bold face=Arial size=2 color="navy">Madrid-spanje met Slechts</FONT> <font style=bold face=Arial size=4 color="RED">€ 109<br></font> <font face=Arial size=2 color="navy"><br>U  vliegt met KLM (reserv. voor 25 juni)></FONT></b></div'
singletext[3]='<div align="Left"><b><font style=bold face=Arial size=2 color="FF600">Vertrek 09 juni t/m 14 Juni </FONT><font style=bold face=Arial size=2 color="navy">CANCUN-MEXICO Slechts</FONT> <font face=Arial style=bold size=4 color="RED">€ 448<br></font> <font face=Arial size=2 color="navy"> <br>(reserv. voor 12 juni)</FONT></b></div>'
if (singletext.length>1)
i=1
else
i=0
function start(){
if (document.all){
ieslider1.style.top=sheight
iemarquee(ieslider1)
}
else if (document.layers){
document.ns4slider.document.ns4slider1.top=sheight
document.ns4slider.document.ns4slider1.visibility='show'
ns4marquee(document.ns4slider.document.ns4slider1)
}
else if (document.getElementById&&!document.all){
document.getElementById('ns6slider1').style.top=sheight
ns6marquee(document.getElementById('ns6slider1'))
}
}
function iemarquee(whichdiv){
iediv=eval(whichdiv)
if (iediv.style.pixelTop>0&&iediv.style.pixelTop<=sspeed){
iediv.style.pixelTop=0
setTimeout("iemarquee(iediv)",100)
}
if (iediv.style.pixelTop>=sheight*-1){
iediv.style.pixelTop-=sspeed
setTimeout("iemarquee(iediv)",100)
}
else{
iediv.style.pixelTop=sheight
iediv.innerHTML=singletext[i]
if (i==singletext.length-1)
i=0
else
i++
}
}
function ns4marquee(whichlayer){
ns4layer=eval(whichlayer)
if (ns4layer.top>0&&ns4layer.top<=sspeed){
ns4layer.top=0
setTimeout("ns4marquee(ns4layer)",100)
}
if (ns4layer.top>=sheight*-1){
ns4layer.top-=sspeed
setTimeout("ns4marquee(ns4layer)",100)
}
else{
ns4layer.top=sheight
ns4layer.document.write(singletext[i])
ns4layer.document.close()
if (i==singletext.length-1)
i=0
else
i++
}
}
function ns6marquee(whichdiv){
ns6div=eval(whichdiv)
if (parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=sspeed){
ns6div.style.top=0
setTimeout("ns6marquee(ns6div)",100)
}
if (parseInt(ns6div.style.top)>=sheight*-1){
ns6div.style.top=parseInt(ns6div.style.top)-sspeed
setTimeout("ns6marquee(ns6div)",100)
}
else{
ns6div.style.top=sheight
ns6div.innerHTML=singletext[i]
if (i==singletext.length-1)
i=0
else
i++
}
}
//  End -->

/*******end news scroll*/
function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="revealTrans(duration=2)"
      document.images.SlideShow.style.filter="revealTrans(duration=crossFadeDuration)"
	  SlideShow.filters.revealTrans.Transition=Math.floor(Math.random()*23)
      SlideShow.filters.revealTrans.stop()
      SlideShow.filters.revealTrans.apply()
      document.images.SlideShow.filters.revealTrans.Apply()   
//	   document.images.SlideShow.style.filter="blendTrans(duration=2)"
  //    document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
    //  document.images.SlideShow.filters.blendTrans.Apply() 
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.revealTrans.Play()
	  style="filter:revealTrans(duration=20,transition=23)" 
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}



/***********************************************
* IFrame SSI script II- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
* Visit DynamicDrive.com for hundreds of original DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//Input the IDs of the IFRAMES you wish to dynamically resize to match its content height:

var iframeids=["content","frametickets","datamain","tickermain","hotellijstcontent","ticketsum","azcontent"]
//Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended):
var iframehide="yes"

function resizeCaller() {
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){
if (document.getElementById)
resizeIframe(iframeids[i])
//reveal iframe for lower end browsers? (see var above):
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i])
tempobj.style.display="block"
}
}
}

function resizeIframe(frameid){
		var currentfr=document.getElementById(frameid)

if (currentfr && !window.opera){
currentfr.style.display="block"
if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
currentfr.height = currentfr.contentDocument.body.offsetHeight ; 
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
currentfr.height = currentfr.Document.body.scrollHeight ;
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false)
else if (currentfr.attachEvent){
currentfr.detachEvent("onload", readjustIframe) // Bug fix line
currentfr.attachEvent("onload", readjustIframe)
}
}
}

function readjustIframe(loadevt) {
var crossevt=(window.event)? event : loadevt
var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
if (iframeroot)
resizeIframe(iframeroot.id);
}

/*function loadintoIframe(iframeid, url){
if (document.getElementById)
document.getElementById(iframeid).src=url
}*/
function loadlink(url){
	
if (document.getElementById)
document.getElementById("content").src=url;
//resizeCaller()
//oiFrameHeight()
}
/*if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller*/


