/**
 * @author: Ivan Andonov
 * @email:  ivan.andonov[at]design[dot]bg
 * 
 * Javascript loader for specific page
 **/

var scripts = [
	// jquery
	'jquery/jquery.js', 'jquery/jquery_no_conflict.js',
		'jquery/jcarousel/jcarousel.js',
	// swfobject
	'swfobject/swfobject.js',
	// json
	'json/json2.js',
	
	// mootools
	'mootools/mootools.js',
		// multibox
		'mootools/multibox/multibox.js',
		// overlay
		'mootools/overlay/overlay_dbg.js',
	// dbg
		// classes
		'dbg/dbg.js', 'dbg/ShortcutCall.js', 'dbg/Delegate.js','dbg/Form.js',
		'dbg/Utils.js', 'dbg/Objects.js', 'dbg/Arrays.js', 'dbg/Strings.js', 'dbg/Styles.js', 'dbg/Cookies.js', 
		'dbg/Keyboard.js', 'dbg/Events.js', 'dbg/Box.js', 'dbg/MouseEvent.js', //'dbg/Debug.js', 
		// functions
		'dbg/Ajax.js', 'dbg/TextChanger.js','dbg/Debug.js',
		// CUSTOM
		'custom/allPages.js', 'custom/textChange.js','custom/stock.js','custom/selects.js'
		//,'custom/newsList.js'
];

if (!this.base) this.base = "";
if (!this.jsPath) this.jsPath = "js/";


for (var i = 0, len = scripts.length; i < len; i++) {
	
	document.write('<script type="text/javascript" language="javascript" src="'+base+jsPath+scripts[i]+'"></script>');
}