		Array.prototype.remove = function(from, to) {
			var rest = this.slice((to || from) + 1 || this.length);
			this.length = from < 0 ? this.length + from : from;
			return this.push.apply(this, rest);
		};

		String.prototype.trim = function() {
		  var val = this;
		  val = val.replace(/^\s+/,'');
		  val = val.replace(/\s+$/,'');
		  return val;
		}
		submitonenter = function(e, me, n){
			var characterCode

			if(e && e.which){
			e = e
			characterCode = e.which
			}
			else{
			e = event
			characterCode = e.keyCode 
			}

			if(characterCode == 13){
				if(n != true){
					me.submit();
					return false
				}
				else{
				}
			}
			else{
				return true;
			}
		}
		
		// lang
			var open = false;
		$(document).ready(function(){
			$('#taal').click(function(){
				if(!open){
					$('#'+$(this).attr('id') + ' img').attr('src', './images/language2.png');
					$('#taalsub').css('left', ($(this).offset().left+6)+'px').css('top', '22px');
					$('#taalsub').slideDown(500);
					open = true;
				}
				else{
					$('#taalsub').slideUp(500);
					$('#'+$(this).attr('id') + ' img').attr('src', './images/language.png');
					open = false;
				}
			});

		});
		
		//page menus
		$(document).ready(function(){
			$('.menu li').click(function(){
				window.location = base+$('#'+$(this).attr('id')+' a').attr('href');
			});
		});
		function cursmenu(curid){
			$('#'+curid).addClass('current');
		}
		
		
		
		
		
		
		

		
		
		

		
		$(document).ready(function(){
			$('#shadow').each(function(){
				var pos_l = $(this).position().left;
			});
		});	