var smartWindow;

function smartWindowOpen( sourcefile, W, H, X, Y )
{
        if( ! screen.width && ( X == -1 || Y == -1 ) )
        {
                X = Y = 50;
        }

        if( X == -1 || Y == -1 )
        {
                X = ( screen.availWidth -  W   ) / 2 ;
                Y = ( screen.availHeight - H ) / 2;
        }


        smartWindow = window.open( sourcefile,"smartWindow","width=" + W + ",height=" + H + ",screenX=" + X + ",screenY=" + Y + ",left=" + X + ",top=" + Y + ",resizable,scrollbars");
        smartWindow.focus();
}

var popup;

function popup(url){
  cuteLittleWindow = window.open(url, "littleWindow", location="no", width="240", height="400"); 
}


function infoscroll(seed,looped)
{ 	//function 1 
	var text1 =   " .";
   var text2  = "  ";     
   var msg=text1+text2;
   var putout = " ";
   var c   = 1;

   if (looped > 2) 
   	{	//Open if 1 (if--else)
   	window.status="Thanks for visiting. Email  with any comments.";
   	}	//Close if 1  (if--else)

   	else if (seed > 100)
   		{	//Open else 1 (if--else 1)
   		seed--;
      	var cmd="infoscroll(" + seed + "," + looped + ")";
      	timerTwo=window.setTimeout(cmd,100);
   		}	//Close else 1 (if--else)

   		else if (seed <= 100 && seed > 0)
   			{	// Open else 2 (if--else 1)

   			for (c=0 ; c < seed ; c++) 
   				{	// Open for loop
            	putout+=" ";
            	}	// Close for loop
        		putout+=msg.substring(0,100-seed);
         	seed--;
         	var cmd="infoscroll(" + seed + "," + looped + ")";
         	window.status=putout;
         	timertwo=window.setTimeout(cmd,100);
        		}	//Close else 2 (if--else)

        		else if (seed <= 0)
        			{	// Open else 3 (if--else 1)

               if (-seed < msg.length)
               	{	// Open if 2
               	putout+=msg.substring(-seed,msg.length);
                  seed--;
                  var cmd="infoscroll(" + seed + "," + looped + ")";
                  window.status=putout;
                  timertwo=window.setTimeout(cmd,100); // 100
                	}	// Close if 2

                	else
                		{	// Open else 4 (if--else 2)
                     window.status=" ";
                     looped += 1;
                     var cmd = "infoscroll(100," + looped + ")";
                     timertwo=window.setTimeout(cmd,75); // 75
                		}	// Close else (if--else 2)

        			}	//Close else 3

}	//end function 1


function jemail(user, domain, suffix){

document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '">' + user + '@' + domain + '.' + suffix + '</a>');

}
