﻿			function openSlideShow( album )
			{
				newWindow( 'slideshow.aspx?a=' + album, 'slideshow', 'HEIGHT=550,WIDTH=650,SCROLLBARS,screenx=25,screeny=25' );
				return false;
			}
			function getpos(obj)
			{
			    var cl = cr = 0;
			    
			    if (obj.offsetParent){
			        cl = obj.offsetLeft;
			        cr = obj.offsetTop;
			        while (obj = obj.offsetParent)
			        {
			            cl += obj.offsetLeft;
			            cr += obj.offsetTop;
			        }
			    }
			    
			    return [cl, cr];
			}
			function newWindow( url, name, param )
			{
				name=window.open(url,name,param);
				if(window.focus){name.focus()}
			}
			
			
			function getScrollingPosition()
            {
             var position = [0, 0];

             if (typeof window.pageYOffset != 'undefined')
             {
               position = [
                   window.pageXOffset,
                   window.pageYOffset
               ];
             }

             else if (typeof document.documentElement.scrollTop
                 != 'undefined' && document.documentElement.scrollTop > 0)
             {
               position = [
                   document.documentElement.scrollLeft,
                   document.documentElement.scrollTop
               ];
             }

             else if (typeof document.body.scrollTop != 'undefined')
             {
               position = [
                   document.body.scrollLeft,
                   document.body.scrollTop
               ];
             }

             return position;
            }

			function zoominimage(id, img)
			{
			
			    var scrollpos = getScrollingPosition(); 
			    var coors = getpos(img); 
			    document.getElementById(id).style.left =   scrollpos[0] + 'px';
			    document.getElementById(id).style.top =  scrollpos[1] + 'px';
			    //document.getElementById(id).dir = "rtl";
			    document.getElementById(id).style.display = "block";
			    
			}
			function zoomoutimage(id)
			{
			    document.getElementById(id).style.display = "none";
			}
// JScript File

