/* Settings
--------------------------------------------------------------------------------
To plug all required scripts, please replace "hostname" variable with template's folder path.
Examples:
      http://somesite.com/
      file:///D:/foldername/
*/

// Set of plugins scripts should be served as a one packed file, or include it separately?
var packed = true;

// Google analytics settings. Replace 'UA-XXXXX-X' with your own site's ID
var _gaq=[['_setAccount','UA-7587752-3'],['_trackPageview']];


/* jQuery & jQueryUI
----------------------------------------------------------------------------- */
document.write('<script src="'+hostname+'scripts/jquery.min.js">\x3C/script>');
document.write('<script src="'+hostname+'scripts/jquery-ui.min.js">\x3C/script>');


/* Conditional scripts loading, packed scripts or separate
----------------------------------------------------------------------------- */
if(packed == true) {
    document.write('<script src="'+hostname+'scripts/packed.js">\x3C/script>');
} else {
    document.write('<script src="'+hostname+'scripts/plugins/jquery-easing/jquery.easing.js">\x3C/script>');
    document.write('<script src="'+hostname+'scripts/prettyphoto/jquery.prettyPhoto.js">\x3C/script>');
    document.write('<script src="'+hostname+'scripts/plugins/tipsy/jquery.tipsy.js">\x3C/script>');
    document.write('<script src="'+hostname+'scripts/plugins/video-js/video.js">\x3C/script>');
    document.write('<script src="'+hostname+'scripts/tweet/jquery.tweet.js">\x3C/script>');
    document.write('<script src="'+hostname+'scripts/plugins/jquery-validate/jquery.validate.min.js">\x3C/script>');
    document.write('<script src="'+hostname+'scripts/plugins/zrssfeed/jquery.zrssfeed.min.js">\x3C/script>');
    document.write('<script src="'+hostname+'scripts/swfobject.js">\x3C/script>');
    // Sliders and galleries
    document.write('<script src="'+hostname+'scripts/plugins/PikaChoose/jquery.pikachoose.js">\x3C/script>');
    document.write('<script src="'+hostname+'scripts/plugins/nivo-slider/jquery.nivo.slider.pack.js">\x3C/script>');
    document.write('<script src="'+hostname+'scripts/plugins/jcarousel/jquery.jcarousel.min.js">\x3C/script>');
    document.write('<script src="'+hostname+'scripts/plugins/kwicks/jquery.kwicks.pack.js">\x3C/script>');
    document.write('<script src="'+hostname+'scripts/plugins/anything-slider/jquery.anythingslider.min.js">\x3C/script>');
    document.write('<script src="'+hostname+'scripts/plugins/anything-slider/jquery.anythingslider.fx.min.js">\x3C/script>');
}

// Scripts that are always loaded
document.write('<script src="'+hostname+'scripts/scripts.js">\x3C/script>');
document.write('<script src="'+hostname+'scripts/user-scripts.js">\x3C/script>');

// Google analytics loading
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.async=1;
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));

// Display alert in case if hostname is false
if(hostname === false || hostname == '') {
    alert('Please, configure "hostname" variable in scripts/dispacher.js file.');
}

