
function newWin(url,name,rs,sc,mn,tl,lo,wd,hi) 
{openWindow = window.open(url,name,'resizable='+rs+',scrollbars='+sc+',menubar='+mn+',toolbar='+tl+',location='+lo+',width='+wd+',height='+hi);}

  function NewsPopup1(QueryString)
  { 
    NewsWindow = window.open ('', 'NewsWindow', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,height=600,width=500')
    NewsWindow.focus()
    NewsWindow.location.href = QueryString
  }

function popUpSmall(URL) {  
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open('"+URL+"', '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=600,height=400,left=360,top=0');");
}

function popUpVideo(URL) { 
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open('"+URL+"', '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,width=330,height=280,left=360,top=250');");
}

function popUpDetailedListing(URL) { 
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open('"+URL+"', '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=900,height=800,left=360,top=250');");
}

function popUpImage(URL,pic) {  
var newurl
URL2=URL+"?i="+pic;
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open('"+URL2+"', '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=900,height=800,left=360,top=0');");
}

function popUpAlbumPic(Album,Artist,pic) {  
var newurl
URL="/albums/view_cover_large.php?i="+pic+"&album="+Album+"&artist="+Artist;
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open('"+URL+"', '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=700,height=620,left=360,top=0');");
}

function popVideo(video,embed) {  
var newurl
URL="/macca-video/view_video.php?v="+video+"&embed="+embed;
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open('"+URL+"', '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,resizable=0,width=470,height=450,left=360,top=0');");
}

function popUpBig(URL) {  
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open('"+URL+"', '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=0,width=900,height=800,left=360,top=0');");
}

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll
//winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function spawn_window(content, spawn, sizing)
{
	spawn_window = document.open(content, spawn, sizing);

}
function PopUp550(whatURL) {
        open( whatURL ,"MACCACentral","scrollbars=yes,toolbar=no,width=550,height=550");
}
function PopUp800(whatURL) {
        open( whatURL ,"MACCACentral","scrollbars=yes,toolbar=no,width=800,height=550");
}

<!--
        browserName = navigator.appName;
        browserVer = parseInt(navigator.appVersion);
        
        if (browserName == "Netscape" && browserVer >= 3) version = "n3";
        else version = "n3";
        
if (version == "n3") {
        }

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
 
function MakeArray(n)
        {
        this.length = n
        for (var i = 1; i<=n; i++)
                {
                this[i] = new Image()
                }
        return this
        }

function processFUNSITE() 
		{
		  if ( document.form1.email.value== "") 
			{
				document.form1.email.focus();
                window.alert('Please enter e-mail address.');
                 return false;
            }
         else 
            {
                if ( document.form1.subscribe.checked )
					Action = "subscribe";
				else
					Action = "unsubscribe";
					location.href = "/FUNsite/index.cfm?listname=" + document.form1.listname.value + "&action=" + Action  + "&email=" + document.form1.email.value;
            }
         }
		  
function msover(whichImg)  {
		//theoverimage.src = "pics/1macca40.jpg";
		//whichImg = "video";
                if (version == "n3") {
                        newImg = eval("o" + whichImg + ".src");
						//newImg = eval("theoverimage.src");
                        document [whichImg].src = newImg;
                      }
              }

function msover2()  {
		//theoverimage.src = "pics/1macca40.jpg";
		//var whichImg = "video";
                if (version == "n3") {
                        newImg = eval("o" + whichImg + ".src");
						//newImg = eval("theoverimage.src");
                        document [whichImg].src = newImg;
                      }
              }

function msover3(whichImg)  {
		othis.src = "pics/1macca40.jpg"
		//theoverimage.src = "pics/1macca40.jpg";
		//whichImg = "video";
                if (version == "n3") {
                        newImg = eval("o" + whichImg + ".src");
						//newImg = eval("theoverimage.src");
                        document [whichImg].src = newImg;
                      }
if(document.getElementById||(document.all && !(document.getElementById))){
whichImg.style.backgroundColor="#c0c0c0";
}
              }

function msover4(whichImg)  {
		//theoverimage.src = "pics/1macca40.jpg";
		//whichImg = "video";
		ref = new Layer(0);
ref.document.write("MACCA");
ref.document.close();
                if (version == "n3") {
                        newImg = eval("o" + whichImg + ".src");
						//newImg = eval("theoverimage.src");
                        //document.body.insertAdjacentHTML=("MACCA");
                      }
              }
			  			  
function msout(whichImg) {
                        if (version == "n3") {
                        newImg = eval("n" + whichImg + ".src");
                        document [whichImg].src = newImg;
                }
                }

function msover2(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#c0c0c0";
}
}
function cOn(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#b0c4de";

}
//var el = document.getElementById(td);
//	 	el.className='ftmenurollover';
//		el.style.cursor='hand';
	
}


