 $(document).ready(function() {
   $(".country").click(function() {

   $("#author").load("/include/_script.php",{"country":this.id});
	 
		chAuthors('0');
   });
// 	$("#folio").lightBox();
//    $(".authorCl").click(function() {
// 		alert('safgvade');
//  //  $("#folio").load("/include/_script_author.php",{"author":this.id});
//    });
 });

function chAuthors(idd)
{
		if(idd>0) 
		 $("#author").load("/include/_script_a.php",{"author":idd});	
         $("#folio").load("/include/_script_author.php",{"author":idd});
        
}
function chCountries(idd)
{

       $("#country").load("/include/_script_c.php",{"country":idd});
   	   $("#author").load("/include/_script.php",{"country":idd});
	   chAuthors('0');	
}
// function getPic(event)
// {
// 
// 	$('a.simg').lightBox(event);
// 
// }
// $(document).ready(function(){
// 
// 	$("#e_place").each(function()
// 	       {
//            $(this).change( chFastcountry );
// 						$(this).change( chFasttown );
// 	       }
// 	);
// 
// 	$("#e_reg").change( chFasttown );
// });
// 
// 
// function chFastcountry(event)
// {
// 
// 	$("#e_reg").removeOption(/./);
//     $("#e_reg").ajaxAddOption("../include/_script_gradove.php",{"placetype" : $(this).val()},false,function() {
//     	});
// 
// 	$("#e_reg").change( chFasttown );
// }
// function chFasttown(event)
// {
// 		$("#e_loc").removeOption(/./);
//     $("#e_loc").ajaxAddOption("../include/_script_loc.php",{"reg" : $("#e_reg").val()},false,function() {
//     	});
// }
