﻿function populateElement(selector, defvalue) {
    $(selector).each(function() {
        if ($.trim(this.value) == "") {
            this.value = defvalue;
        }
    });

    $(selector).focus(function() {
        if (this.value == defvalue) {
            this.value = "";
        }
    });

    $(selector).blur(function() {
        if ($.trim(this.value) == "") {
            this.value = defvalue;
        }
    });
}

populateElement('#SearchText', 'KEYWORD / ORDER CODE');




//NEW Arrivals
$(function() {

$(".scrollable-na").scrollable({ circular: true, next: '.scrollableNaNext', prev: '.scrollableNaPrev' }).navigator().autoscroll(10000);

});

//Family of Publications
$(function() {

    $(".scrollable-fop").scrollable({ circular: true, next: '.scrollableFopNext', prev: '.scrollableFopPrev' });

});


