function showImg(html)
{
	$("#proshowbox").html(html).find("img").attr("id","ADrush");
	if($.browser.msie){
		var A=document.getElementById("ADrush");
		A.filters.revealTrans.Transition=30;
		A.filters.revealTrans.apply();
		$("#proshowbox img").show();
		A.filters.revealTrans.play();
	}else{
		$("#proshowbox img").hide().fadeIn(800);
	}
}
function imglist(id)
{
	$("#proshow").empty().append("<img src='images/ico_loading_dak.gif' id='loading' />");
	$("#propage,#lminfocontent").empty();
	
	$("#lminfotitle,#lmtitle span").text($("#Lb_"+id).text());
	
	$.ajax({url: "prodata.asp?ty=content&id="+id,cache:false,success: function(html){
			$("#lminfocontent").html(html);
			}}); 
	$.ajax({url: "prodata.asp?ty=imglist&id="+id,cache:false,success: function(html){
			$("#proshow").html(html);$("#proshow a:first").click();
		}});
	$.ajax({url: "prodata.asp?ty=imgpage&id="+id,cache:false,success: function(html){
			$("#propage").empty().html(html);
		}});
}

function imgpage(id,page)
{
	$("#proshow").empty().append("<img src='images/ico_loading_dak.gif' id='loading' />");
	$("#propage").empty();
	$.ajax({url: "prodata.asp?ty=imglist&id="+id+"&page="+page,cache:false,success: function(html){
			$("#proshow").html(html);$("#proshow a:first").click();
		}});
	$.ajax({url: "prodata.asp?ty=imgpage&id="+id+"&page="+page,cache:false,success: function(html){
			$("#propage").empty().html(html);
		}});
}

var imgsize=$("#lmboxscroll ul li").size(),i=1;
var maxi=imgsize-5;
var toptime,downtime;
function chkmaxmin(o){if(o==maxi){
	$("#snext").addClass("noclick");
	$("#sprve").removeClass("noclick");
	}else if(o==1){
		$("#snext").removeClass("noclick");
		$("#sprve").addClass("noclick");
	}else{
		$("#snext").removeClass("noclick");
		$("#sprve").removeClass("noclick");
	}
}

function prveli(){
	if(i>1){$("#lmboxscroll").find("ul").animate({marginTop:"-"+((i-2)*81)+"px"},500,function(){i--;chkmaxmin(i);});}
}

function nextli(){
	if(i<maxi){$("#lmboxscroll").find("ul").animate({marginTop:"-"+(i*81)+"px"},500,function(){i++;chkmaxmin(i);});}
}
