j = jQuery.noConflict();
j.ajaxSetup({cache: false});
function get_city()
{
    j.ajax({
			type: "POST",
			url: "index.php?option=com_ajax&task=get_city",
			//contentType: "application/x-www-form-urlencoded;charset=utf-8",
      //contentType: "application/ajax; charset=utf-8",
			data: 'reg_id='+document.getElementById('region').value+'&acity='+document.getElementById('acity').value,
			success: function(msg){
				document.getElementById('city').innerHTML =  msg;
				//$('#ex_table img:first').css("border","#9fda00 5px solid");
   			}
   		});
}

function get_price()
{
    j.ajax({
			type: "POST",
			url: "index.php?option=com_ajax&task=get_price",
			//contentType: "application/x-www-form-urlencoded;charset=utf-8",
      //contentType: "application/ajax; charset=utf-8",
			data: 'sec_id='+document.getElementById('sectionid').value+'&acity='+document.getElementById('acity').value,
			success: function(msg){
				document.getElementById('price').innerHTML =  msg;
				//$('#ex_table img:first').css("border","#9fda00 5px solid");
   			}
   		});
}

    function add2Fav (x){
        if (document.all  && !window.opera) {
             if (typeof window.external == "object") {
                window.external.AddFavorite (document.location, document.title);
                return true;
              }
              else return false;

        }
        else{
            x.href=document.location;
            x.title=document.title;
            x.rel = "sidebar";
            return true;
        }
    }
    
function show_details(id)
{
    var display = j('#details_'+id).css('display');
    if (display=='none') j('#details_'+id).slideDown("slow");
    else j('#details_'+id).slideUp("slow");
  // alert(display);
}

j().ready(function(){
j('#navigation').accordion({ 
	active: false, 
    header: '.head', 
	navigation: true, 
    event: 'mouseover', 
	//fillSpace: true, 
    autoheight: false,
    animated: 'easeslide' 
});
});
