var commonPath;
var includeJS = new Array();
includeJS[includeJS.length] = 'jquery-1.2.6.min.js';
includeJS[includeJS.length] = 'highlight.js';
includeJS[includeJS.length] = 'rollover.js';
includeJS[includeJS.length] = 'popup.js';
includeJS[includeJS.length] = 'iepngfix.js';
includeJS[includeJS.length] = 'swfobject.js';
init();

function init() {
	var i, jsSrc, pos, langMode, jsPath, charset;
	i = 0;
	jsSrc = document.getElementById('js').src;
	pos = (jsSrc.lastIndexOf('/'));
	langMode = document.getElementsByTagName('html')[0].lang;
	charset = 'utf-8';
	if(0 <= pos){
		jsPath=jsSrc.substr(0, pos+1);
		commonPath=jsPath.substr(0, pos-2);
	}
	while(i<includeJS.length){
		document.write('<script type="text/javascript" src ="'+jsPath+includeJS[i]+'" charset="'+charset+'"></script>' );
		i++;
	}
}