/* QuickView Overlay Script
 * Author: Scott Hills
 * Requires: jQuery 1.2.3 or later
 * Uncompressed: quickview.js
 */
var showing=false;var overqv=false;var overimg=false;function hideQV(){if(!overqv&&!overimg){$('.qvimage').hide();showing=false;}}$(function(){var overlayCache=[];$('#overlay').overlay({centered:false,fixed:false,modal:{css:{backgroundColor:'#ffffff',opacity:0.00}},onHide:function(){$('#overlay').removeShadow().hide();}});$('a.dr_thumbnailImage').each(function(index){this.onmouseover=function(){if(!showing){$(this).parent().parent().find('.qvimage').show();}showing=true;overimg=true;};this.onmouseout=function(){var smallTimer=setTimeout("hideQV()",25);showing=false;overimg=false;};});$('.qvimage a').each(function(index){this.onclick=function(){var thislink=$(this).attr("href");var indexvar=$('.qvimage a').index(this);var content=$('#content').position();var clickedpos=$(this).position();$('#overlay').removeShadow().showOverlay(function(overlayElement){$(this).css({top:clickedpos.top+content.top-30,left:content.left+(clickedpos.left/4)+150});$(this).html('Loading...').show().load(thislink,"",function(){overlayCache[indexvar]=$(this).html();$(this).dropShadow({left:3,top:3,opacity:0.75,blur:5});$(this).find('.close span').click(function(){$('#overlay').removeShadow().hide();});});});return false;};this.onmouseover=function(){$(this).parent().show();showing=true;overqv=true;};this.onmouseout=function(){overqv=false;var smallTimer=setTimeout("hideQV()",25);};});});