﻿
               var slider1;
               function pageLoad() {
                   slider1 = $find("ss1");
                   slider1.add_slideChanging(onSlideChanged);
                   
                   //added this to make lightbox work with updatepanels
                   initLightbox();

               }
               var imgUrl = "";
               /*var imgUrl = "http://www.microsoft.com";*/

               function onSlideChanged(sender, args) {

                   /*slider1._currentImageElement.src */
                   /*now need to strip this of its http: attributes*/
                   slider = slider1._currentImageElement.src
                   /*local*/
                   slider = slider.replace("http://localhost:61937/omega/images/ads/", "")
                   /*production*/
                   slider = slider.replace("http://www.omegamoulding.com/images/ads/", "")
                   slider = slider.replace("https://www.omegamoulding.com/images/ads/", "")
                   /*dev*/
                   slider = slider.replace("http://dev.omegamoulding.com/images/ads/", "")
                   imgUrl = "ProductList.aspx?ItemNumber=&Finishes=&Styles=&MinWidth=0&MaxWidth=998&FrameTypes=&Collections=" + slider.replace(".jpg", "") + "&RabbetDepths=&CatalogPage=&CatalogName= "; 
                   }

                   //ItemNumber=&Finishes=&Styles=&MinWidth=0&MaxWidth=998&FrameTypes=&Collections=Curio&RabbetDepths=&CatalogPage=&CatalogName=
