
// JS for _pagedetail.ascx

 function pagedetail() {

   $('#pcontainer img.cycleimage').wrap(function() {
      return '<span style="background-image:url(' + $(this).attr('src') + '); height: '+ $(this).height() + 'px; width: '+ $(this).width() + 'px;" class="rounded" />';
    });
   
   $('#pcontainer').cycle({
    fx: 'fade', 
    speed: 2000,
    timeout: 6000,
    pause: 0,
    continuous: 0,
    slideExpr: 'span'
   });

    // get height of the element holding the text entry
    // if that is greater than height of box then initiate the scroller plugin
    var theight = $('#scroller').height()
    //alert(theight)
    if (theight > 270) { 
        $("#scroller").simplyScroll({
           className: 'vert',
           horizontal: false,
           frameRate: 30,
           speed: 15
           });
    }

   $('#nav').corner("20px tl bl");
   
 }
 
