$(document).ready(function() {
   
      setTimeout
      (
         function()
         {
            $('#PLVSMSQIPCXADiv ul ul ul li div.SQIPCXA__PLVSM3_SEL').delay(1000).parents("div").parent("li").children("div.SQIPCXA__PLVSM4SubChild").attr("id","SQIPCXA__PLVSM4SubChild_SELECTED");
            
            $('#PLVSMSQIPCXADiv ul ul li div.SQIPCXA__PLVSM4SubChild_SEL').delay(1000).parents("div").parent("li").children("div.SQIPCXA__PLVSM1").attr("id","SQIPCXA__PLVSM1_SELECTED");
            $('#PLVSMSQIPCXADiv ul ul li div#SQIPCXA__PLVSM4SubChild_SELECTED').delay(1000).parents("div").parent("li").children("div.SQIPCXA__PLVSM1").attr("id","SQIPCXA__PLVSM1_SELECTED");
            
            $('#PLVSMSQIPCXADiv ul ul li div.SQIPCXA__PLVSM4NoChild_SEL').delay(1000).parents("div").parent("li").children("div.SQIPCXA__PLVSM1").attr("id","SQIPCXA__PLVSM1_SELECTED");
         },
         1000
      );
      
      
if ($('#slideshow').length != 0) {
   $('#slideshow').cycle({
      fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
   });
   
   // redefine Cycle's updateActivePagerLink function 
   $.fn.cycle.updateActivePagerLink = function(pager, currSlideIndex){
      $(pager).find('li').removeClass('active').filter('li:eq(' + currSlideIndex + ')').addClass('active');
   };
   
   $('#slideshow').cycle({
      timeout: 4000,
      pager: '#CycleNav',
      pagerAnchorBuilder: function(idx, slide){
         return '';
      }
   });
   
   $("#CycleNav li").hover(function(){
      $('#slideshow').cycle('pause');
      $("#CycleNav li").removeClass('active');
      var LiIndex = ($(this).parent().children().index(this)) + 1;
      //$('#slideshow a:nth-child('+LiIndex+')').removeAttr('style').addClass('shwImage');
      $('#slideshow img').css('z-index', '').css('display', 'none');
      $('#slideshow img:nth-child(' + LiIndex + ')').css('z-index', '6').css('display', 'block').css('opacity', '1');
   }, function(){
      $('#slideshow img').removeClass('showImage');
      $('#slideshow').cycle('resume');
   });
}
   

});
