// JavaScript Document
$(document).ready(function() {  
	if(jQuery.browser.version.substr(0,3)=="6.0")
		$('img[src$=.png], .menuS').ifixpng();
	
	$("#service").click(function () { 
    	$("#menu").slideToggle(); 
    });
	
	$('#viewerFrame a').lightBox();
	
	$("#viewer").imageScroller({
		next:"next",
		prev:"prev",
		parent:"viewer",
		frame:"viewerFrame",
		width:110,
		child:"a",
		speed:900,
		speedWheel:400,
		typeAction:"click" // hover
 	});
	
});

function getNews(page) {
	$.ajax({   
			type: "POST",
			url: '/function.php',
			data: "getNews=" + page,
			beforeSend: function(){$(".loading").show();}, //show loading just when link is clicked   
			complete: function(){$(".loading").hide();}, //stop showing loading when the process is complete   
			success: function(html) { //so, if data is retrieved, store it in html   
			$("#data").html(html);
		}   
	}); //close $.ajax(
}
