
/**
 * Script loader
 *
 */

(function () {
  var load_all = function (scripts) {
    var html = ""
    for (var i = 0; i < scripts.length; i++) {
      html += '<script type="text/javascript" src="' + baseURL + scripts[i] + '"></script>';      
    }
    document.write(html);
  }

  window.load = function (scripts) {
	  load_all(scripts)
  }
})()


/**
 * Loading configuration starts here
 */
load([ 
  // STARTLOAD
  'lib/jquery/js/jquery/jquery-1.6.4.min.js',
  'lib/jquery/js/jquery/jquery-ui-1.8.16.custom.min.js',
  //'js/ext/jquery-1.4.2.js', 
  //'js/ext/jquery-ui-1.7.custom.js',
  'js/ext/jquery.bgiframe.js',
  'js/ext/jquery.validate.js', 
  'js/ext/jquery.tooltip.js',
  'js/ext/jquery.jcarousel.js',
  'js/ext/jquery.hoverIntent.js',
  'js/ext/jquery.cookie.js',
  'js/app.js',
  'js/product.js',
  //'js/webtrekk/frontend_webtrekk.js',
  'js/searchsuggest.js',
  'js/searchresults.js',
  'js/ext/jquery.formidable.js',
  'js/gateway.js',
  'js/ext/swfobject-v2.2.js',
  'js/giftcarddetails.js',
  'lib/jquery/js/jquery/jquery.ui.core.js',
  'lib/jquery/js/jquery/jquery.ui.widget.js',
  'lib/jquery/js/jquery/jquery.ui.datepicker.js',
  'lib/jquery/js/jquery/jquery.jmNotify.js',
  
  // must be called as last element
  'js/afterLoad.js'
  
  // ENDLOAD
])

