function thumbnail(g,e,b,f,d,a,c){this.id=g;this.galleries_id=e;this.caption=b;this.src=getServerPath(c)+"/"+f;this.width=d;this.height=a}function gallery(e,c,d,b,a){this.id=e;this.featured_images=c;this.title=d;this.section_code=b;this.photoIDs=a}var thumbnails=new Object();thumbnails[3483367]=new thumbnail(3483367,"","las Mimosas pool in April","swimming pool 2(Vilas direct)_thumb.jpg",130,87,15);thumbnails[3716826]=new thumbnail(3716826,"","","Cabopino_mimosas_3_thumb.JPG",130,88,15);thumbnails[3720138]=new thumbnail(3720138,"","","costa_del_sol_map_thumb.JPG",130,91,15);thumbnails[3614653]=new thumbnail(3614653,"221051","View of the front of the apartment","Mimosas-front_thumb.jpg",130,94,15);thumbnails[3614660]=new thumbnail(3614660,"221051","Dining area seen from lounge area","redsofa2_thumb.jpg",130,98,15);thumbnails[3613600]=new thumbnail(3613600,"221051","The sitting area seen from the dining area","sitting_room_on_to_terraceGIF_thumb.jpeg",130,95,15);thumbnails[3612584]=new thumbnail(3612584,"221051","Main bedroom, leading on to the terrace overlooking the sea","Las_Mimosas_main_bedroom_thumb.JPG",130,92,15);thumbnails[3612668]=new thumbnail(3612668,"221051","Second bedroom","2nd_bedroom_thumb.jpeg",98,130,15);thumbnails[3655179]=new thumbnail(3655179,"221051","Well-equipped kitchen and laundry room","Well-equipped_kitchen_thumb.JPG",130,87,15);thumbnails[3644410]=new thumbnail(3644410,"221051","The Terrace","Terrace_new_furniture_1_thumb.JPG",130,98,15);thumbnails[3655181]=new thumbnail(3655181,"221051","Las Mimosas pool in April","A_quick_dip_in_April_-_Las_Mimosas_pool_thumb.JPG",130,87,15);thumbnails[3655886]=new thumbnail(3655886,"221051","Las Mimosas garden","Las_Mimosas_garden_thumb.jpg",102,130,15);thumbnails[3655901]=new thumbnail(3655901,"221051","Back of the apartments, by the vehicular entrance  ","Back_of_apartments_from_inside_gate_thumb.jpg",130,92,15);thumbnails[3724070]=new thumbnail(3724070,"221051","Architect's plan of Las Mimosas apartment","plan_of_Las_Mimosas_apartment1_thumb.jpg",130,83,15);thumbnails[3644542]=new thumbnail(3644542,"221179","The mimosas of Cabopino","Car_Park_mimosa_tree_thumb.JPG",98,130,15);thumbnails[3655447]=new thumbnail(3655447,"221179","Perfect for children: Playa de Cabopino","perfect_for_children_thumb.JPG",130,98,15);thumbnails[3644419]=new thumbnail(3644419,"221179","One of the Cabopino beaches, from the breakwater","towards_Cabopino_beach_fr_breakwater_1_thumb.JPG",130,98,15);thumbnails[3644416]=new thumbnail(3644416,"221179","Calahonda Beach - to the left of the little harbour of Puerto Cabopino","Calahonda_beach_Cabopino_thumb.JPG",130,98,15);thumbnails[3655414]=new thumbnail(3655414,"221179","Out of season, Cabopino beach (snow on Sierra Bermeja)","Out_of_season_Cabopino_beach_snow_on_Sierra_Bermeja_thumb.JPG",130,87,15);thumbnails[3655375]=new thumbnail(3655375,"221179","Cabopino beach umbrella","Cabopino_beach_umbrella_thumb.JPG",130,98,15);thumbnails[3655467]=new thumbnail(3655467,"221179",'Surf and dunes: looking west towards Marbella along Cabopino\'s 3rd sandy beach - "Playa Artola"',"Surf_and_sand_dunes_Cabopino_thumb.JPG",130,87,15);thumbnails[3655389]=new thumbnail(3655389,"221179","Cabopino beach","Cabopino_beach_out_of_seasonJPG_thumb.JPG",130,87,15);thumbnails[3644380]=new thumbnail(3644380,"221179","La Lonja beach bar","beach_bar_La_Lonja_March_thumb.JPG",130,98,15);thumbnails[3655390]=new thumbnail(3655390,"221179","Chiringuito at Calahonda Beach, Cabopino","Chiringuito_Calahonda_beach_Cabopino_thumb.JPG",130,98,15);thumbnails[3655445]=new thumbnail(3655445,"221179","Cabopino beach","overview_of_beach_and_harbour_wall_thumb.JPG",130,98,15);thumbnails[3644819]=new thumbnail(3644819,"221179","Kite surfing","Cabopino_kite_surfing_3_thumb.JPG",130,98,15);thumbnails[3644512]=new thumbnail(3644512,"221179","Cabopino Kite surfing","Cabopino_kite_surfing_2_thumb.JPG",130,98,15);thumbnails[3644516]=new thumbnail(3644516,"221179","Cabopino sunset","Cabopino_beach_eve_2_thumb.JPG",130,98,15);thumbnails[3655882]=new thumbnail(3655882,"221179","Late return from the beach","Late_return_from_the_beach_Cabopino_thumb.jpg",130,96,15);thumbnails[3655881]=new thumbnail(3655881,"221179","Lone horserider and his dog on Las Dunas nature reserve, behind the beach","Lone_horserider_and_his_dog_in_Cabopino_thumb.jpg",130,70,15);thumbnails[3655830]=new thumbnail(3655830,"221179","Riding into a Cabopino sunset","Riding_into_aCabopino_sunset_thumb.jpg",130,86,15);thumbnails[3644523]=new thumbnail(3644523,"221179","A relaxing morning coffee at La Despensa, Puerto Cabopino harbour, in mid March","Coffee_at_La_Despensa_in_March_thumb.JPG",130,98,15);thumbnails[3655449]=new thumbnail(3655449,"221179","Puerto Cabopino - boats and restaurants on the picturesque marina","Puerto_Cabopino_w_boats_and_restaurants_thumb.JPG",130,87,15);thumbnails[3644527]=new thumbnail(3644527,"221179","Cabopino harbour","harbour_boats_2_thumb.JPG",130,98,15);thumbnails[3655450]=new thumbnail(3655450,"221179","Puerto Cabopino, including the pines","quiet_harbour_with_pines_thumb.JPG",130,87,15);thumbnails[3650093]=new thumbnail(3650093,"221179","Looking towards Las Mimosas from the harbour wall","harbour_outer_wall_thumb.jpeg",130,75,15);thumbnails[3655377]=new thumbnail(3655377,"221179","Cabopino from lighthouse","Cabopino_from_lighthoue_thumb.JPG",130,87,15);thumbnails[3655395]=new thumbnail(3655395,"221179","Eldorado?   Home to a variety of small bars and restaurants","Eldorado_thumb.JPG",130,87,15);thumbnails[3644533]=new thumbnail(3644533,"221179","Puerto Cabopino marina","harbour_boats_7_thumb.JPG",130,98,15);thumbnails[3614633]=new thumbnail(3614633,"221179","Las Mimosas seen from Cabopino golf course","Las_Mimosas_from_Cabopino_Golf_Course_thumb.jpg",130,73,15);thumbnails[3655381]=new thumbnail(3655381,"221179","Cabopino golf","Cabopino_golf_course_towards_sea1_thumb.JPG",130,88,15);thumbnails[3627699]=new thumbnail(3627699,"221179","Cabopino's golf course ","cabopino_15_fullsize_thumb.jpeg",130,81,15);thumbnails[3650187]=new thumbnail(3650187,"221179","View over Las Mimosas and Cabopino from the golf course","Towards_Las_Mimosas_and_Cabopino_from_golf_course_thumb.JPG",130,98,15);thumbnails[3691217]=new thumbnail(3691217,"222070","General view of Ronda and its moorish walls<br>\r\n<br>\r\nwith thanks to www.turismoderonda.es<br>\r\n<br>\r\n","ronda_general_viewh_41_thumb.jpg",130,98,15);thumbnails[3691219]=new thumbnail(3691219,"222070","Ronda aqueduct<br>\r\n<br>\r\nwith thanks to www.turismoderonda.es","ronda_aquaduct_h_01_thumb.jpg",130,98,15);thumbnails[3691262]=new thumbnail(3691262,"222070","Ronda: Iglesia Mayor<br>\r\n<br>\r\nwith thanks to www.turismoderonda.es","ronda_Iglesia_Mayor_v_16_thumb.jpg",98,130,15);thumbnails[3650101]=new thumbnail(3650101,"222070","Plaza de los Naranjos (ORANGE SQUARE) in Marbella old quarter","Orange_Square_1_thumb.JPG",130,98,15);thumbnails[3655182]=new thumbnail(3655182,"222070",'A "red" Orange Square (Plaza de los naranjos)',"A_red_Orange_Square_towards_Ayuntamiento_thumb.JPG",130,98,15);thumbnails[3652314]=new thumbnail(3652314,"222070",'"Orange Square" (Plaza de los naranjos): an excellent spot to enjoy a leisurely sangria and watch the world go by',"Terry__Bob_in_Orange_Square_Jun_08__thumb.jpg",130,98,15);thumbnails[3655367]=new thumbnail(3655367,"222070","Marbella windowshopping in cobbled streets of the old quarter","A_spot_of_window_shopping_Marbella_thumb.JPG",87,130,15);thumbnails[3655399]=new thumbnail(3655399,"222070","Square in Marbella old quarter","Marbella_pink_house_thumb.JPG",130,87,15);thumbnails[3655425]=new thumbnail(3655425,"222070","Marbella side street","Old_Marbella_side_street_thumb.JPG",130,87,15);thumbnails[3655403]=new thumbnail(3655403,"222070","Marbella seafront","Marbella_seafront_thumb.JPG",130,98,15);thumbnails[3652433]=new thumbnail(3652433,"222070","Avenida del Mar in Marbella: one of the Dali exhibits","Avenida_del_Mar_Marbella_019_thumb.jpg",130,98,15);thumbnails[3655438]=new thumbnail(3655438,"222070","One of Marbella's fine beaches","one_of_Marbellas_beaches_backing_on_to_harbour_thumb.JPG",130,98,15);thumbnails[3655487]=new thumbnail(3655487,"222070","Waterski statue, Marbella seafront","waterski_statue_Marbella_thumb.JPG",87,130,15);thumbnails[3655421]=new thumbnail(3655421,"222070","Mijas","Mijas_village_street_thumb.JPG",87,130,15);thumbnails[3655420]=new thumbnail(3655420,"222070","Mijas","Mijas_street_scene_w_donkeys_thumb.JPG",130,87,15);thumbnails[3655462]=new thumbnail(3655462,"222070","Towards the sea from Mijas white village","Sea_view_from_Mijas_village_thumb.JPG",130,87,15);thumbnails[3652558]=new thumbnail(3652558,"222070","The Alhambra, Granada, seen from the Sacromonte district","Alhambra_from_Barbaras_house_in_Sacromonte1_thumb.JPG",130,98,15);thumbnails[3652565]=new thumbnail(3652565,"222070","Aproaching Montefrio","Approaching_Montefrio1_thumb.JPG",130,98,15);thumbnails[3655363]=new thumbnail(3655363,"222070","Benahavis","Benahavis_small_square_thumb.JPG",130,87,15);thumbnails[3644971]=new thumbnail(3644971,"222070","The white village of Istan","Istan_little_square_thumb.JPG",130,98,15);thumbnails[3644968]=new thumbnail(3644968,"222070","Istan white village: tiled former wash-house","Istan_wash_house_tiles_thumb.JPG",130,98,15);thumbnails[3652442]=new thumbnail(3652442,"222070","Walking along the beach from Cabopino to Elviria","walking_along_the_beach_to_Elviria_thumb.JPG",130,98,15);thumbnails[3650178]=new thumbnail(3650178,"222070","Elviria chiringuito","Elviria_chiringuito_thumb.JPG",130,98,15);thumbnails[3655477]=new thumbnail(3655477,"222070","Tiled fountain in Marbella","tiled_fountain_and_bird_of_paradise_Marbella_thumb.JPG",130,98,15);thumbnails[3655398]=new thumbnail(3655398,"222070","Marbella beach + old boat","Marbella_beach_boat_pretty_thumb.JPG",98,130,15);thumbnails[3644959]=new thumbnail(3644959,"222070","Tiled seat in the park above the Avenida del Mar, Marbella","Marbella_park_bench_1_thumb.JPG",130,98,15);thumbnails[3655386]=new thumbnail(3655386,"222070","January in Estepona ","Cabopino_gulls_and_palms_thumb.JPG",130,87,15);var galleries=new Object();galleries[221051]=new gallery(221051,"3655181","Property details","section270782",[3614653,3614660,3613600,3612584,3612668,3655179,3644410,3655181,3655886,3655901,3724070]);galleries[221179]=new gallery(221179,"3650093","Around Cabopino","section270782",[3644542,3655447,3644419,3644416,3655414,3655375,3655467,3655389,3644380,3655390,3655445,3644819,3644512,3644516,3655882,3655881,3655830,3644523,3655449,3644527,3655450,3650093,3655377,3655395,3644533,3614633,3655381,3627699,3650187]);galleries[222070]=new gallery(222070,"3691262,3691219,3691217,3655487,3655477,3655462,3655438,3655425,3655421,3655420","Out and about","section270782",[3691217,3691219,3691262,3650101,3655182,3652314,3655367,3655399,3655425,3655403,3652433,3655438,3655487,3655421,3655420,3655462,3652558,3652565,3655363,3644971,3644968,3652442,3650178,3655477,3655398,3644959,3655386]);var imageSets=new Object();imageSets[1]="3483367";imageSets[2]="3655181,3650093";imageSets[3]="3724070,3720138,3716826,3691262,3691219,3691217,3655901,3655886,3655882,3655881,3655830,3655487,3655477,3655467,3655462,3655450,3655449,3655447,3655445,3655438,3655425,3655421,3655420,3655414,3655403,3655399,3655398,3655395,3655390,3655389,3655386,3655381,3655377,3655375,3655367,3655363,3655182,3655181,3655179,3652565,3652558,3652442,3652433,3652314,3650187,3650178,3650101,3650093,3644971,3644968";function randomListVal(a){arrayVals=a.split(",");if(arrayVals.length){pos=Math.round(Math.random()*(arrayVals.length-1));val=arrayVals[pos]}else{val=0}return val}function getServerPath(a){var b=-1;switch(a){case 21:b="http://www6.clikpic.com/jgullidge/images";break}switch(a){case 1:b="http://www1.clikpic.com/jgullidge/images";break}switch(a){case 2:b="http://admin.clikpic.com/jgullidge/images";break}switch(a){case 24:b="http://tpc15/clikpic/jgullidge/images";break}switch(a){case 4:b="http://www.clikchurch.com/jgullidge/images";break}switch(a){case 5:b="http://www2.clikpic.com/jgullidge/images";break}switch(a){case 22:b="http://tpc5/clikpic/jgullidge/images";break}switch(a){case 23:b="http://tpc10/clikpic/jgullidge/images";break}switch(a){case 25:b="http://tpc16/clikpic/jgullidge/images";break}switch(a){case 15:b="http://www3.clikpic.com/jgullidge/images";break}switch(a){case 18:b="http://www4.clikpic.com/jgullidge/images";break}switch(a){case 19:b="http://www5.clikpic.com/jgullidge/images";break}switch(a){case 31:b="http://www7.clikpic.com/jgullidge/images";break}switch(a){case 32:b="http://admin2.clikpic.com/jgullidge/images";break}switch(a){case 33:b="http://www8.clikpic.com/jgullidge/images";break}switch(a){case 34:b="http://www9.clikpic.com/jgullidge/images";break}switch(a){case 35:b="http://admin3.clikpic.com/jgullidge/images";break}switch(a){case 37:b="http://admin4.clikpic.com/jgullidge/images";break}return b}function showHomeImage(a){imageID=randomListVal("");if(!basic){a.src=photos[imageID].src;a.width=photos[imageID].width;a.height=photos[imageID].height}else{newImage=new Image(photos[imageID].width,photos[imageID].height);newImage.src=photos[imageID].src;document.images[a.name]=newImage}}function showHomeImageInline(){html="";imageID=randomListVal(imageSets[1]);if("section270782"!=""){if(backgrounds[imageID].galleries_id!=""){html+='<a href="'+backgrounds[imageID].section_code+"_"+backgrounds[imageID].galleries_id+'.html">'}else{html+='<a href="section270782.html">'}}html+='<img src="'+backgrounds[imageID].src+'" width="'+backgrounds[imageID].width+'" height="'+backgrounds[imageID].height+'" class="mainhomepageimage photo" id="mainSample" name="mainSample" alt="'+backgrounds[imageID].caption+'" border="0">';if("section270782"!=""){html+="</a>"}$("#homepageimage").html(html)}function getNextId(b,d,a){var c=getArrayPos(d,b);if(a){if(c==0){nextImgPos=d.length-1}else{nextImgPos=c-1}}else{if(c==d.length-1){nextImgPos=0}else{nextImgPos=c+1}}nextImg=d[nextImgPos];return nextImg}function next(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a);if(nextImg!=-1){updateImage(nextImg,d,b)}}function updateImage(f,e,b){if(!basic){document.getElementById("imagePhoto").innerHTML='<img class="mainphoto photo" src="'+photos[f].src+' " id="mainPic" name="mainPic" width="'+photos[f].width+'" height="'+photos[f].height+'" alt="'+photos[f].caption+'">';e.value=photos[f].id;$("#imageTitle").html(photos[f].caption);document.title="Las Mimosas Cabopino: "+photos[f].caption;if(photos[f].caption==""){document.getElementById("imageTitle").style.display="none"}else{document.getElementById("imageTitle").style.display="block"}var a=fnGetImageDetails(f);if(a==""){document.getElementById("imageDetails").style.display="none";var c=document.getElementById("infoWrap");var d=document.getElementById("photoInfo");if(photos[f].caption==""){if(c!=null){c.className="empty"}if(d!=null){d.className="empty"}}else{if(c!=null){c.className="noinfo"}if(d!=null){d.className="noinfo"}}}else{document.getElementById("imageDetails").style.display="block";var c=document.getElementById("infoWrap");if(c!=null){c.className="normal"}var d=document.getElementById("photoInfo");if(d!=null){d.className="normal"}}document.getElementById("imageDetails").innerHTML=a;toggleAddToCartConfirm()}else{window.location="photo_"+photos[f].id+".html"}}function toggleAddToCartConfirm(){if($("#paymentConfirm").size()){$("#paymentConfirm").hide();$("#paymentAddButton").unbind().click(function(){form=document.getElementById("paymentForm");option_id=0;if(form.item_option.value){option_id=form.item_option.value}if(addItemToBasket(form.item_number.value,photos,form.site.value,parseInt(form.quantity.value,10),option_id)){if($.browser.msie){$("#paymentConfirm").text("Item added to cart").show()}else{$("#paymentConfirm").text("Item added to cart").fadeIn()}}else{$("#paymentConfirm").text("Item not added - check cookies are enabled in your browser.").fadeIn()}})}}function fnGetImageDetails(b){var a="";if(photos[b].description!=""){a=a+'<p id="imageDescription">'+photos[b].description+"</p>"}if(photos[b].photo_ref!=""){a=a+'<p class="imageinfo" id="imageRef"><strong>Ref: </strong>'+photos[b].photo_ref+"</p>"}if(photos[b].takendate!=""){a=a+'<p class="imageinfo" id="imageDate"><strong>Date: </strong>'+photos[b].takendate+"</p>"}if(photos[b].location!=""){a=a+'<p class="imageinfo" id="imageLocation"><strong>Location: </strong>'+photos[b].location+"</p>"}if(photos[b].photographer!=""){a=a+'<p class="imageinfo" id="imagePhotographer"><strong>Photographer: </strong>'+photos[b].photographer+"</p>"}if(a!=""){a=a+'<div class="spacer"></div>'}return a}function fnGetPaymentInfo(c){var b="";if(c.item_price!==""){b=b+"<p>Order this print:</p>";b=b+'<p class="imageinfo" id="imagePrice"><strong>'+c.purchase_instruction+"</strong> 							"+(c.item_price).toFixed(2)+"</p>";var e=c.purchase_instruction;var d=(c.item_price).toFixed(2);var a=0}else{if(c.payment_groups_id!==""){b=b+"<p>Buy this print online:</p>";b=b+'<form id="paymentOptions" style="margin:0px;border:0px;" name="paymentOptions">';b=b+'<select class="paymentlink" name="payment_options_id" onchange="updateItemValues(document.forms.paymentForm,this.form.payment_options_id.options[this.form.payment_options_id.options.selectedIndex].value);">';b=b+getPaymentOptions(c.payment_groups_id);b=b+"</select>";b=b+"</form>";var a=paymentGroups[c.payment_groups_id].options[0];if(paymentOptions[a]){var e=paymentOptions[a].payment_option;var d=paymentOptions[a].price}}else{}}if(c.item_price!==""||c.payment_groups_id!==""){b=b+'<div class="clearing">&nbsp;</div>'}return b}function previous(d,b){var c=d.value;var a=galleries[photos[c].galleries_id].photoIDs;nextImg=getNextId(c,a,1);if(nextImg!=-1){updateImage(nextImg,d,b)}}function showGalleryImage(c,b){imageID=randomListVal(galleries[c].featured_images);if(imageID!=0){b.src=thumbnails[imageID].src;b.width=thumbnails[imageID].width;b.height=thumbnails[imageID].height;if(b.width<130){var f=$("img#gallery"+c);f.parents(".thumbWrap").width(b.width);var a=f.siblings("h3").size()==1?f.siblings("h3"):f.parent(".thumbWrap").siblings("h3");var g=parseInt(a.css("padding-left"))+parseInt(a.css("padding-right"));var d=parseInt(a.css("border-left-width"))+parseInt(a.css("border-right-width"));var e=parseInt(f.parents(".thumbWrap").css("border-left-width"))+parseInt(f.parents(".thumbWrap").css("border-right-width"));a.width(f.outerWidth(true)-g-d+e)}}}function showGalleries(a){if(!basic){temp="";for(i=0;i<galleries.length;i++){if(galleries[i].id!=a){if(temp!=""){temp=temp+" | "}temp=temp+'<a href="gallery_'+galleries[i].id+'.html">'+galleries[i].title+"</a>"}}document.all.galleryLinks.innerHTML="Other galleries: "+temp}}function resizePhotoInfo(n){var b=$.extend({centre:false},n||{});var d=3;$("div#photoPanelOuter").height("auto");$("div#infoWrap").width(200);$("div#photoDetail").css("width","auto");var h=$("div#maincolContent").width();var j=$("div#photoWrap").outerWidth(true);var m=$("div#infoWrap").outerWidth(true);var k=$("div#photoWrap").outerHeight();var f=$("div#infoWrap").outerHeight();var c=$("div#infoWrap").hasClass("empty");floatDrop=0;var g=j;if(!c){if(h<(j+m)){floatDrop=1}if(!floatDrop){var a=$("div#infoWrap").innerWidth();$("div#infoWrap").width(a+(h-j-m-d));m=$("div#infoWrap").outerWidth(true);g=j+m;if(k>f){var e=$("div#photoPanelOuter").height();$("div#photoPanelOuter").height(e+(k-f));var f=$("div#infoWrap").outerHeight()}}else{var l=$("div#photoWrap").outerWidth();$("div#infoWrap").width(l)}}if(b.centre){$("div#photoDetail").width(g);$("div#photoDetail").css("margin-left","auto");$("div#photoDetail").css("margin-right","auto")}else{$("div#photoDetail").css("margin-left","0");$("div#photoDetail").css("margin-right","0")}}function getArrayPos(c,b){for(var a=0;a<c.length;a++){if(c[a]==b){return a}}return -1}function changeBgImg(a,e){var c=randomListVal(imageSets[e]);var d=backgrounds[c].src;var b=$(a);if(b.size()>0){if(/\bimg$/.test(a)){b.attr({src:d})}else{b.css({"background-image":'url("'+d+'")'})}}};