function cOn2(td,thecolor){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor=thecolor;
}
}

function cOut(td){
nd()
if(document.getElementById||(document.all && !(document.getElementById))){
//td.style.backgroundColor="eeeeee";
td.style.backgroundColor="ffffff";
}
}

function cOutBlank(td){
nd()
if(document.getElementById||(document.all && !(document.getElementById))){
//td.style.backgroundColor="eeeeee";
td.style.backgroundColor="";
}
}

function cOut2(td,thecolor){
nd()
if(document.getElementById||(document.all && !(document.getElementById))){
//td.style.backgroundColor="eeeeee";
td.style.backgroundColor=thecolor;
}
}

function MACCA_navBar( tableCellRef, hoverFlag, navStyle ) {
	if ( hoverFlag ) {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#69c';
				break;
			default:
//				tableCellRef.style.backgroundColor = '#ccc';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#c00';
				}
		}
	} else {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '6685a4';
				break;
			default:
//				tableCellRef.style.backgroundColor = '#ddd';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#000';
				}
		}
	}
}
function MACCA_navBarClick( tableCellRef, navStyle, url ) {
	MACCA_navBar( tableCellRef, 0, navStyle );
	MACCA_goTo( url );
}
function MACCA_goTo( url ) {
	window.location.href = url;
}

 // -->



function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') {
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (val<min || max<val) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}


 
 

	function FormHofner(myform) {		// WORKS !!!
	//b = eval(paymentform.arraynum.value)
	box = eval("myform.hof"); 
	if (box.checked == false)	{
	box.checked = true;	
	setHandlers()
	return "Disable"; }
	else {
	box.checked = false;
	clearPie()
	return "Enable"; }
	}
