/***********************************************
* Cool DHTML tooltip script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/


//TO GET PARAMETER FROM COMMAND LINE FOR HTML FILES
function getParam() {
var param;
var hRef;
hRef = "" + parent.location.href;
param = hRef.indexOf('?') + 1;
if (param <= 0) return "";
return hRef.substring(param);
}

// FOR HOTEL AND DISCLAIMER AND SGR POPUPS
function modelesswin(url,mwidth,mheight){
if (document.all&&window.print) //if ie5
eval('window.showModelessDialog(url,"TITEL","help:0;resizable:0;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")')
else
eval('window.open(url,"_BLANK","width='+mwidth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
}

// TO INCLUDE EXTRA SEARCH KEYWORDS FOR GOOGLE ON HOMEPAGE
function zoektekst (tekst) {
    //dummy procedure
}

// TO HIDE AN URL IN THE STATUS BAR
function hidestatus(){
window.status="";
return true;
}

function menu_separator(){
document.write('&nbsp;&nbsp;<font color="black">|</font>&nbsp;&nbsp;');
}

function popup_foto_500w(imagename, title){
document.write('<a onmouseover=\"return hidestatus();\" href=\"javascript:popup_image_big_home(\'' + imagename + '\',\'' + title +'\');\" class=\"imagelink\">');
document.write('<img border=\"0\" height=\"75\" src=\"images/foto/100h/' + imagename +'\" alt=\"' + title + '\"></a>&nbsp;&nbsp;');
}
function popup_foto_500w_no_space(imagename, title){
document.write('<a onmouseover=\"return hidestatus();\" href=\"javascript:popup_image_big_home(\'' + imagename + '\',\'' + title +'\');\" class=\"imagelink\">');
document.write('<img border=\"0\" height=\"75\" src=\"images/foto/100h/' + imagename +'\" alt=\"' + title + '\"></a>');
}

function popup_foto_500w_i(imagename, title, height, align, hor, ver){
document.write('<a href=\"javascript:popup_image_big_home(\'' + imagename + '\',\'' + title +'\');\" class=\"imagelink\" onmouseover=\"return hidestatus();\">');
document.write('<img border=\"0\" hspace=' + hor + ' vspace=' + ver + ' align=\"' + align + '\" height=\"' + height + '\" src=\"images/foto/100h/' + imagename +'\" alt=\"' + title + '\"></a>');
}

function popup_image_big_home(imagename, title) {
PreView = window.open(' ', 'Preview', 'toolbar=0,left=100,top=100,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,width=680,height=540');
PreView.document.open();
PreView.document.write('<HTML><HEAD>');
PreView.document.write('<TITLE>Aladin Travel - image viewer</TITLE>');
PreView.document.write('</HEAD><BODY style="margin:20px; color:white;	font-family:Verdana; font-size:10pt; background:url(../images/background/background.jpg);text-align: center;" oncontextmenu=\"return false\">');PreView.document.write('<center><IMG ' + 'SRC=\"images\\foto\\500w\\' +  imagename + '\"></center>');
PreView.document.write('<br />');
PreView.document.write('<center><b>' + title + '</b></center><br />');
PreView.document.write('<center><font size="-2">© 2009 Aladin Travel</center>');
PreView.document.write('</BODY></HTML>');
PreView.document.close();
}


function popup_image_big2(imagename, title) {
PreView = window.open(' ', 'Preview', 'toolbar=0,left=100,top=100,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0,width=680,height=540');
PreView.document.open();
PreView.document.write('<HTML><HEAD>');
PreView.document.write('<TITLE>Aladin Travel - image viewer</TITLE>');
PreView.document.write('</HEAD><BODY style="margin:20px; color:white;	font-family:Verdana; font-size:10pt; background:url(../images/background/background.jpg);text-align: center;" oncontextmenu=\"return false\">');PreView.document.write('<center><IMG ' + 'SRC=\"' +  imagename + '\"></center>');
PreView.document.write('<br />');
PreView.document.write('<center><b>' + title + '</b></center><br />');
PreView.document.write('<center><font size="-2">© 2009 Aladin Travel</center>');
PreView.document.write('</BODY></HTML>');
PreView.document.close();
}

function popup_image_big3(imagename, title) {
PreView = window.open(' ', 'Preview', 'toolbar=0,left=0,top=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,copyhistory=0,width=1000,height=700');
PreView.document.open();
PreView.document.write('<HTML><HEAD>');
PreView.document.write('<TITLE>Aladin Travel - image viewer</TITLE>');
PreView.document.write('</HEAD><BODY style="margin:20px; color:white;	font-family:Verdana; font-size:10pt; background:url(../images/background/background.jpg);text-align: center;" oncontextmenu=\"return false\">');
PreView.document.write('<center><IMG ' + 'SRC=\"' +  imagename + '\"></center>');
PreView.document.write('<br />');
PreView.document.write('<center><b>' + title + '</b></center><br />');
PreView.document.write('<center><font size="-2">© 2009 Aladin Travel</center>');
PreView.document.write('</BODY></HTML>');
PreView.document.close();
}

// FOR HOTEL NAME AND CLASSIFICATION IN STARS
function body_inline_kop_hotel(titel,ster) {
document.write('<span class=\"pagetitle1\">');
document.write(titel);
document.write('&nbsp;&nbsp;&nbsp;')
if (ster==3)
document.write('<img src="images/hotels/3.gif">');
if (ster==4)
document.write('<img src="images/hotels/4.gif">');
if (ster==5)
document.write('<img src="images/hotels/5.gif">');
document.write('</span><br />');
}

function MatchAladinParent(url)
{
    var currentHref = parent.parent.location.href;
    var cDrive = parent.parent.location.href;
    var cCheck = 'http://www.aladintravel.nl/' + url;
    // alert(cCheck);
    var lengte = cCheck.length;

    currentHref = currentHref.substring(0,lengte);
    currentHref = currentHref.toLowerCase();

    cDrive = cDrive.substring(0,4);
    cDrive = cDrive.toLowerCase();

    // check of vanaf C-schijf

    if (cDrive != "file"){

        if (currentHref == cCheck)
        {
            //bestaat al binnen frameset, geen actie
        }
        else
        {
            window.location = cCheck;
        }
    }
}


// DISABLE RIGHT MOUSE CLICK

//	if (window.Event)
//	  document.captureEvents(Event.MOUSEUP);

//	function nocontextmenu() {
//	  alert('Indien u iets van onze website wil gebruiken, neem dan contact met ons op!');
	  //event.cancelBubble = true, event.returnValue = false;

//	  return false;
//	}

//	function norightclick(e) {
//	  if (window.Event) {
//	    if (e.which == 2 || e.which == 3) return false;
//	  }
//	  else if (event.button == 2 || event.button == 3) {
//	    event.cancelBubble = true, event.returnValue = false;
//	    return false;
//	  }
//	}

//	document.oncontextmenu = nocontextmenu;
//	document.onmousedown = norightclick;
//	document.onmouseup = norightclick;

