// JavaScript Document

function loadGalleryInSlideShow(lintPictureID,lintGalleryID){
	$("#imageSlideShowBackground").css("height","100%");
	if(BrowserDetect.browser == "Explorer" && BrowserDetect.version == "6"){
		$("#flashcontent").hide();
		window.scrollTo(0,0);
		//alert("jkjk");
	}
	$("#imageSlideShowBackground").fadeIn(300,function(){
		$("#imageSlideShowTd").load("/galerije/slide_show.asp","pid=" + lintPictureID + "&gid=" + lintGalleryID,function(){
			$("#imageSlideShow").fadeIn(300);																											 
		});
	});
}

function loadImage(lintPictureID,lintGalleryID){
	$("#imageSlideShow").fadeOut(300,function(){
		$("#imageSlideShowTd").load("/galerije/slide_show.asp","pid=" + lintPictureID + "&gid=" + lintGalleryID,function(){
			$("#imageSlideShow").fadeIn(300);																											 
		});
	});
}

function closeSlideShow(){
	$("#imageSlideShowBackground").fadeOut(300);
	$("#imageSlideShow").fadeOut(300,function(){
		if(BrowserDetect.browser == "Explorer" && BrowserDetect.version == "6"){
			$("#flashcontent").show();
		}
	});
}

$(document).ready(function(){
						   
	$("#imageSlideShowBackground").hide();
	$("#imageSlideShow").hide();	
	
});

