$(document).ready(function() {
	$(".img_corner").corner("#faf7ed 5px");

    $("a[@class='imagesnap']").hover(function(e) {
    trgt = $(e.target).is("a") ? $(e.target) : $(e.target).parents("a");
    html = "<div id='ttimagesnap' class='ttimagesnap_style'\><img src='"
    + trgt.attr("href")
    + "' border='0' \/><\/div>";
    $(html).appendTo("body");
    $('#ttimagesnap').css({
    position:'absolute',
    left:350,
    top:getPageScroll()[1] + (getPageHeight() / 14)});
    $('#ttimagesnap').hide().fadeIn("slow");
    },function(e) {
      $('#ttimagesnap').fadeOut("slow").remove();
    });

    $("a[@class='imagesnap']").click(function(e) {
    return false;
    });

    function getPageScroll() {
    var xScroll, yScroll;
    if (self.pageYOffset) {
      yScroll = self.pageYOffset;
      xScroll = self.pageXOffset;
    } else if (document.documentElement && document.documentElement.scrollTop) {	 // Explorer 6 Strict
      yScroll = document.documentElement.scrollTop;
      xScroll = document.documentElement.scrollLeft;
    } else if (document.body) {// all other Explorers
      yScroll = document.body.scrollTop;
      xScroll = document.body.scrollLeft;
    }
    return new Array(xScroll,yScroll)
    }

    function getPageHeight() {
    var windowHeight
    if (self.innerHeight) {	// all except Explorer
      windowHeight = self.innerHeight;
    } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
      windowHeight = document.documentElement.clientHeight;
    } else if (document.body) { // other Explorers
      windowHeight = document.body.clientHeight;
    }
    return windowHeight
    }
});