';
var gallery8_object = '
This text will be replaced
';
var gallery9_object = '
This text will be replaced
';
var gallery10_object = '
This text will be replaced
';
$(document).ready(function(){
$("div.sidebar div.tn").hover(tn_over,tn_out);
$("#tn1").click(function(){ gg=1; cc(); $("#gallery").html(gallery1_object); });
$("#tn2").click(function(){ gg=2; cc(); $("#gallery").html(gallery2_object); });
$("#tn3").click(function(){ gg=3; cc(); $("#gallery").html(gallery3_object); });
$("#tn4").click(function(){
gg=4; cc(); $("#gallery").html(gallery4_object);
//$("#gallery div.tn").hover(tn_over_big,tn_out_big);
//$("#gallery div.tn").each(tn_over_big);
});
$("#tn5").click(function(){ gg=5; cc(); $("#gallery").html(gallery5_object); });
$("#tn6").click(function(){ gg=6; cc(); $("#gallery").html(gallery6_object); });
$("#tn"+gg).children("div.hoverOverlay").css("left", $("#tn"+gg).position().left);
$("#tn"+gg).children("div.hoverOverlay").css("top", $("#tn"+gg).children("img").position().top + 42);
$("#tn"+gg).children("div.hoverOverlay").css("display", "block");
});
function s1(){ $("#gallery").html(gallery7_object); }
function s2(){ $("#gallery").html(gallery8_object); }
function s3(){ $("#gallery").html(gallery9_object); }
function s4(){ $("#gallery").html(gallery10_object); }
function cc(){
$("div.hoverOverlay").css("display", "none");
$("#tn"+gg).children("div.hoverOverlay").css("display", "block");
}
function tn_over(){
$(this).children("div.hoverOverlay").css("left", $(this).children("img").position().left);
$(this).children("div.hoverOverlay").css("top", $(this).children("img").position().top + 42);
$(this).children("div.hoverOverlay").css("display", "block");
}
function tn_out(){
if (this.id != "tn"+gg)
$(this).children("div.hoverOverlay").css("display", "none");
}
function tn_over_big(){
$(this).children("div.hoverOverlayBig").css("left", $(this).position().left);
$(this).children("div.hoverOverlayBig").css("top", $(this).position().top - 32);
$(this).children("div.hoverOverlayBig").css("display", "block");
}
function tn_out_big(){
$(this).children("div.hoverOverlayBig").css("display", "none");
}