// JavaScript Document
ImageListBtn = new Array();
ImageListBtnHover = new Array();

$(document).ready(function(){
	$('.petrus-web-banner').cycle({
		fx: 'fade',
		timeout: 6000
	});
	
	$('.petrus-web-banner').show();
});

function show_photgallery(txtpath, cssid) {
	$.ajax({
	  url: txtpath,
	  success: function(data) {
		
		var myBorder = RUZEE.ShadedBorder.create({ corner:1, shadow:12 });
		$("#"+cssid).fadeIn(500);
		$("#"+cssid).html(data);
		myBorder.render(cssid);
		$("#"+cssid).css( "position", "absolute");
		$("#"+cssid).css( "top", $(window).scrollTop()+"px");
		
	  }
	});
}

function hide_photgallery(cssid) {
	$("#"+cssid).fadeOut(500);
	
}
