// -*- coding: UTF-8 -*-
// import_agv.js - JavaScript
// Copyright (C) 2010 Sofrosune. All rights reserved.
// Author: Sofrosune; www.sofrosune.net
// No part of this program may be reproduced or transmitted in any form or 
// by any means without permission from the author, Sofrosune.
//
// Date: September 15, 2010
// Version: 1.00; September 15, 2010

// Usage:
/**
<head>
<script type="text/javascript" src="../scripts/import_agv.js"></script>
</head>
*/

(function() {
	var path = window.location.pathname;
//	window.alert(path);
	var rootdir = "";
	if (path.search(/(?:^\/|web-content\/)(?:index\.html)?$/) == -1) { rootdir = "../"; }
	document.open();
	for (var N = arguments.length, n = 0; n < N; n++) {
		var text = arguments[n]; if (text == null) { break; }
		text = text.replace(/("|')\//g,"$1"+rootdir);
	//	text = text.replace(/</g,"&lt;"); // for debugging
		document.write(text);
	}
	document.close();
})(
'<script type="text/javascript" src="/topics/scripts/show_news.js"></script>',
'<script type="text/javascript" src="/topics/scripts/show_news_data.js"></script>',
'<script type="text/javascript" src="/scripts/sidebar-loader.js"></script>',
'<script type="text/javascript" src="/scripts/queryform-init.js"></script>',
null
);

// end of javascript

