function getCookie(b){var d=b+"=",a=document.cookie.split(";");for(i=0;i<a.length;i++){var e=a[i];while(e.charAt(0)===" "){e=e.substring(1,e.length)}if(e.indexOf(d)===0){return unescape(e.substring(d.length,e.length))}}return null}function preload(a){if(document.images){for(i=0;i<a.length;i++){preload_img=new Image();proload_img.src=a[i]}}}function openWin(b,a,c){window.open(b,a,c)}function loadNewWindows(c,b,e){var d=document.getElementsByTagName(c);for(i=0;i<d.length;i++){if(d.getAttribute(b)===e){var a=c.onclick;c.onclick=function(){openWin(c.getAttribute("href"),"");a()}}}}function onDistrictChange(){var b=[7,null,8,5,5,6,8,6,4,11],c=document.getElementById("locationLst"),f=document.getElementById("maxPeopleLst"),a=false,g=b[c.options[c.selectedIndex].value],d=f.options.length,e=null;if(g==null){g=8;a=true}while(d>g){--d;f.remove(d)}while(d<g){e=new Option();++d;e.value=d;e.text=d;f.options[d-1]=e}if(f.options[7]!=null){f.options[7].text=a?"8+":"8"}SetActionForm()}function SetActionForm(){var b=document.getElementById("locationLst"),d=document.getElementById("maxPeopleLst"),a=d.options[d.selectedIndex].value,c="";switch(b.options[b.selectedIndex].value){case"1":c="/paris_apartment_rentals_in_marais/";if(a>1){c="/paris_apartment_rentals_in_marais/number_of_guests_"+a+"/"}break;case"10":c="/paris_apartment_rentals_in_other_districts/";if(a>1){c+="number_of_guests_"+a+"/"}break;case"3":c="/paris_apartment_rentals_in_saint_germain/";if(a>1){c+="number_of_guests_"+a+"/"}break;case"4":c="/paris_apartment_rentals_in_latin_quarter/";if(a>1){c+="number_of_guests_"+a+"/"}break;case"5":c="/paris_apartment_rentals_in_ile_st_louis/";if(a>1){c+="number_of_guests_"+a+"/"}break;case"6":c="/paris_apartment_rentals_in_eiffel_tower/";if(a>1){c+="number_of_guests_"+a+"/"}break;case"7":c="/paris_apartment_rentals_in_champs-elysees/";if(a>1){c+="number_of_guests_"+a+"/"}break;case"8":c="/paris_apartment_rentals_in_opera_vendome/";if(a>1){c+="number_of_guests_"+a+"/"}break;case"9":c="/paris_apartment_rentals_in_montmartre/";if(a>1){c+="number_of_guests_"+a+"/"}break;default:c="/all_paris_apartment_rentals/";if(a>1){c+="number_of_guests_"+a+"/"}}document.ffr_search_form.action=c}function loadMap(){var a={},c={wmode:"transparent"},b={};swfobject.embedSWF("media/map.swf","map","180","330","9.0.0",false,a,c,b)}function setMap(){var c=$("#image-map"),e=$("#map-details"),d=0,a={"1":{name:"map-outer",pos:-180,header:"Other: Undiscovered Paris",para:"Typical Parisian neighborhoods.<br/>Live like a Parisian!"},"2":{name:"map-champs",pos:-720,header:"Champs-Elysees: Mythical Paris",para:"Arc de Triomphe, chic boutiques.<br/>Golden Triangle, Concorde."},"3":{name:"map-eiffel",pos:-900,header:"Eiffel Tower: Monumental Paris",para:"Eiffel Tower, Orsay Museum,<br/>Les Invalides, Alma Bridge."},"4":{name:"map-stgermain",pos:-1080,header:"St. Germain: Fashionable Paris",para:"Paris&rsquo; finest dining and shopping<br/>Orsay Museum, Luxembourg Garden."},"5":{name:"map-latin",pos:-1260,header:"Latin Quarter: Authentic Paris",para:"Luxembourg Gardens, Sorbonne,<br/>Pantheon, Open-air markets."},"6":{name:"map-stlouis",pos:-1440,header:"Ile St. Louis: Timeless Paris",para:"The very heart of Paris.<br/>Notre Dame, Right &amp; Left banks."},"7":{name:"map-marais",pos:-1620,header:"Marais: Historical Paris",para:"Hip district, Louvre Museum,<br/>Place de Vosges &amp; 10&rsquo;s of Museums!"},"8":{name:"map-opera",pos:-540,header:"Opera-Vendome:<br/>Glamorous Paris",para:"Opera, Place Vendome<br/>Louvre Museum, Palais Royal."},"9":{name:"map-montmartre",pos:-360,header:"Montmartre: Village Paris",para:"Amelie&rsquo;s cobblestone streets.<br/>Sacre Coeur, Place du Tertre."}},b=0;$("."+a[1].name).hover(function(){c.css("background-position",a[1].pos+"px 0");e.children("h3").html(a[1].header);e.children("p").html(a[1].para);e.css({display:"block",top:"-10px"})},function(){c.css("background-position","0 0");e.css({display:"none"});e.children("h3").html();e.children("p").html()});$("."+a[2].name).hover(function(){c.css("background-position",a[2].pos+"px 0");e.children("h3").html(a[2].header);e.children("p").html(a[2].para);e.css({display:"block",top:"-10px"})},function(){c.css("background-position","0 0");e.css({display:"none"})});$("."+a[3].name).hover(function(){c.css("background-position",a[3].pos+"px 0");e.children("h3").html(a[3].header);e.children("p").html(a[3].para);e.css({display:"block",top:"-10px"})},function(){c.css("background-position","0 0");e.css({display:"none"})});$("."+a[4].name).hover(function(){c.css("background-position",a[4].pos+"px 0");e.children("h3").html(a[4].header);e.children("p").html(a[4].para);e.css({display:"block",top:"-10px"})},function(){c.css("background-position","0 0");e.css({display:"none"})});$("."+a[5].name).hover(function(){c.css("background-position",a[5].pos+"px 0");e.children("h3").html(a[5].header);e.children("p").html(a[5].para);e.css({display:"block",top:"-10px"})},function(){c.css("background-position","0 0");e.css({display:"none"})});$("."+a[6].name).hover(function(){c.css("background-position",a[6].pos+"px 0");e.children("h3").html(a[6].header);e.children("p").html(a[6].para);e.css({display:"block",top:"-10px"})},function(){c.css("background-position","0 0");e.css({display:"none"})});$("."+a[7].name).hover(function(){c.css("background-position",a[7].pos+"px 0");e.children("h3").html(a[7].header);e.children("p").html(a[7].para);e.css({display:"block",top:"-10px"})},function(){c.css("background-position","0 0");e.css({display:"none"})});$("."+a[8].name).hover(function(){c.css("background-position",a[8].pos+"px 0");e.children("h3").html(a[8].header);e.children("p").html(a[8].para);e.css({display:"block",top:"-10px"})},function(){c.css("background-position","0 0");e.css({display:"none"})});$("."+a[9].name).hover(function(){c.css("background-position",a[9].pos+"px 0");e.children("h3").html(a[9].header);e.children("p").html(a[9].para);e.css({display:"block",top:"-10px"})},function(){c.css("background-position","0 0");e.css({display:"none"})})}$(document).ready(function(){googleAnalytics("UA-5695270-1");setMap()});
