
	
$(document).ready(function() {               
        $("#printbtn").click( function() {
            $('#leftcontent').jqprint();
            return false;
        });
    }); 

    	 $(document).ready(function() {
 	 $("#responsecontainer").load("response.php");
   var refreshId = setInterval(function() {
      $("#responsecontainer").load('response.php?randval='+ Math.random());
   }, 3000);
});	
    
$(document).ready(function(){
			$("a[rel='example1']").colorbox();
			$(".example7").colorbox({width:"900", height:"600", iframe:true});
			$("#click").click(function(){ 
				$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
				return false;
			});
		});
		

$(document).ready(function(){		
				$.ajax({
						type: "GET", url: "/js/ajax/news.php", data: "news=1&lng="+$('#anews1').attr('class'),
						success: function(data){							
							$('#news-img').empty();
        					$('#news-text').empty();                          
        					var obj = jQuery.parseJSON(data);							                       
	                        $('#news-text').html(obj.news);
	                        $('#news-img').html(obj.image);
						},
						error: function(msg){}
				});
		/*
            	$.ajax({
						type: "GET", url: "/js/ajax/news.php", data: "news=1&lng="+$('#anews1').attr('class'),
						success: function(data){
                            $('#news-text').empty();
                            $('#news-text').html(data);
						},
						error: function(msg){}
				});
                $.ajax({
						type: "GET", url: "/js/ajax/news.php", data: "newsimage=1&lng="+$('#anews1').attr('class'),
						success: function(data){
                            $('#news-img').empty();
                            $('#news-img').html(data);
						},
						error: function(msg){}
				});
		*/
				
    		$('#anews1').click(function(){
    			$.ajax({
						type: "GET", url: "/js/ajax/news.php", data: "news=1&lng="+$('#anews1').attr('class'),
						success: function(data){							
							$('#news-img').empty();
        					$('#news-text').empty();                          
        					var obj = jQuery.parseJSON(data);							                       
	                        $('#news-text').html(obj.news);
	                        $('#news-img').html(obj.image);
						},
						error: function(msg){}
				});
    			/*
				$.ajax({						
						type: "GET", url: "/js/ajax/news.php", data: "news=1&lng="+$('#anews1').attr('class'),
						success: function(data){
                            $('#news-text').empty();
                            $('#news-text').html(data);
						},
						error: function(msg){}
				});
                $.ajax({
						type: "GET", url: "/js/ajax/news.php", data: "newsimage=1&lng="+$('#anews1').attr('class'),
						success: function(data){
                            $('#news-img').empty();
                            $('#news-img').html(data);
						},
						error: function(msg){}
				});
				*/
            });
    	$('#anews2').click(function(){
				$.ajax({
						type: "GET", url: "/js/ajax/news.php", data: "news=2&lng="+$('#anews2').attr('class'),
						success: function(data){							
							$('#news-img').empty();
        					$('#news-text').empty();                          
        					var obj = jQuery.parseJSON(data);							                       
	                        $('#news-text').html(obj.news);
	                        $('#news-img').html(obj.image);
						},
						error: function(msg){}
				});
    			/*
    			$.ajax({
						type: "GET", url: "/js/ajax/news.php", data: "news=2&lng="+$('#anews2').attr('class'),
						success: function(data){
                            $('#news-text').empty();
                            $('#news-text').html(data);
						},
						error: function(msg){}
				});
                $.ajax({
						type: "GET", url: "/js/ajax/news.php", data: "newsimage=2&lng="+$('#anews2').attr('class'),
						success: function(data){
                            $('#news-img').empty();
                            $('#news-img').html(data);
						},
						error: function(msg){}
				});
				*/
            });

        $('#anews3').click(function(){        	
        	/**/
        	
        	$.ajax({
						type: "GET", url: "/js/ajax/news.php", data: "news=3&lng="+$('#anews3').attr('class'),
						success: function(data){							
							$('#news-img').empty();
        					$('#news-text').empty();                          
        					var obj = jQuery.parseJSON(data);							                       
	                        $('#news-text').html(obj.news);
	                        $('#news-img').html(obj.image);
						},
						error: function(msg){}
				});
        	
        	
        	
        		/*
        		$.ajax({
						type: "GET", url: "/js/ajax/news.php", data: "news=3&lng="+$('#anews3').attr('class'),
						success: function(data){
                            $('#news-text').empty();
                            $('#news-text').html(data);
						},
						error: function(msg){}
				});
                $.ajax({
						type: "GET", url: "/js/ajax/news.php", data: "newsimage=3&lng="+$('#anews3').attr('class'),
						success: function(data){
                            $('#news-img').empty();
                            $('#news-img').html(data);
						},
						error: function(msg){}
				});
				*/
				
            });
		});




		
		
		
		
		
$(document).ready(function(){
	
	
	$('input[name=assembly]:radio').click(function(){
		var rb = $("input:radio:checked");
		 $.ajax({
			type: "GET", url: "/js/ajax/leg_bills_search.php", data: "sessions_ns="+rb.val()+"&lng="+rb.attr('class'),
			success: function(data){	
				$('#L_Ses_id').find('option').remove().end().append(data);
			},
			error: function(msg){}
		});			
		
		$.ajax({
			type: "GET", url: "/js/ajax/leg_bills_search.php", data: "sessions_ns1="+rb.val()+"&lng="+rb.attr('class'),
			success: function(data){	
				//alert(data);
				$('#A_ns_C_id').find('option').remove().end().append(data);
			},
			error: function(msg){}
		});			
	
	});
	
	
		
});



