var SI = new Object();
SI.onbeforeload	= function() { for (var module in this) { if (this[module].onbeforeload) { this[module].onbeforeload(); };};};
SI.onload		= function() { for (var module in this) { if (this[module].onload) { this[module].onload(); };};};
SI.onresize		= function() { for (var module in this) { if (this[module].onresize) { this[module].onresize(); };};};



SI.MORE = {
	onbeforeload	: function() {
		if (!document.getElementsByTagName) return;
	
		var navigation = document.getElementById('navigation').innerHTML;
		
		
		var navs = new Array();
		var divs = document.getElementsByTagName("div");
		for (var i=0; i<divs.length; i++) {
			var e = divs[i];
			if (e.className=='navigation') {
				e.innerHTML = navigation;
				navs[navs.length] = e;
				};
			};
		
	
		
		
		for (var j=0; j<navs.length; j++) {
			var lnks = navs[j].getElementsByTagName("a");
			
			for (var k=0; k<lnks.length; k++) {
				var a = lnks[k];
				if (k==j) {
					a.className = 'active';
					a.onclick = function() { return false; }
					continue;
					}
				
				}
			}
		},
	Scroll	: {
		scrollLoop 		: false, 
		scrollInterval	: null,
		
		
		
		getElementYpos	: function(el) {
			
			while(el.offsetParent){
				
				}
			return y;
			},
		to : function(id){
			if(this.scrollLoop){
				
				}
			
			if(ypos > documentHeight - windowHeight) ypos = documentHeight - windowHeight;
			this.scrollTo(0,ypos);
			},
		scrollTo : function(x,y) {
			if(this.scrollLoop) {
				
				if(Math.abs(left-x) <= 1 && Math.abs(top-y) <= 1) {
					
					}
				else {
					
					}
				}
			else {
				
				}
			}
		}
	}

