
$j = jQuery.noConflict();

$j(document).ready(function() {


        /* Fires up the Home Carousel*/
        $j('#home-carousel ul').jcarousel({
        auto: 4,
        scroll: 1,
        animation:800,
        wrap: 'last'

        });




    /* Select correct menu item style for current page*/
    $j('#menu a').each(function() {
        if (window.location.href.toLowerCase().indexOf($j(this).attr('href').toLowerCase()) >= 0 &&
             $j(this).attr('href').length > 1) {
            $j(this).addClass('current');
        }

    });


    if (window.location.href.toLowerCase() == 'http://www.ukcodes.co.uk/') {
        $j('#home a').addClass('current');

    }


    /* Search Box Watermark */
    var watermark = "Enter Store Name : Dell, Comet, etc";
    if ($j(".bigsearch").val() == "") {
        $j(".bigsearch").val(watermark);
    }

    $j(".bigsearch").focus(function() {
        if (this.value == watermark) {
            this.value = "";
         
        }
    }).blur(function() {
        if (this.value == "") {
            this.value = watermark;
        }
    });



    /* handles Click to Reveal */
    $j('#voucher-list ul li p.reveal a').click(function() {

     window.open($j("a",this.hash).attr('href'), 'newwin').blur();
     window.focus();
     $j(this.hash).show(); return false;
     });




});



