 /**
 * @autour: Ivan Andonov
 * @email:  ivata[at]design[dot]bg
 * 
 * Javascript loader for specific page
 **/

var scripts = [
	// jquery
	'jquery/jquery.js',
		'jquery/jcarousel/jcarousel.js',
	// swfobject
	'swfobject/swfobject.js',
	// swfobject
	'reflection/reflection.js',
	// dbg
	'dbg/dbg.js', 'dbg/ShortcutCall.js', 'dbg/Delegate.js', 
	'dbg/Utils.js', 'dbg/Objects.js', 'dbg/Arrays.js', 'dbg/Strings.js', 'dbg/Styles.js', 'dbg/Cookies.js', 'dbg/Xml.js', 
	'dbg/Keyboard.js', 'dbg/Events.js',  'dbg/Box.js', 'dbg/MouseEvent.js','dbg/Debug.js',
	'dbg/Ajax.js', 'dbg/TextChanger.js', 'dbg/DDMenu.js', 'dbg/ToggleMenu.js', 'dbg/Slideshow.js',
	// custom
	'custom/allPages.js', 'custom/cssCheck.js', 'custom/textChange.js', 'custom/navigation.js', 'custom/projects.js',
	'custom/forms.js', 'custom/imagePopup.js', 'custom/stock.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>');
}