/* GLOBAL FILE ================================*/
function printWindow(){
   bV = parseInt(navigator.appVersion)
   if (bV >= 4) window.print()
}


function LoadFlash(elementId, url, w, h, bgcolor, wmode) {
	var e = document.getElementById(elementId);
	e.innerHTML = 
	'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+w+'" height="'+h+'" align="middle">'+
	'<param name="allowScriptAccess" value="sameDomain" />'+
	'<param name="movie" value="'+url+'" />'+
	'<param name="quality" value="high" />'+
	'<param name="bgcolor" value="'+bgcolor+'" />'+
	'<param name="wmode" value="'+wmode+'" />'+
	'<embed src="'+url+'" quality="high" bgcolor="'+bgcolor+'" width="'+w+'" height="'+h+'" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'+
	'</object>';
}




/* LOCAL FILE ================================ */
		function toCenter(el) {                                                                                                  	
			
			var bl = document.getElementById("blackOut");
			
			el.style.display = 'block';
			bl.style.display = 'block';

			el.style.position = "absolute";
			
                        if (window.innerWidth) {
				var screenMaxW = window.innerWidth;
				var screenMaxH = window.innerHeight;
			} else if (document.documentElement && document.documentElement.clientWidth) {
				var screenMaxH = document.documentElement.clientHeight;
				var screenMaxW = document.documentElement.clientWidth;
			} else if (document.body) {
				var screenMaxW = document.body.clientWidth;
				var screenMaxH = document.body.clientHeight;
			}
			var x = (screenMaxW - el.clientWidth)/2;
        		var y = (screenMaxH - el.clientHeight)/2;


			if (document.all) {	
				iebody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body;
                   		y = y + iebody.scrollTop;
				bl.style.height = iebody.scrollWidth;

			} else {
				// el.style.position = "fixed";
				bl.style.position = "fixed";
			}

	                el.style.left = x + 'px';
			$(el).show();
			el.style.top = "-400px"; /*y + 'px';*/
			$("#gallerycontainer").hide();
			if ($.browser.msie) {
				
				/*$(bl).fadeIn("slow");
				$(el).animate({"top":y}, "slow", "swing");*/
			} else {
				/*$(bl).fadeIn("slow", function() {$(el).animate({"top":y}, "slow", "swing")});*/
			}
			/*$(bl).fadeIn("slow", function() {$(el).animate({"top":y}, "slow", "swing")});*/
			$(el).animate({"top":y}, "slow", "swing");
		}

		function hideLogin() {
			
			$("#helpNotes").animate({"top":"-400"},"slow", "swing", function() {
				$("#blackOut").hide();
				$("#gallerycontainer").show();
	
				if ($.browser.msie) {
					
				} else {
					/*$("#blackOut").fadeOut("slow");*/

				}
			});

		}

