//==================================================
//	Place the following in your HTML code
//	<script language="JavaScript" src="GALERIA.js">
// 	</script>
//==================================================

	var scrmsg = " ";
	var scrmsg = "               GaleriaDeTomas.com.......... "; 
	var scrspacer = " "; 
	var scrpos = 0; 

//============================================================
// GLOBAL Scrolling Status Marquee
//============================================================
	function ScrollMessage(scrmsg) 
		{ 
		window.status = scrmsg.substring(scrpos, scrmsg.length) + scrspacer + 
		scrmsg.substring(0,scrpos); 
		scrpos++; 
		if (scrpos > scrmsg.length) scrpos = 0; 
			window.setTimeout("ScrollMessage(scrmsg)", 150); 
		} 

//============================================================
// IMAGE ROLLOVER
//============================================================
	function Rollover(theImage, theSrc)
	{
	var objStr,obj;
		if(document.images)
		{
			if (typeof(theImage) == 'string') 
			{
				objStr = 'document.' + theImage;
				obj = eval(objStr);
				obj.src = theSrc;
			} 
			else if ((typeof(theImage) == 'object') && theImage && theImage.src) 
			{
				theImage.src = theSrc;
			}
		}
	}

	var usragent=navigator.userAgent.toLowerCase();
	var is_mac  = (usragent.indexOf("mac") != -1);
	var is_win  = (usragent.indexOf("win") != -1);
	var is_ie   = (usragent.indexOf("msie") != -1); 
	var is_nav  = ((usragent.indexOf('mozilla')!=-1) && (usragent.indexOf('spoofer')==-1) 
				&& (usragent.indexOf('compatible') == -1) && (usragent.indexOf('opera')==-1) 
				&& (usragent.indexOf('webtv')==-1));
	var PrintWindow;

//============================================================
// POPUP WINDOW
//============================================================
	function popUpWin(url, newTool, newLocation, newStatus, newMenubar, newResizable, newScrollbars, newWidth, newHeight, newLeft, newTop) 
		{
			if (is_ie ||  is_nav) 
			{
				if (PrintWindow != null && !PrintWindow.closed) 
				{
							oldWin = PrintWindow;
							oldWin.name = "oldWin";
							oldWin.close();
				}
			}
			PrintWindow=window.open(url,"newWin","toolbar=" + newTool + ",location=" + newLocation + ",status=" + newStatus + ",menubar=" + newMenubar + ",resizable=" + newResizable + ",scrollbars=" + newScrollbars + ",width=" + newWidth + ",height=" + newHeight + ",left=" + newLeft + ",top=" + newTop);
			if (PrintWindow.opener == null)
			{
				PrintWindow.opener = popupWin;
			}
			PrintWindow.opener.name = "origWin";
			PrintWindow.focus();
		}

//============================================================
// CLOSE WINDOW
//============================================================
	function closeWin()
		{
			this.close();
			PrintWindow = null;
		}
		
//============================================================
// POPUP
//============================================================
	function PopUp()
		 {
		 NewWindow = window.open("welcome.asp","Message",'toolbar=0,location=0,directories=0,status=0,menubar=0,top=150, left=120,scrollbars=yes,resizable=0,width=500,height=350');
		 }

//============================================================
// GoBack
//============================================================
   function GoBack()
    {
        window.history.go(-1)
    }

	
