/*script Rashell, open foto in new windows
*/

function bigfoto(i,x,y)
         {var scroll1 = "no";var scroll2 = "no";var scroll = "no";
          var top=0, left=0;xx=0; yy=0; 
				if(x > screen.width-10 )  {scroll1 = "yes";};
                                if(y > screen.height-60)  {scroll2 = "yes";};
				if(y < screen.height-60) top = Math.floor((screen.height - y)/2-14);
				if(x < screen.width-10) left = Math.floor((screen.width - x)/2-10);
				x = Math.min(x, screen.width-10);                           
				y = Math.min(y, screen.height-60);

                                if(scroll1=="yes" && scroll2=="no")     
                                               {y=y+18; 
                                                scroll = "yes";
                                                x = screen.width-10;
                                               }

	                        if(scroll2=="yes" && scroll1=="no")  
                                               {x=x+18;
                                                y = screen.height-60;
                                                scroll = "yes"; 
                                               }  

                                 if(scroll2=="yes" && scroll1=="yes")  
                                               {x = screen.width-10;
                                                scroll = "yes";
                                                y = screen.height-60; 
                                               }  
//if (myWin) myWin.close();; onClick="closeIt()"
             
 myWin= open("", "_blank",
 " width="+x+",height="+y+",status=yes,scrollbars="+scroll+",top="+top+",left="+left+",toolbar=no,menubar=no");

myWin.document.open(); 
myWin.document.write("<html><head>");
//myWin.document.write("<script language=JavaScript src=\"open_no.js\">       ");
myWin.document.write("<script>");

myWin.document.write(" function click() { if (event.button==2) { alert(\':-\)\') }} ;document.onmousedown=click;   ");

myWin.document.write("</script>");
myWin.document.write("</head>");
//myWin.document.write("<body  onLoad=\"init()\" topmargin='0'  leftmargin='0' marginwidth='0' marginheight='0'>");

myWin.document.write("<body   topmargin='0'  leftmargin='0' marginwidth='0' marginheight='0'>");

                        
 myWin.document.write("<img src=");
 myWin.document.write("'"+i+"'");
 myWin.document.write("     galleryimg=\"no\"     >");
 myWin.document.write("</body></html>");

 myWin.document.close();




          }
