Cufon.set('fontFamily', 'Futura Book');
Cufon.replace('#phone-number .text');
Cufon.replace('#main-content .info h2');
Cufon.set('fontFamily', 'Futura Bold');
Cufon.replace('#phone-number .phone');
Cufon.replace('#main-content .info h1');
Cufon.replace('#country-list #close');
Cufon.set('fontFamily', 'Futura Medium');
Cufon.replace('#tab-content .tab-header h1');
Cufon.replace('#country-list h2');
Cufon.replace('#rates-container h2');
Cufon.replace('#rates-container .price');
$(function() {
// preload images
for(var i = 0; i < arguments.length; i++) {
$("").attr("src", arguments[i]);
}
// tabs
$('ul.tabs li:first a').addClass('active');
$('#tab-content > div:not(:first):not(:last)').css('display','none');
$('ul.tabs li a').click(function(){
var currTab = $(this).parent().attr('class');
$('ul.tabs li a').each(function() {
$(this).removeClass('active');
});
$('#tab-content > div:not(:last)').each(function() {
$(this).css('display','none');
});
$('#tab-content .' + currTab + '-content').css('display','block');
$(this).addClass('active');
$('#tab-content').removeClass().addClass(currTab);
});
// view countries dropdown
var showCountries = 0;
$('#view-countries-button , #forty-five-countries').click(function(){
openCountries();
});
function openCountries(bodyClicked) {
if (showCountries === 0) {
showCountries = 1;
$('#view-countries-button').addClass('expanded');
$('#countries').slideDown(200);
$('#tab-container #tab-content .tab-header h1 ').hide(); // hack for IE6/7
}else{
showCountries = 0;
$('#view-countries-button').delay(3000).removeClass('expanded');
$('#countries').hide();
$('#tab-container #tab-content .tab-header h1 ').show(); // hack for IE6/7
}
}
$('#country-list #close').click(function(){
showCountries = 0;
$('#view-countries-button').delay(3000).removeClass('expanded');
$('#countries').hide();
$('#tab-container #tab-content .tab-header h1 ').show(); // hack for IE6/7
});
//Select all anchor tag with rel set to tooltip
$('a[rel=tooltip]').mouseover(function(e) {
var tip = $(this).attr('title');
$(this).attr('title','');
$(this).append('