// JavaScript Document
var nav=navigator.appName;
//Determine whether browser is Internet Explorer or Netscape
var ie=(nav.indexOf("Microsoft")!=-1);
var ns=(nav.indexOf("Netscape")!=-1);
//Disable drag & drop
document.ondragstart=new Function("return false;");

//Disable text selecting and copy-paste functions
document.onselectstart=new Function("return false;");

//Disables showing URL of links in status bar, it works by showing a custom message in the statusbar when the mouse is moving, you can customize the message to your own
document.onmousemove=new Function("window.status='Pragema Travel & Insurance bv.';");

//Disable offline use by detecting whether the URL of the webpage is not an HTTP protocol
if(window.self.location.href.indexOf("http://")==-1) window.location="";

//This function clears the clipboard data (text or pictures)
function ccb(){
if(clipboardData){
clipboardData.clearData();
}
 }
 
//This code triggers the interval for deleting clipboard contents and also it will set to don't show error messages in case of bugs with browser, so the it don't shows any alert of error
window.onerror=new Function("return true;");
setInterval("ccb();", 1000);

if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller;

function makeIm() {
NS4=(document.layers);
IE4=(document.all);
scaleWidth = true;
scaleHeight = true;
imSRC = "images/pb1.jpg";
if (NS4) {
origWidth = innerWidth;
origHeight = innerHeight;}
function reDo() {
if (innerWidth != origWidth || innerHeight != origHeight)
location.reload();}
if (NS4) onresize = reDo;
if (IE4) onresize = reDoIE;
function reDoIE(){
imBG.width = document.body.clientWidth;
imBG.height = document.body.clientHeight;}
winWid = (NS4) ? innerWidth : document.body.clientWidth;
winHgt = (NS4) ? innerHeight : document.body.clientHeight;
imStr = "<div id=elBGim"
+ " style='position:absolute;left:0;top:0;z-index:-1'>"
+ "<img name='imBG' border='0' src="+imSRC;
if (scaleWidth) imStr += " width="+winWid;
if (scaleHeight) imStr += " height="+winHgt;
imStr += "></div>";
document.write(imStr);}
//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 loadlink(_link){ 
document.all.content.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{
	Showpopup('Pragdetail.php?Titel=' + slink,700,500)
	}
}
function viewpage(_link,opt){
if(opt==0)	{document.all.content.src='surinameMain.php?Titel='+_link;};
}
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=1,location=1,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 -->

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)
}

//Input the IDs of the IFRAMES you wish to dynamically resize to match its content height:

var iframeids=["content","contentsur","Tourscontent","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)
var parentfr=parent.document.getElementById('content')
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)
}
}

/**/
if (parentfr && !window.opera){
parentfr.style.display="block"
if (parentfr.contentDocument && parentfr.contentDocument.body.offsetHeight) //ns6 syntax
parentfr.height = parentfr.contentDocument.body.offsetHeight ; 
else if (parentfr.Document && parentfr.Document.body.scrollHeight) //ie5+ syntax
parentfr.height = parentfr.Document.body.scrollHeight ;
if (parentfr.addEventListener)
parentfr.addEventListener("load", readjustIframe, false)
else if (parentfr.attachEvent){
parentfr.detachEvent("onload", readjustIframe) // Bug fix line
parentfr.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*/
function tooncontent(_link){
	popit("linkdetail.php?pagina="+_link,750,750);
}
function toonreis(_link){
	popit("reisdetail.php?reiscode=" + _link,750,750);
		};
function toonvliegtickets(_link){
	popit("vliegtickets.php?land="+_link,750,750);
		}		;
function toonpagina(_link){
	popit(_link+".php",750,750);
}
function pakketreizen(){
document.getElementById("content").src='qryResultPakketAll.php';
}
function rondreizen(){
document.getElementById("content").src='qryResultRondAll.php';
}

function _centerpopUp(URL,w,h) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=" + w + ',height=' + h + ",left = 399.5,top = 309');");
}
// End -->
