function get_ajax(my_url)
{
    var reg=/{/;
    if (reg.test(my_url))
    {
        eval(my_url);
    }
    else
    {
    
     $("#cnt").prepend("<div id='loading'></div>");

     $.ajax({
            method: "get",
            url: my_url,
            data: "",
             beforeSend:
             function() { $("#loading").show(); },
             complete:
             function() { $("#loading").hide(); },
             success:
             function(html) 
		{ 
			$("#cnt").empty(); 
			$("#cnt").hide(); 
			$("#cnt").append(html); 
			$("#cnt").fadeIn('slow').show(); 
		}
           }); 
     }//if    
}

function get_ajax2(my_url,cnt_id)
{
    //$("#cnt").prepend("<div id='loading'></div>");
     //alert(cnt_id);
     $.ajax({
            method: "get",
            url: my_url,
            data: "",
             success:
             function(html) 
		{ 
		 $("#"+cnt_id).html(html); 
		}
           }); 
}

function get_url(url)
 {
   var tmp_arr=url.split('#');
   if (tmp_arr[1]){ return (tmp_arr[1])}
 }



var pages = new Object();
pages = {
    wireless:   "/templates/wireless_price_01-07-2010.html",
    wire:       "/templates/wire_price_01-07-2010.html",
    corporate:  "/templates/corporate_price_15-05-2009.html",
    operator:   "/templates/operator_price_01-07-2010.html",
    hosting:    "/templates/hosting_price_15-05-2009.html",
    diff:       "/templates/diff_price_15-05-2009.html",
    reg:        "/templates/reg.html",
    tarif_arch: "/templates/tarif_arch.html",
    
    address:    "/templates/settings_address.html",
    pppoe:      "/templates/settings_pppoe.html",
    speedtest:  '{window.open("/speedtest/index.php")}',
    doc:        "/templates/doc.html",
    
    norm:       "/templates/norm.html",
    ug:         "/templates/ug.html",
    
    about:      "/templates/about.html",
    contact:    "/templates/contact.html"
        
}


