// JavaScript Document - Image Gallery Dialog Load created by Scott Harpster

	$(document).ready(function() {
		$('#galleryframe').hide();
		
	
	
$(".moreimages").click(function () {
      		var winW = 630, winH = 460;
		
		if (parseInt(navigator.appVersion)>3) {
		 if (navigator.appName=="Netscape") {
		  winW = window.innerWidth;
		  winH = window.innerHeight;
		 }
		 if (navigator.appName.indexOf("Microsoft")!=-1) {
		  winW = document.body.offsetWidth;
		  winH = document.body.offsetHeight;
		 }
		}
		if (typeof window.innerWidth != 'undefined') { winW = window.innerWidth, winH = window.innerHeight } 

else if (typeof document.documentElement != 'undefined' && typeof document.documentElement.clientWidth != 'undefined' && document.documentElement.clientWidth != 0) { winW = document.documentElement.clientWidth, winH = document.documentElement.clientHeight }
$("#galleryframe").dialog({modal: true, width: winW-100, height: winH-100, position: top, autoOpen: true, bgiframe: true});
	  $("#galleryframe").dialog("open");
	 

});
});
