<!--
var modalWindow = {
	parent:"body",
	content:null,
	width:null,
	height:null,
	close:function(){
		$(".modal-overlay").css({opacity:1}).animate({opacity:0}, 650).remove();
		//$(".modal-window").animate({top: '+=15', opacity:0}, 300, function() { $(".modal-window").remove().animate({top: '+=0'}, 0);});
		//$("#myModal").slideUp(1500, function() { $("#myModal").remove();});
		$("#myModal").remove();
		$('#imgPreviewWithStyles').remove(); 
	},
	open:function()
	{
		var modal = "";
		modal += "<div class=\"modal-overlay\"></div><div id=\"myModal\" class=\"modal-window\" style=\"width:" + this.width + "px; height:" + this.height + "px; margin-top:-" + ((this.height / 2)) + "px; margin-left:-" + (this.width / 2) + "px; display:none;\"><a class=\"close-window\"><img src=\"/JS/overlay/close.png\" align=\"absmiddle\" height=\"36\" width=\"36\"></a><BR clear=\"all\"><div id=\"modal-cont\" class=\"modal-window-cont\" style=\"width:" + (this.width-40) + "px; height:" + (this.height-50) + "px; \" ><BR><BR><BR><BR><BR><img src=\"/images/ajax-loading.gif\" align=\"absbottom\" border=\"0\"></div></div>";
		//$(this.parent).append(modal).css({opacity:.7}).animate({top: '+=15', opacity:1}, 550).show();
		$(this.parent).append(modal);
		$("#myModal").fadeIn(950);
		$("#modal-cont").load(this.content);
		$(".close-window").click(function(){modalWindow.close();});
		$(".modal-overlay").click(function(){modalWindow.close();});
	}
};
var openMyModal = function(idx)
{	modalWindow.width = 400;
	modalWindow.height = 400;
	//modalWindow.content = $('#'+idx).attr("href");
	modalWindow.content = '/shop/_getprod.asp?CATIDz='+idx;
	
	modalWindow.open();
};
//-->
