window.addEvent('domready', function() {
	//-- Google Custom Search	
	var googleCustomSearch = new Asset.javascript('http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en', {id: 'googleCustomSearch'});
									 
	//-- Google Analytics
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-6395459-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
									 
	//- Window Location
	var windowLocation = new String(window.location);
									 
	new Request.HTML({ method: 'get', url: '/meta/html/banner.html', update: $('banner') }).send();								 
    new Request.HTML({ method: 'get', url: '/meta/html/topNav.html', update: $('topNav') }).send();
	new Request.HTML({ method: 'get', url: '/meta/html/footer.html', update: $('footer') }).send();
	
	//- Create Right Navigation
	if (document.getElementById('rightNavigation')) {
		if (windowLocation.test("/projects/prac")) { new Request.HTML({ method: 'get', url: '/meta/html/l3/prac.html', update: $('rightNavigation') }).send(); }
		else if (windowLocation.test("/projects/soce")) { new Request.HTML({ method: 'get', url: '/meta/html/l3/soce.html', update: $('rightNavigation') }).send(); }
		else {
			new Request.HTML({ method: 'get', url: '/meta/html/rightNav.html', update: $('rightNavigation') }).send();
		}
	}
	
});
