jQuery(document).ready(function(){
    jQuery("#volLink").click(function() {
        var url = "/csvweb/static-pages/alert/alert-redirection.htm?tab=vol&KeepThis=true&TB_iframe=true&height=137&width=380&modal=true";
        tb_show("Vol", url, null);
        return false;
    });
    jQuery("#hotelLink").click(function() {
        var url = "/csvweb/static-pages/alert/alert-redirection.htm?tab=hotel&KeepThis=true&TB_iframe=true&height=137&width=380&modal=true";
        tb_show("Hotel", url, null);
        return false;
    });
    jQuery("#voitureLink").click(function() {
        var url = "/csvweb/static-pages/alert/alert-redirection.htm?tab=voiture&KeepThis=true&TB_iframe=true&height=137&width=380&modal=true";
        tb_show("Voiture", url, null);
        return false;
    });
});


function extractUrlParamValue(paramName){
    var allParams = location.search.substring(1).split('&'),
        result = "",
        i = 0,
        paramFound = false,
        currentParam = [];

    while (i < allParams.length & !paramFound){
        currentParam = allParams[ i ].split('=');
        if (currentParam[0].indexOf(paramName)!= -1) {
            paramFound = true;
            result = currentParam[1];
        }
        i = i + 1;
    }
    return result;
}
