		
		function removeGb(){
			if(jQuery('#GB_window').length > 0 ){
				jQuery('#GB_window').remove();
				jQuery('#GB_overlay').remove();
			}
		}
		
		/** 
		* Sliding
		*/
		var Slide = function(){
			
			count = 0;
			
			this.init = function(){
					this.prev();
					this.next();
				}
				
			this.prev = function(){
					$('.arrowlft').click(function(e){
								e.preventDefault();
								//$('.placeholder').prependTo('#slider');
								$('#slider').animate(
											{ 
												marginLeft: "190px",
											}
											, 500
											, ''
											, function(){
												$('#slider').css({marginLeft: 'auto'});
												$('#slider .column:last-child').prependTo('#slider');
												//$('.placeholder').prependTo('#slider');
											});
								
						});
				}
				
			this.next = function(){
					$('.arrowrght').click(function(e){
								e.preventDefault();
								$('#slider').animate(
											{ 
												marginLeft: "-190px",
											}
											, 500
											, ''
											, function(){$('#slider').css({marginLeft: 'auto'}); $('#slider .column:first-child').appendTo('#slider'); } );
								
							});
				}
				
			this.slide = function(){
					
				}
		};
		
		
		/**
		* Dragger
		*/
		var Dragger = function(){
			
				ref = this;
				initX = 1;
				X = 1;
				elem = '';
				left = 1;
				ageCount = 1;
				
				this.init = function(){
					
						elem = $('#dragger')[0];
						elem.style.left = '0px';
						elem.onmousedown = this.begin;
					}
				
				this.begin = function(e){ 
						e = e ? e : window.event;
						initX = e.clientX;  
						X = parseInt(elem.style.left); 
						document.onmousemove = ref.move;
						document.onmouseup = ref.end; 
					}
				
				this.move = function(e){
					
						e = e ? e : window.event;
						left = X - initX + e.clientX; 
						ageCount = Math.floor(left/2.12);
						if(ageCount<=100 && ageCount>0){
							$('.agecount').html(ageCount);
							$('#dragger').css({left: left  + 'px'})	;	
						}
					}
					
				this.end = function(){
					
						document.onmousemove = false;
						document.onmouseup = false;
					}
		}
		
		
	   $(document).ready(
				function(){
					$('#news').innerfade({
						animationtype: 'slide',
						speed: 750,
						timeout: 2000,
						type: 'random',
						containerheight: '1em'
					});
					
					$('ul#portfolio').innerfade({
						speed: 1000,
						timeout: 5000,
						type: 'sequence',
						containerheight: '220px'
					});
					
					$('.fade').innerfade({
						speed: 1000,
						timeout: 6000,
						type: 'random_start',
						containerheight: '1.5em'
					});
					
					$('.adi').innerfade({
						speed: 'slow',
						timeout: 5000,
						type: 'random',
						containerheight: '150px'
					});

					
					var obj = new Slide();
					obj.init();
					var obj = new Dragger();
					obj.init();
			});