// cookies scripts
<!-- Begin
var expDays = 30;
var exp = new Date(); 
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
function hofner(){
var favColor = GetCookie('color');
if (favColor == null) {
favColor = prompt("What is your favorite background color?");
SetCookie('hofner', favColor, exp);
}
document.bgColor=favColor;
return favColor;
}
function set(){
favColor = prompt("What is your favorite background color?");
SetCookie ('hofner', favColor, exp);
}
function getCookieVal (offset) {  
var endstr = document.cookie.indexOf (";", offset);  
if (endstr == -1)    
endstr = document.cookie.length;  
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {  
var arg = name + "=";  
var alen = arg.length;  
var clen = document.cookie.length;  
var i = 0;  
while (i < clen) {    
var j = i + alen;    
if (document.cookie.substring(i, j) == arg)      
return getCookieVal (j);    
i = document.cookie.indexOf(" ", i) + 1;    
if (i == 0) break;   
}  
return null;
}
function SetCookie (name, value) {  
var argv = SetCookie.arguments;  
var argc = SetCookie.arguments.length;  
var expires = (argc > 2) ? argv[2] : null;  
var path = (argc > 3) ? argv[3] : null;  
var domain = (argc > 4) ? argv[4] : null;  
var secure = (argc > 5) ? argv[5] : false;  
document.cookie = name + "=" + escape (value) + 
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
((path == null) ? "" : ("; path=" + path)) +  
((domain == null) ? "" : ("; domain=" + domain)) +    
((secure == true) ? "; secure" : "");
}
function DeleteCookie (name) {  
var exp = new Date();  
exp.setTime (exp.getTime() - 1);  
var cval = GetCookie (name);  
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
// End -->



// script to shake the screnn
<!-- Begin 
function shake(nnn) {
if (self.moveBy) {
for (iii = 10; iii > 0; iii--) {
for (jjj = nnn; jjj > 0; jjj--) {
self.moveBy(0,iii);
self.moveBy(iii,0);
self.moveBy(0,-iii);
self.moveBy(-iii,0);

         }
      }
   }
alert("You'ld better believe it!\n   Rock On MACCA!");
	}
// End -->


function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') {
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (val<min || max<val) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}




<!--
function mouseDown(e) {
 if (parseInt(navigator.appVersion)>3) {
  var clickType=1;
  if (navigator.appName=="Netscape") clickType=e.which;
  else clickType=event.button;
  if (clickType!=1) {
//alert("Welcome to MACCA-Central.com the Paul McCartney FUNSITE!\n\nCopyright (c) 2003 Mike Kovacich, MACCA-Central.com");
}
 }
 return true;
}

if (parseInt(navigator.appVersion)>3) {
 document.onmousedown = mouseDown;
 if (navigator.appName=="Netscape")
  document.captureEvents(Event.MOUSEDOWN);
}


//-->






function ImageGallery(imagedir, imagetotal, pagetitle, bgcolor, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
pic2 = 1;
theprefix = imagedir;
pagetitle = pagetitle + ' @MACCA-Central.com &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
if (bgcolor=="") {
		bgcolor="#FFFFFF";	}
		else	{
			thebody='<BODY TEXT="ffffcc" BGCOLOR="000000" LINK="yellow" VLINK="ffffcc" ALINK="ffa07a">';
		}
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll
			//winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
//win = window.open(mypage, myname, winprops)
//if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
//}
var agt=navigator.userAgent.toLowerCase();
        if (agt.indexOf("opera") != -1){
          var args= new Array();
          args[0]='parent';
          args[1]=imageName;
          var i ; document.MM_returnValue = false;
          for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
        } else {
newWindow = window.open('aindex.htm','newWindow', winprops);
	
	newWindow.document.open();
	newWindow.document.write('<script language="JavaScript" src="/bin/macca-slideshow.js"></script>');
	newWindow.document.write('<script language="JavaScript">');
	//newWindow.document.write('pic=1;')
	//newWindow.document.write('picprefix = "";');
	newWindow.document.write('maxPics="' + imagetotal + '";');
	newWindow.document.write('picprefix="' + theprefix + '";');
	newWindow.document.write('</script>');
	newWindow.document.write('<html><title>'+pagetitle+'</title><body leftmargin="0" topmargin="0" marginheight="0"  marginwidth="0" bgcolor='+bgcolor+' >' + thebody);  
//	newWindow.document.write('<html><title>'+pagetitle+'</title><body leftmargin="0" topmargin="0" marginheight="0"  marginwidth="0" bgcolor='+bgcolor+' onBlur="self.close()" onClick="self.close()">');  

//	newWindow.document.write('<img src="'+imageName+'" width='+imageWidth+' height='+imageHeight+' alt="Click screen to close" >'); 
//newWindow.document.write('<A HREF="javascript: window.close(""window"");" ONMOUSEOVER="changeImages(""real_close_window"", ""/pics/real_close_window_over.gif""); return true;');
//newWindow.document.write('ONMOUSEOUT="changeImages(""real_close_window"", ""/pics/real_close_window.gif""); return true;">');
//newWindow.document.write('<IMG NAME=real_close_window SRC=/pics/real_close_window.gif BORDER=0 align=right></A>');
newWindow.document.write('<div align="center"><table border="0" cellspacing="0" cellpadding="0">');
newWindow.document.write('<form name=slideform><tr align=center><td ><font face=verdana,arial size=1>');
newWindow.document.write('<table cellspacing=1 cellpadding=4 bgcolor="#000000">');
newWindow.document.write('<tr><td align=center bgcolor="black">');
newWindow.document.write('<input type=button onClick="first();" value="|<<" title="Beginning">');
newWindow.document.write('<input type=button onClick="previous();" value="<<" title="Previous">');
newWindow.document.write('<input type=button name="slidebutton" onClick="ap(this.value);" value="Start AutoPlay" title="AutoPlay">');
newWindow.document.write('<input type=button onClick="next();" value=">>" title="Next">');
newWindow.document.write('<input type=button onClick="last();" value=">>|" title="End">');

	newWindow.document.write('</td></form></tr></table></td></tr>');
	newWindow.document.write('<tr><td id=thepics align=center><font face=verdana,arial size=1>');
	newWindow.document.write ('<script language="JavaScript">document.write (current + " of " + maxPics); </script></td></tr>');
	newWindow.document.write('<tr align=center><td >');
	newWindow.document.write ('<script language=JavaScript>document.write ("<img src=' + theprefix +'1.jpg id=show name=show border=0 vspace=10>"); </script>'); 	
	newWindow.document.write('</td></tr></table></div></body></html>');
	newWindow.document.close();
	newWindow.focus();
	}
}




function FlashGallery(imagedir, imagetotal, pagetitle, bgcolor, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
pic2 = 1;
theprefix = imagedir;
pagetitle = pagetitle + ' @MACCA-Central.com &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
if (bgcolor=="") {
		bgcolor="#FFFFFF";	}
		else	{
			thebody='<BODY TEXT="ffffcc" BGCOLOR="000000" LINK="yellow" VLINK="ffffcc" ALINK="ffa07a">';
		}
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll
			//winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
//win = window.open(mypage, myname, winprops)
//if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
//}

newWindow = window.open('http://www.macca-central.com/macca-gallery/paul-linda/index.htm','newWindow', winprops);
	
	//newWindow.document.open();

	newWindow.document.write('<html><title>'+pagetitle+'</title><body leftmargin="0" topmargin="0" marginheight="0"  marginwidth="0" bgcolor='+bgcolor+' >' + thebody);  
//	newWindow.document.write('<html><title>'+pagetitle+'</title><body leftmargin="0" topmargin="0" marginheight="0"  marginwidth="0" bgcolor='+bgcolor+' onBlur="self.close()" onClick="self.close()">');  

//	newWindow.document.write('<img src="'+imageName+'" width='+imageWidth+' height='+imageHeight+' alt="Click screen to close" >'); 
//newWindow.document.write('<A HREF="javascript: window.close(""window"");" ONMOUSEOVER="changeImages(""real_close_window"", ""/pics/real_close_window_over.gif""); return true;');
//newWindow.document.write('ONMOUSEOUT="changeImages(""real_close_window"", ""/pics/real_close_window.gif""); return true;">');
//newWindow.document.write('<IMG NAME=real_close_window SRC=/pics/real_close_window.gif BORDER=0 align=right></A>');
newWindow.document.write('<div align="center"><table border="0" cellspacing="0" cellpadding="0">');
newWindow.document.write('<tr align=center><td ><font face=verdana,arial size=1>');
newWindow.document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="800" HEIGHT="500" id="MACCA-Central_viewer" ALIGN="">');
newWindow.document.write('<PARAM NAME=movie VALUE="/macca-gallery/MACCA-Central_viewer.swf"> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=best> <PARAM NAME=bgcolor VALUE=#000000>');
newWindow.document.write('<EMBED src="/macca-gallery/MACCA-Central_viewer.swf" menu=false quality=best bgcolor=#000000  WIDTH="800" HEIGHT="500" NAME="MACCA-Central_viewer" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
newWindow.document.write('</EMBED></OBJECT>');
	newWindow.document.write('</td></tr></table></div></body></html>');
	newWindow.document.close();
	newWindow.focus();

}

	
  function PicWindow(imageName,scrbar) {
	if (scrbar=="") {
		scrbar="0";
	}
//	if (imageWidth=="") {
		imageWidth=800;
//	}
//	if (imageHeight=="") {
		imageHeight=600;
//	}
//	if (bgcolor=="") {
		bgcolor="000000";
//	}
	var alt="MACCA-Central.com&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- Click screen to CLOSE -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
	var hugger="hug image";
	var hugMargin=0;
	var adj=10
	var w = screen.width;
	var h = screen.height;
	var byFactor=1;

	if(w<740){
	  var lift=0.90;
	}
	if(w>=740 & w<835){
	  var lift=0.91;
	}
	if(w>=835){
	  var lift=0.93;
	}
	if (imageWidth>w){	
	  byFactor = w / imageWidth;			
	  imageWidth = w;
	  imageHeight = imageHeight * byFactor;
	}
	if (imageHeight>h-adj){
	  byFactor = h / imageHeight;
	  imageWidth = (imageWidth * byFactor);
	  imageHeight = h; 
	}
	   
	var scrWidth = w-adj;
	var scrHeight = (h*lift)-adj;

	if (imageHeight>scrHeight){
  	  imageHeight=imageHeight*lift;
	  imageWidth=imageWidth*lift;
	}

	var posLeft=0;
	var posTop=0;

	if (hugger == "hug image"){
	  if (hugMargin == ""){
	    hugMargin = 0;
	  }
	  var scrHeightTemp = imageHeight - 0 + 2*hugMargin;
	  if (scrHeightTemp < scrHeight) {
		scrHeight = scrHeightTemp;
	  } 
	  var scrWidthTemp = imageWidth - 0 + 2*hugMargin;
	  if (scrWidthTemp < scrWidth) {
		scrWidth = scrWidthTemp;
	  }
	  
	  if (scrHeight<100){scrHeight=100;}
	  if (scrWidth<100){scrWidth=100;}

	  posTop =  ((h-(scrHeight/lift)-adj)/2);
	  posLeft = ((w-(scrWidth)-adj)/2);
 	}

	if (imageHeight > (h*lift)-adj || imageWidth > w-adj){
		imageHeight=imageHeight-adj;
		imageWidth=imageWidth-adj;
	}
	posTop = parseInt(posTop);
	posLeft = parseInt(posLeft);		
	scrWidth = parseInt(scrWidth); 
	scrHeight = parseInt(scrHeight);
	
	var agt=navigator.userAgent.toLowerCase();
	if (agt.indexOf("opera") != -1){
	  var args= new Array();
	  args[0]='parent';
	  args[1]=imageName;
	  var i ; document.MM_returnValue = false;
	  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
	} else {
	newWindow = window.open("popup.htm","newWindow","width="+scrWidth+",height="+scrHeight+",left="+posLeft+",top="+posTop+",scrollbars="+scrbar);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor='+bgcolor+' onBlur="self.close()" onClick="self.close()">');  
	newWindow.document.write('<table width='+imageWidth+' border="0" cellspacing="0" cellpadding="0" align="center" height='+scrHeight+' ><tr><td align=center valign=middle>');
	//newWindow.document.write('<img src="'+imageName+'" width='+imageWidth+' height='+imageHeight+' alt="Click screen to CLOSE" >'); 
	newWindow.document.write('<img src="'+imageName+'" alt="Click screen to CLOSE this window" >'); 
	newWindow.document.write('</td></tr></table></body></html>');
	newWindow.document.close();
	newWindow.focus();
	}
}

  function PicWindow2(imageName,imageWidth,imageHeight,alt,bgcolor,hugger,hugMargin) {

	if (bgcolor=="") {
		bgcolor="FFFFFF";
	}
	var adj=10
	var w = screen.width;
	var h = screen.height;
	var byFactor=1;

	if(w<740){
	  var lift=0.90;
	}
	if(w>=740 & w<835){
	  var lift=0.91;
	}
	if(w>=835){
	  var lift=0.93;
	}
	if (imageWidth>w){	
	  byFactor = w / imageWidth;			
	  imageWidth = w;
	  imageHeight = imageHeight * byFactor;
	}
	if (imageHeight>h-adj){
	  byFactor = h / imageHeight;
	  imageWidth = (imageWidth * byFactor);
	  imageHeight = h; 
	}
	   
	var scrWidth = w-adj;
	var scrHeight = (h*lift)-adj;

	if (imageHeight>scrHeight){
  	  imageHeight=imageHeight*lift;
	  imageWidth=imageWidth*lift;
	}

	var posLeft=0;
	var posTop=0;

	if (hugger == "hug image"){
	  if (hugMargin == ""){
	    hugMargin = 0;
	  }
	  var scrHeightTemp = imageHeight - 0 + 2*hugMargin;
	  if (scrHeightTemp < scrHeight) {
		scrHeight = scrHeightTemp;
	  } 
	  var scrWidthTemp = imageWidth - 0 + 2*hugMargin;
	  if (scrWidthTemp < scrWidth) {
		scrWidth = scrWidthTemp;
	  }
	  
	  if (scrHeight<100){scrHeight=100;}
	  if (scrWidth<100){scrWidth=100;}

	  posTop =  ((h-(scrHeight/lift)-adj)/2);
	  posLeft = ((w-(scrWidth)-adj)/2);
 	}

	if (imageHeight > (h*lift)-adj || imageWidth > w-adj){
		imageHeight=imageHeight-adj;
		imageWidth=imageWidth-adj;
	}
	posTop = parseInt(posTop);
	posLeft = parseInt(posLeft);		
	scrWidth = parseInt(scrWidth); 
	scrHeight = parseInt(scrHeight);
	
	var agt=navigator.userAgent.toLowerCase();
	if (agt.indexOf("opera") != -1){
	  var args= new Array();
	  args[0]='parent';
	  args[1]=imageName;
	  var i ; document.MM_returnValue = false;
	  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
	} else {
	newWindow = window.open("popup.htm","newWindow","width="+scrWidth+",height="+scrHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor='+bgcolor+' onBlur="self.close()" onClick="self.close()">');  
	newWindow.document.write('<table width='+imageWidth+' border="0" cellspacing="0" cellpadding="0" align="center" height='+scrHeight+' ><tr><td align=center valign=middle>');
	newWindow.document.write('<img src="'+imageName+'" width='+imageWidth+' height='+imageHeight+' alt="Click screen to CLOSE" >'); 
	//newWindow.document.write('<img src="'+imageName+'" alt="Click screen to CLOSE" >'); 
	newWindow.document.write('</td></tr></table></body></html>');
	newWindow.document.close();
	newWindow.focus();
	}
}
	
// This used to diplay message then expand and fade
function position_at_top(){
  if (document.layers)
    document.msgx.top=pageYOffset;
  if (document.all){
    msgx.innerHTML='<font face="'+fontface+'" color="'+fontcolor+'">'+themessage+'</font>'
    setTimeout("msgx.style.top=document.body.scrollTop",100)
  }
}

function expand(){
  if (document.layers){
    document.msgx.document.write('<div align=center style="font-size:'+fontsize+'px"><font face="Arial" color="red" >'+themessage+'</font></div>')
    document.msgx.document.close()
  }
  if (document.all)
    msgx.style.fontSize=fontsize+'px';
  fontsize+=5;
  if (fontsize>endsize){
    if (document.layers)
      setTimeout("document.msgx.visibility='hide'",appearfor);
    if (document.all)
      setTimeout("msgx.style.visibility='hidden'",appearfor);
    return;
  }
  else
    setTimeout("expand()",50);
}
// END -  diplay message then expand and fade

//  End -->

function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
if (which2.style.MozOpacity)
which2.style.MozOpacity=0.3
else if (which2.filters)
which2.filters.alpha.opacity=30
}

function highlightit(cur2){
if (cur2.style.MozOpacity<1)
cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.1
else if (cur2.filters&&cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}

	function toggleOptions(optionType, collapse) {
		var min_div = document.getElementById(optionType + '_min_div');
		var max_div = document.getElementById(optionType + '_max_div');

		if (collapse) {
			min_div.style.display = '';
			max_div.style.display = 'none';
		} else {
			min_div.style.display = 'none';
			max_div.style.display = '';
		}
	}