jQuery.noConflict();

var loadCounter = 0;
var WARRANTY_URL = "http://www.hotelone.pl/gwarancjaceny_hotelone.html";
var FAQ_URL = "http://www.booking.com/general.html?aid=326182;sid=73d168de710a21bf072d44f166033b5a;tmpl=docs/faqmain";

function loadMain(){
}

function readyMain(){
    jQuery("iframe").load(function(){
        jQuery(this).removeClass("loading");
        loadCounter++;
        if (loadCounter == 2) 
            //jQuery("iframe").attr("height", 31522);
    	    jQuery("iframe").attr("height", 3000);
    });
    
    jQuery("map[name='rezerwuj-online'] #gwarancja").click(function(){
        showDialog(WARRANTY_URL, 470, 500);
        return false;
    });
    
    jQuery("#faq a").click(function(){
        window.open(FAQ_URL, 'FAQ', 'scrollbars=1,width=700,height=600');
        return false;
    });
    
    jQuery("select").change(function(){
        window.location.href = "http://www." + jQuery("option:selected").text();
        return false;
    });
}

