function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);	
}

var mColor = '#feaf39'
var mColor1 = '#feaf39'
var mColor2 = '#ff9900'
var mColor3 = '#FFFFFF'
function mOvr(src, colorProfile) {
	src.style.cursor = 'pointer';	 
	src.style.backgroundColor = colorProfile;

}

function mOut(src,clrIn) {	
	src.style.cursor = 'default';	
	src.style.backgroundColor = clrIn;

}



function mo(o){
	o.className=='topMenuP'?o.className='topMenuA': o.className=o.className;	
}
function mx(o){
	o.className=='topMenuA'?o.className='topMenuP': o.className=o.className;	
}
function topMenuSelected(topMenuId){		
	document.getElementById('toppageMenu'+topMenuId).className='topMenuSelected';
}

// page to page =========================================================
function pageFormSubmit(URL,hotelID,page,townID,listID) {

if (hotelID=="hotelID"){
	}else{
		document.getElementById('hotelID').value=hotelID;
	}
	
if (page==""){
document.getElementById('templatePage').value=0;
	}else{	
	document.getElementById('templatePage').value=page;	
	}
if (townID=="townID"){

	document.getElementById('templateTownID').value='';
	}else{
		document.getElementById('templateTownID').value=townID;
	}	
if (listID=="listID"){
	}else{
		document.getElementById('listID').value=listID;
	}

	document.getElementById('pageForm').action=URL;
	document.getElementById('pageForm').submit();
}




function pageFormSubmit2(URL,hotelID,page,townID,listType) {

if (hotelID=="hotelID"){
	}else{
		document.getElementById('hotelID').value=hotelID;
	}
	
if (page==""){
document.getElementById('templatePage').value=0;
	}else{	
	document.getElementById('templatePage').value=page;	
	}
if (townID=="townID"){

	document.getElementById('templateTownID').value='';
	}else{
		document.getElementById('templateTownID').value=townID;
	}	
if (listType=="listType"){
	}else{
		
		document.getElementById('listType').value=listType;
	}

	document.getElementById('pageForm').action=URL;
	document.getElementById('pageForm').submit();
}







function divName(townNo){
document.getElementById('divName').value=townNo;
}
// page to page =========================================================


// top slider  =========================================================
// Functie fade
// De snelheid (milliseconden)
var slideShowSpeed = 7500
//var slideShowSpeed = 200
// Duration of crossfade (seconds)
var crossFadeDuration = 5
// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below
var siteHTTPURLslide='http://www.dominotravel.biz/images/slider'
Pic[0] = siteHTTPURLslide+'/alentejo.jpg'
Pic[1] = siteHTTPURLslide+'/algarve.jpg'
Pic[2] = siteHTTPURLslide+'/azoren.jpg'
Pic[3] = siteHTTPURLslide+'/beiras.jpg'
Pic[4] = siteHTTPURLslide+'/lissabon.jpg'
Pic[5] = siteHTTPURLslide+'/madeira.jpg'
Pic[6] = siteHTTPURLslide+'/porto.jpg'
// =======================================
var t
var j = 0
var p = Pic.length
var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}
function runSlideShow(){
   if (document.all){
      document.getElementById('SlideShow').style.filter="blendTrans(duration=2)"
      document.getElementById('SlideShow').style.filter="blendTrans(duration=crossFadeDuration)"
      document.getElementById('SlideShow').filters.blendTrans.Apply()
   }
   
   //src.style.background = "url(" + clrOverImg + ")";   
   document.getElementById('SlideShow').style.background = 'url(' +preLoad[j].src+ ')';
   if (document.all){
      document.getElementById('SlideShow').filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}

function runSlideShowXXX(){
   if (document.all){
      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.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}
