// JavaScript Document



    var pics = [];
    var captions = [];
    var current = 0;
    var picture = [];
        
            picture.push( { caption:"Columbia Center", src:"../images/interiors_port/Ventana%20Productions,%20Inc/Ventana_1.jpg", height:"450px", width:"412px",graphicID:"pic1" }   )
            pics.push('../../images/interiors_port/Ventana%20Productions,%20Inc/Ventana_1.jpg');
			captions.push('Columbia Center');

            picture.push( { caption:"Columbia Center", src:"../images/interiors_port/Ventana%20Productions,%20Inc/ventana_2.jpg", height:"450px", width:"412px",graphicID:"pic2"  }   )
            pics.push('../images/interiors_port/Ventana%20Productions,%20Inc/ventana_2.jpg');
			captions.push('Columbia Center');
			
			picture.push( { caption:"Columbia Center", src:"../images/interiors_port/Ventana%20Productions,%20Inc/ventana_3.jpg", height:"450px", width:"412px",graphicID:"pic3"  }   )
            pics.push('../images/interiors_port/Ventana%20Productions,%20Inc/ventana_3.jpg');
			captions.push('Columbia Center');
			
			
			
			picture.push( { caption:"Columbia Center", src:"../images/interiors_port/Accenture/accenture_4.jpg", height:"450px", width:"412px",graphicID:"pic3" }   )
            pics.push('../images/interiors_port/Accenture/accenture_4.jpg');
			captions.push('Columbia Center');

            picture.push( { caption:"Columbia Center", src:"../images/interiors_port/Washingtonpost.Newsweek%20Interactive/WPNI_4.jpg", height:"450px", width:"412px",graphicID:"pic4"  }   )
            pics.push('../images/interiors_port/Washingtonpost.Newsweek%20Interactive/WPNI_4.jpg');
			captions.push('Columbia Center');
			
			picture.push( { caption:"Columbia Center", src:"../images/interiors_port/Washingtonpost.Newsweek%20Interactive/WPNI_5.jpg", height:"450px", width:"412px",graphicID:"pic5" }   )
            pics.push('.../images/interiors_port/Washingtonpost.Newsweek%20Interactive/WPNI_5.jpg');
			captions.push('Columbia Center');

            picture.push( { caption:"Columbia Center", src:"../images/interiors_port/Washingtonpost.Newsweek%20Interactive/WPNI_6.jpg", height:"450px", width:"412px",graphicID:"pic6"  }   )
            pics.push('../images/interiors_port/Washingtonpost.Newsweek%20Interactive/WPNI_6.jpg');
			captions.push('Columbia Center');
			
			
		
    function findObj(n, d) {
      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=findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    }

    function showHideLayers() {
      var i,p,v,obj,args=showHideLayers.arguments;
      for (i=0; i<(args.length-2); i+=3) if ((obj=findObj(args[i]))!=null) { v=args[i+2];
        if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
        obj.visibility=v; }
    }
    function expand(l)
    {
        obj = findObj(l);
        if(obj.style){
            obj = obj.style;
            obj.display = "block";
        }
    }
    function collapse(l)
    {
        obj = findObj(l);
        if(obj.style){
            obj = obj.style;
            obj.display = "none";
        }
    }
    function prevPic()
    {
        current = (current - 1 < 0) ? picture.length-1 : current-1;
        updateButtons();
    }

    function nextPic()
    {
        current = (current + 1 >= picture.length) ? 0 : current+1;
        updateButtons();
    }
    function replaceBigPhoto(id,index)
    {

        current = index;
        updateButtons();
    }
    function updateButtons()
    {
        for(var i=0;i<picture.length;i++)
        {
            change('tdImage'+i, 'nonSelectedImage');
            //document.images['image'+i].style.border = "solid 1px black";
        }
        change('tdImage'+current, 'selectedImage');
        //document.images['image'+current].style.border = "double 4px black";

        document.mainImage.src = picture[current].src;
        document.mainImage.style.height = picture[current].height;
        document.mainImage.style.width = picture[current].width;
        document.getElementById("captionText").innerHTML = picture[current].caption;
    }

    var largeGallery;
    function popLargeGallery(projectID)
    {
      largeGallery = window.open('pop.php?projectID='+projectID+'&startGraphicID='+picture[current].graphicID,'sample_images','height=465,width=610,status=yes,toolbar=no,menubar=no,location=no');
      largeGallery.focus();
    }

   function nada2()
   {
   //nada
   }
   function confirmDeleteLogo()
   {
      if(confirm('Are you sure you want to delete this file?'))
      {
         location.href = '/servlet/GraphicManagerServlet?catID=1&load=true&link_id=1540';
      }
   }


   function change(id, newClass) {
      identity=document.getElementById(id);
      identity.className=newClass;
   }

