
$j	= jQuery.noConflict();

if (typeof console == "undefined") {
    this.console = {log: function() {}};
}

//head.js("/js/jquery/js/jquery-ui-1.8.7.custom.min.js");
//head.js("/js/jquery/js/jquery.base64.js", "/js/jquery/plugin/jquery.validate.js");
//head.js("/js/jquery/plugin/tinysort/scripts/jquery.tinysort.min.js");
//head.js("/js/jquerytools.js");
//head.js("/lib/masterdef.js");

/**
 *  Page onload scripting
 **/
$j(document).ready(function() {
    console.log('head_loaded');

    $j('.search-input').focus(function () {
      if ($j(this).attr('value')=="<?php echo$_search_field_message?>") 
      $j(this).attr('value','');
    });
    
    $j('.search-input').blur(function () {
      if ($j(this).attr('value')=="") 
        $j(this).attr('value',"<?php echo$_search_field_message?>");
    });

    if ($j('#features').scrollable) {
      $j('#features').scrollable();
      $j('.specialoffers').scrollable({next: '.spof-next', prev: '.spof-prev'});			     
      $j('.search-input').focus(function () {

      if ($j(this).attr('value')=="<?php echo$_search_field_message?>") 
        $j(this).attr('value','');
      });
      
      $j('.search-input').blur(function () {
        if ($j(this).attr('value')=="") 
          $j(this).attr('value',"<?php echo$_search_field_message?>");
      });
    }
});

