Current File : /home/aventura/public_html/js/contacto.js |
//alert('Heloo');
Cufon.replace("#mainMenu ul li", {fontFamily: 'Bebas Neue' });
Cufon.replace('h2', {fontFamily: "Lobster 1.3" });
Cufon.replace('h3', {fontFamily: "Lobster 1.3" });
// $('#allPages').fadeIn("3000");
Cufon.replace('.page_header_4', {fontFamily: 'Bebas Neue' });
Cufon.replace('.moreButton_Type1', {fontFamily: 'Bebas Neue'});
Cufon.replace('.moreButton_Type2', {fontFamily: 'Bebas Neue' });
Cufon.replace('.btns a', {fontFamily: 'Bebas Neue' });
Cufon.replace('.previewPrev', {fontFamily: 'Bebas Neue' });
Cufon.replace('.previewNext', {fontFamily: 'Bebas Neue' });
contactFormInit();
<!-- --><iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com.ar/maps?ie=UTF8&cid=16493144416505607795&q=Turismo+de+Castro&gl=AR&hl=es&ll=-26.182965,-58.167259&spn=0.006295,0.006295&t=m&output=embed"></iframe>
var mapUrl = "https://maps.google.com.ar/maps?ie=UTF8&cid=16493144416505607795&q=Turismo+de+Castro&gl=AR&hl=es&ll=-26.182965,-58.167259&spn=0.006295,0.006295&t=m&output=embed",
onLoadWebSite = true,
googleMapHolder = $(".google_map"),
backgroundColor = googleMapHolder.css("backgroundColor"),
mapWidth=googleMapHolder.css("width"),
mapHeight=googleMapHolder.css("height"),
borderTopLeftRadius = googleMapHolder.css("borderTopLeftRadius"),
borderTopRightRadius = googleMapHolder.css("borderTopLeftRadius"),
borderBottomLeftRadius = googleMapHolder.css("borderTopLeftRadius"),
borderBottomRightRadius = googleMapHolder.css("borderTopLeftRadius"),
addMap=false,
idPage,
intervalCall;
if(backgroundColor == "rgba(0, 0, 0, 0)"){
backgroundColor= "#FFF";
}
googleMapHolder.css({"overflow":"hidden"});
googleMapHolder.append("<div id='loaderPart' style='position:absolute; z-index:1; width:"+mapWidth+"; height:"+mapHeight+"; background: #FFF url(images/ajax-loader.gif) no-repeat 50%; border-top-left-radius:"+borderTopLeftRadius+"; border-top-right-radius:"+borderTopRightRadius+"; border-bottom-right-radius:"+borderBottomLeftRadius+"; border-bottom-left-radius:"+borderBottomRightRadius+";'></div>");
intervalCall = setInterval(addIframe, 200)
function addIframe(){
//if($(idPage).css("display")!="none"){
clearInterval(intervalCall);
googleMapHolder.append("<iframe width='"+mapWidth+"' height='"+mapHeight+"' frameborder='0' src='"+mapUrl+"' style='position:absolute; z-index:0; border-top-left-radius:"+borderTopLeftRadius+"; border-top-right-radius:"+borderTopRightRadius+"; border-bottom-right-radius:"+borderBottomLeftRadius+"; border-bottom-left-radius:"+borderBottomRightRadius+";'></iframe>");
googleMapHolder.find("iframe").load(googleMapLoadCompleteHandler);
//}
}
function googleMapLoadCompleteHandler(){
var loaderPart = googleMapHolder.find("#loaderPart");
loaderPart.delay(100).fadeOut(500, function(){loaderPart.css({"display":"none"});});
}