
faq = new Array()
faq[0] = 'In ce tari se poate calatori doar cu buletinul ?';
faq[1] = 'Cat sunt taxele de viza ?';
faq[2] = 'Ce documente sunt necesare pentru minorii care calatoresc in strainatate ?';
faq[3] = 'Ce include o asigurare de calatorie ?';
faq[4] = 'Permisul de conducere romanesc este valabil si in strainatate ?';
faq[5] = 'Care este greutatea maxima a bagajelor in cazul calatoriei cu avionul ?';
faq[6] = 'Care sunt articolele interzise in bagajul de mana ?';
faq[7] = 'Care este regimul de calatorie al animalelor de companie?';


function photoPopup2(queryString, description) {
   //window.alert("1");
   if (window.galleryPopup) {
      galleryPopup.close();
   }
   
   windowProp = "menubar=no,location=no,resizable=yes,scrollbars=yes";
       // + "screenX=" + (screen.width-670)/2 + ",screenY=0";

    galleryPopup = window.open("/misc/photo_popup2.php" + queryString,
                     description, windowProp);
   //window.alert("2");                     
}


qwedresa = "contact@iq-travel.ro";



function  bookmarkPage(title)
{

  var url= window.location.href;
  
  if (window.sidebar) { // Mozilla Firefox
    window.sidebar.addPanel(title, url, "");
  }
  
  else if( window.external ) { // IE
    window.external.AddFavorite(url, title);
  }
  
  else if(window.opera && window.print) { // Opera
    CreateBookmarkLink();
  }
}



var photos;

function destsearch(x1, x2, x3, y1, y2, y3){
var latc = x1 + (x2/60) + (x3 / 60 / 60);
var longc = y1 + (y2/60) + (y3 / 60 / 60);
latc = (Math.round(latc * 1000000)/1000000);
longc = (Math.round(longc * 1000000)/1000000);
//var point = new GLatLng(latc, longc);
var x = longc; //point.x;
var y = latc; //point.y;
var url = "http://www.panoramio.com/map/get_panoramas.php"
  + "?order=popularity"
  + "&set=public"
  + "&from=0&to=21"
  + "&minx=" + (x - 0.01)
  + "&miny=" + (y - 0.01)
  + "&maxx=" + (x + 0.01)
  + "&maxy=" + (y + 0.01)
  + "&callback=callback"
  + "&size=small";

var target = document.createElement('script');
target.charset = 'ISO-8859-1'; //'utf-8';
target.type = 'text/javascript';
target.src = url;
document.body.appendChild(target);
//window.alert('search final');
}


function callback(panoramio) {

photos = panoramio.photos;
var divGalerie  = document.getElementById("galerie_foto_destinatie");
var htmlGalerie = '';
for (var i = 0; i < photos.length; i++)
{
p = photos[i];
//window.alert(p.width);
if (parseInt(p.height) < 150) {
continue;
}
htmlGalerie = htmlGalerie + "<div class='picGalerieStatiune'><a target='_blank' href='" + p.photo_url + "'>" + "<img width='" + "104" + "' height='" + "104" + "' src='" + p.photo_file_url + "' border='0' align='left' "+ " alt='" + p.photo_title + "' title='" + p.photo_title + "'<\/a> <br/> <a target='_blank' href='" + p.photo_url + "'>" + p.photo_title + " by " + p.owner_name + "</a>" + "<\/div>";


// + "<div style='overflow: hidden; width: 240px;'>" + "<a target='_blank' href='" + p.photo_url + "'>" + p.photo_title + "</a>" + "</div>";
}
divGalerie.innerHTML = htmlGalerie;

}
