
var available_width;
var available_height;
var varSize;


function movinOn(opt)
{
	if (parseInt(navigator.appVersion.charAt(0)) >= 4) 
        {
		 isNav4	 	= (navigator.appName == "Netscape") ? true : false;
		 isIE4 		= (navigator.appName.indexOf("Microsoft") != -1) ? true : false;
	}
 	if(isNav4) 
        {	    
            available_width	= innerWidth;
            available_height	= innerHeight;
        } 
	if(isIE4) 
        {
            available_width	= document.body.clientWidth;
            available_height	= document.body.clientHeight;
        }
        if (available_width > 800)
        {
           varSize = 2;         
        } 
        else
        {
           varSize = 1; 
        }

    switch(varSize)
       {
       case 1:
         switch(opt)
         {
           case '1':
             parent.document.location.href="http://www.ColleensBeachProperties.com/Colleen.asp?ppg=1&psz=1";
             break;
           case '2':
             parent.document.location.href="http://www.ColleensBeachProperties.com/Colleen.asp?ppg=2&psz=1";
             break;
           case '3':
             parent.document.location.href="http://www.ColleensBeachProperties.com/Colleen.asp?ppg=21&psz=1&pslt=1";
             break;
           case '4':
             parent.document.location.href="Colleen.asp?ppg=3&psz=1";
             break;
           case '5':
             parent.document.location.href="http://www.ColleensBeachProperties.com/Colleen.asp?ppg=5&psz=1";
             break;
           case '6':
             parent.document.location.href="http://www.ColleensBeachProperties.com/Colleen.asp?ppg=6&psz=1";
             break;
         }
         break;

       case 2:
         switch(opt)
         {
           case '1':             
             parent.document.location.href="http://www.ColleensBeachProperties.com/Colleen.asp?ppg=1&psz=2";
             break;
           case '2':
             parent.document.location.href="http://www.ColleensBeachProperties.com/Colleen.asp?ppg=2&psz=2";
             break;
           case '3':
             parent.document.location.href="http://www.ColleensBeachProperties.com/Colleen.asp?ppg=21&psz=2&pslt=1";
             break;
           case '4':
             parent.document.location.href="http://www.ColleensBeachProperties.com/Colleen.asp?ppg=3&psz=2";
             break;
           case '5':
             parent.document.location.href="http://www.ColleensBeachProperties.com/Colleen.asp?ppg=5&psz=2";
             break;
           case '6':
             parent.document.location.href="http://www.ColleensBeachProperties.com/Colleen.asp?ppg=6&psz=2";
             break;
         }
         break;
       }

}


if (document.layers) {
  window.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP|Event.CLICK)
  window.onmousedown=right;
}
else  {
 if (document.all){ 
    document.onmousedown = right;
    }
 }   
function right(e) {
  var msg = "The photos on this page are the property of Colleen Barry and Computer Slime. For this reason we disabled the right click function.";
  if (navigator.appName == 'Netscape' && e.which == 3) {
    alert(msg);
    return false;
  }
  else if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
  alert(msg);
  return false;
}
return true;
}

















function newWindow(mypage,myname,w,h,features) {
	if(screen.width){
		var winl = (screen.width-w)/2;
		var wint = (screen.height-h)/2;
	}else{
		winl = 0;wint =0;
	}
	if (winl < 0) winl = 0;
	if (wint < 0) wint = 0;
	var settings = 'height=' + h + ',';
	settings += 'width=' + w + ',';


	settings += 'top=100,';
	settings += 'left=' + winl + ',';
	settings += features;
	win = window.open(mypage,myname,settings);
	win.window.focus();
}


function openLinks( pageToLoad, winName, width, height, center) 
{
    if ((parseInt(navigator.appVersion) >= 4 ) && (center))
    {
      //  xposition = (screen.width - width) / 2;
      //   yposition = (screen.height - height) / 2;    }

     	xposition = 0;
      	yposition = 0;    
    }

    args = "width=" + width + ","     + "height=" + height + "," 
 //   args = "width=" + width + ","     + "height=" + height + "," 
    + "location=1,"     + "menubar=1,"    + "resizable=1,"    + "scrollbars=1,"
    + "status=1,"     + "titlebar=1,"    + "toolbar=1,"    + "hotkeys=1,"
    + "screenx=" + xposition + ","  //NN Only
    + "screeny=" + yposition + ","  //NN Only
    + "left=" + xposition + ","     //IE Only
    + "top=" + yposition;           //IE Only
    window.open( pageToLoad,winName,args );
}

function openLinksgm( pageToLoad, winName, width, height, center) 
{
    if ((parseInt(navigator.appVersion) >= 4 ) && (center))
    {
      //  xposition = (screen.width - width) / 2;
      //   yposition = (screen.height - height) / 2;    }

     	xposition = 0;
      	yposition = 0;    
    }

    args = "width=" + width + ","     + "height=" + height + "," 
 //   args = "width=" + width + ","     + "height=" + height + "," 
    + "location=1,"     + "menubar=1,"    + "resizable=0,"    + "scrollbars=0,"
    + "status=1,"     + "titlebar=1,"    + "toolbar=1,"    + "hotkeys=1,"
    + "screenx=" + xposition + ","  //NN Only
    + "screeny=" + yposition + ","  //NN Only
    + "left=" + xposition + ","     //IE Only
    + "top=" + yposition;           //IE Only
    window.open( pageToLoad,winName,args );
}
