
// OPEN IN NEW BROWSER WINDOW
//Add to link  onclick="NewWindow(this.href,'how','800','650','yes','center');return false"

var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}

//VISIBILITY FOR GALLERY
function show() {
                  document.getElementById('g').style.display="";
                  document.getElementById('g1').style.display="none";
            }
 
            function hide() {
                   document.getElementById('g1').style.display="";
                  document.getElementById('g').style.display="none";
            }
            
            function setVisibility(id)
             {            
                document.getElementById(id).style.display = "";            
             }
             
            function setVisibilityHide(id)
             {            
                document.getElementById(id).style.display = "none";            
             }
             function setVisibility(id, visibility) {
document.getElementById(id).style.display = visibility;}


//PRELOAD IMAGES
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];}}
}
//-->
