function goToHotelListing(url, city) {
       url = url+'?n='+city+'&type=Hotel';
       location.href=url;
}

function showHotelInfo(url, city, name) {
       url = 'http://'+url+'/'+city+'/'+name;
       location.href=url;
}

function hotelPaging(url, city, page) {
       url = url+'?n='+city+'&page='+page;
       location.href=url;
}

function sortPaging1(url, city, sorting, page) {
       url = url+'?n='+city+'&sort='+sorting+'&page='+page;
       location.href=url;
}

function sortPaging2(url, city, sorting, type, page) {
       url = url+'?n='+city+'&sort='+sorting+'&type='+type+'&page='+page;
       location.href=url;
}

function accomPaging(url, city, type, page) {
       url = url+'?n='+city+'&type='+type+'&page='+page;
       location.href=url;
}

function zonePaging(url, city, zone, page) {
       url = url+'?city='+city+'&zone='+zone+'&page='+page;
       location.href=url;
}




function waitPreloadPage(x) { //DOM
  if (document.getElementById){
     document.getElementById('prepage').style.visibility='visible';
	 document.getElementById('prepage').style.left=((window.screen.width/2) - x)+'px';
  }
  else {
    if (document.layers){ //NS4
      document.prepage.visibility = 'visible';
    }
    else { //IE4
      document.all.prepage.style.visibility = 'visible';
    }
  }
}

function showImage (image) {
 if (document.getElementById) {
  document.getElementById('holderImg').src = image.href;
  return false;
 } else {
  return true;
 }
}

function openWindow(theURL,winName,winWidth,winHeight,features) {
  features = features+",width="+winWidth+",height="+winHeight+", left=0,top=0,screenX=0,screenY=0";
  window.open(theURL,winName,features);
}

function stopSpam(sName,sURL){
	window.location='mailto:' + sName + "@" + sURL;
}

function goToHotel(hid, lang) {
  url = 'http://'+lang+'.venere.com/hotel/?ref=41123&htid='+hid;
  top.location.href=url;
}

function goTo(page) {
  url = 'http://www.book-spain-hotels.com/'+page;
  top.location.href=url;
}

function fwToCity(city) {
  url = 'http://www.book-spain-hotels.com/'+city+'.html';
  location.href=url;
}

function fwToCity2(city) {
  url = 'http://www.book-spain-hotels.com/'+city+'_accommodations';
  location.href=url;
}

function fwToCityDe(city) {
  url = 'http://www.book-spain-hotels.com/de/'+city+'.htm';
  location.href=url;
}

function fwToIndex() {
  url = 'http://www.book-spain-hotels.com';
  location.href=url;
}
function fwToIndexDe() {
  url = 'http://www.book-spain-hotels.com/de/index.php';
  location.href=url;
}
function goToGoMap(a, b, c, d, e, f) {
  url = 'http://www.book-spain-hotels.com/maps.php?id='+a+'&lat='+b+'&lon='+c+'&star='+d+'&name='+e+'&adr='+f;
  window.open(url);
}

function goToGoMap2(a, b, c, d, e, f, g) {
  url = 'http://www.book-spain-hotels.com/maps2.php?dir='+a+'&fname='+b+'&lat='+c+'&lon='+d+'&star='+e+'&name='+f+'&adr='+g;
  window.open(url);
}

function shLP(hid, lang) {
  url = 'http://'+lang+'.venere.com/hotel/?ref=41123&htid='+hid+'#mb1077';
  top.location.href=url;
}

var ray={
ajax:function(st)
	{
		this.show('load');
	},
show:function(el)
	{
		this.getID(el).style.display='';
	},
getID:function(el)
	{
		return document.getElementById(el);
	}
}
