// JavaScript Document

item_page_array 	= new Array('','','','','','','');
content_folder 		= new Array('','websites','logos','animations','photos','contact','');
start_content 		= new Array('','index.php','index.php','index.php','index.php','index.php','');

load_innercontent	= new Array('',0,0,0,0,0);
swfLoad				= new Array('',false,false,false,false,false,false);
class_array 		= new Array('','home','sunglasses','watches','dealers','contact');
categories_array 	= new Array('',0,0,0,0,0);
pages_array 		= new Array('',7,'','','',8);
gallery_type		= new Array('',0,2,2,0,0);
//side positions
sidepositions_array = new Array(new Array(),new Array(),new Array(),new Array(),new Array());


//gallery V2
function setGalleryVars(){
	switch(active_current){
		case 2:
		active_category = 1;
		active_gallery 	= 0;
		break;
	}
}

var minHeight	= 760;
var fx_sitemenu;

function LoadPageAll(){
	//alert(innerHeight)
	
	
	$('main_container').setStyle('top' , 0);
	
	if(innerWidth<1000){
		innerWidth = 1000;
	}
	
	if(innerHeight<minHeight){
		innerHeight = minHeight;
		if(!browserIE){
			innerWidth 	= innerWidth - 17;
		}
	}

	middleX				= innerWidth / 2;
	middleY				= innerHeight / 2;

	$('main_container').setStyle('left' , 0);
	$('main_container').setStyle('top' , 0);
	
	$('main_container').setStyle('width' , innerWidth);
	$('main_container').setStyle('height' , innerHeight);
	
	$('content').setStyle('top',50);
	$('content').setStyle('height',(innerHeight - 75));
	$('flow_content').setStyle('height',(innerHeight - 75));
	
	
	//$('flow_content').setStyle('width', innerWidth);
	
	$('inner_content_menu').setStyle('height', 0);
	$('inner_content_menu').setStyle('top', middleY - 25);
	
	
	$('scroll_bottom').setStyle('top',(innerHeight - 75 - 41));
	
	$('header').setStyle('width', innerWidth);
	$('header').setStyle('height', middleY);
	
	//$('footer').setStyle('top', innerHeight - 50);
	$('footer').setStyle('top', middleY);
	$('footer').setStyle('height', middleY);
	$('footer').setStyle('width', innerWidth);
	
	
	$('txt_page_logos').setStyle('opacity', 0);
	$('txt_page_contact').setStyle('opacity', 0);
	
	menulist	= $$('.navigation_div');
	menulist.each(function(element) {
		var current = parseInt(element.getProperty('id').substring(4));
		fx_mouse_overs[current] = MorpheItems('menu'+current, 800, Fx.Transitions.Cubic.easeOut);
		
		fx_mouse_overs[current].set({'opacity': 0.6});
		element.addEvent('mouseenter', function(){ 
			var current = parseInt(element.getProperty('id').substring(4));
			if(active_current!=current){
				fx_mouse_overs[current].cancel();
				fx_mouse_overs[current].start({'opacity': 0.8});
			}
		});
		element.addEvent('mouseleave', function(){
			var current = parseInt(element.getProperty('id').substring(4));
			if(active_current!=current){
				fx_mouse_overs[current].cancel();
				fx_mouse_overs[current].start({'opacity': 0.6});
			}	
		});
		element.addEvent('click', function(){
			var current = parseInt(element.getProperty('id').substring(4));
			fx_mouse_overs[active_current].cancel();
			fx_mouse_overs[active_current].start({'opacity': 0.6});
			fx_mouse_overs[current].cancel();
			fx_mouse_overs[current].start({'opacity': 1});
			$('inner_content_menu').setStyle('opacity', 1);
			$('scroll_top').setStyle('opacity', 1);
			$('scroll_bottom').setStyle('opacity', 1);
			if(gallery_open){
				closeBigImage();
			}
						
			$('inner_content_menu').innerHTML = '<img src="img/assets/loading.gif" width="66" height="66" alt="loading" style="padding-left:50px; padding-top:50px;" />'
			processPreClick(current, '?include_header=1');
		});
   	});
	
	active_current	= 1;
	if(active_current!=0){
		fx_mouse_overs[active_current].start({'opacity': 1});
	}
	
	fx_inner_content 	 		= MorpheItems('inner_content', 500, Fx.Transitions.Cubic.easeOut);
	fx_inner_content_menu 		= MorpheItems('inner_content_menu', 500, Fx.Transitions.Cubic.easeOut);
	
	
	$('load_container').setStyle('display' , 'none');
	$('site_menu').setStyle('opacity' , 0);
	$('site_navigation').setStyle('opacity' , 0);
	
	
	$('main_container').setStyle('opacity' , 0);
	$('label_scrollable_content').setStyle('opacity' , 0);
	
	
	$('main_container').setStyle('display' , 'block');
	$('main_container').setStyle('background-color' , '#e5e3df');
	$('main_container').setStyle('opacity' , 1);
	
	fx_sitemenu = MorpheItems('site_menu', 800, Fx.Transitions.Cubic.easeOut);
	
	setCollection();
	
	
	
	
}

var active_collection 			= 0;
var mouse_set_to_navigate		= false;
var collection_pos				= 1;
var fx_mouse_overs_collection	= new Array;
var fx_label_scrollable_content;

function processAfterClick(target, output){
	
	$(target).addEvent('domready', function() {
		
		switch(target){
			case 'inner_content_menu':
				
				
				switch(active_current){
					case 1:
						var the_output	= output.split('###');
				
						$('inner_content_menu').innerHTML = the_output[0];
						$('page_navigation_click').innerHTML = the_output[1];
						setCollection();
						$('main_container').setStyle('background-image','url(../img/assets/drawing_1.gif)');
	
						$('txt_page_sites').setStyle('opacity', 1);
						$('txt_page_logos').setStyle('opacity', 0);
						$('txt_page_contact').setStyle('opacity', 0);
	
					break;
					case 2:
						var the_output	= output.split('###');
				
						$('inner_content_menu').innerHTML = the_output[0];
						$('page_navigation_click').innerHTML = the_output[1];
						setCollection();
						$('main_container').setStyle('background-image','url(../img/assets/drawing_2.gif)');

						$('txt_page_sites').setStyle('opacity', 0);
						$('txt_page_logos').setStyle('opacity', 1);
						$('txt_page_contact').setStyle('opacity', 0);
					break;
					case 5:
						
						$('inner_content_menu').setStyle('opacity', 0);
						$('scroll_top').setStyle('opacity', 0);
			$('scroll_bottom').setStyle('opacity', 0);
			
						var the_output	= output;
				
						$('txt_page_sites').setStyle('opacity', 0);
						$('txt_page_logos').setStyle('opacity', 0);
						$('txt_page_contact').setStyle('opacity', 1);
						
						$('page_navigation_click').innerHTML = '';
						$('inner_content_menu').innerHTML = the_output;
						$('main_container').setStyle('background-image','url(../img/assets/drawing_3.gif)');
					break;
				}
				
			break;
		}
		
		
		
	});	
}

function setCollection(){
	active_collection 				= 0;
	var collection_divs				= $$('.collection_divs');
	
	//ChangeAnim('opacity', 'bg2', 0, 500, Fx.Transitions.Sine.easeOut);
	//$('label_scrollable_content').setStyle('left', middleX - 320 - 160 - 20);
	$('label_scrollable_content').setStyle('left', 0);
	$('page_navigation_click').setStyle('top', middleY + 20);
	$('page_navigation_click').setStyle('width', innerWidth - 350 - 120);
	$('site_navigation').setStyle('top', middleY - 145 - 50);
	
	//$('page_navigation_prev_20').setStyle('left', middleX - 290);
	//$('page_navigation_nxt_20').setStyle('left', middleX + 260);
	/*
	$('scroll_left').setStyle('top', innerHeight - 75 - 150);
	$('scroll_right').setStyle('top', innerHeight - 75 - 150);
	$('scroll_left').setStyle('top', 300);
	$('scroll_right').setStyle('top', 300);
	*/
	var TipsInBasket 				= new Tips($$('.page_nav'),{ fixed: false, className:'type2', showDelay: 0, hideDelay: 0, offsets: {'x': -100, 'y': -75} });
	fx_label_scrollable_content		= MorpheItems('label_scrollable_content', 800, Fx.Transitions.Quint.easeOut );
	
	collection_divs.each(function(element) {
		var current = parseInt(element.getProperty('id').substring(11));
		fx_mouse_overs_collection[current] = MorpheItems('collection_'+current, 800, Fx.Transitions.Cubic.easeOut);
		
		element.setStyle('opacity',0.5);
		//element.setStyle('width',180);
		element.setStyle('height',50);
		
		
		$('page_nav_'+current).setStyle('opacity',0.4);
		
		element.addEvent('click', function(){
			var current = parseInt(element.getProperty('id').substring(11));
			if(current!=active_collection){
				if(current != collection_pos){
					var to_move = current - collection_pos;
					moveBar(to_move);
				}
			}
		});
		
		element.addEvent('mouseenter', function(){
			var current = parseInt(element.getProperty('id').substring(11));
			if(current!=active_collection){
				if(current != collection_pos){
					fx_mouse_overs_collection[current].cancel();
					//fx_mouse_overs_collection[current].start({'height':70, 'opacity':1});
					fx_mouse_overs_collection[current].start({'opacity':1});
				}
			}
		});
		element.addEvent('mouseleave', function(){
			var current = parseInt(element.getProperty('id').substring(11));
			if(current!=active_collection){
				if(current != collection_pos){
					fx_mouse_overs_collection[current].cancel();
					fx_mouse_overs_collection[current].start({'opacity':0.5});
				}
			}
		});
	});
	
	$('collection_1').setStyle('opacity', 1);
	$('collection_1').setStyle('height', 340);
	
	$('collection_2').setStyle('height', 50);
	$('collection_2').setStyle('opacity', 0.7	);
	
	$('collection_divs_inside_1').setStyle('top',0);

	$('page_nav_1').setStyle('opacity', 1);
	$('page_nav_2').setStyle('opacity', 0.6);
	$('page_nav_1').setStyle('font-size', 13);
	$('page_nav_2').setStyle('font-size', 11);
	
	var myElement 	= $('scroll_bottom');
	myElement.addEvent('click', function(event){
		if(collection_pos < $('aantal_thumbs').value){
			setNextCollection();
			direction_scroll		= 1;
		}
	});
	myElement.addEvent('dblclick', function(event){});
	
	var myElement 	= $('scroll_top');
	myElement.addEvent('click', function(event){
		if(collection_pos > 1){
			setPrevCollection();
			direction_scroll		= -1;
		}
	});
	myElement.addEvent('dblclick', function(event){});
	
	
	fx_sitemenu.start({'opacity': 1,'left': innerWidth - 350});
	
																					  
																				  
	var fx_footer = new Fx.Morph('footer', {duration: 800, onComplete: function(){ 
		
		ChangeAnim('opacity', $('site_navigation'), 1, 500, Fx.Transitions.Sine.easeOut);
			
		var fx_leftside = new Fx.Morph('inner_content_menu', {duration: 400, onComplete: function(){ 
			
			

			$('scroll_bottom').setStyle('opacity',0);
			$('scroll_top').setStyle('opacity',0);

			$('scroll_bottom').setStyle('display', 'block');
			$('scroll_top').setStyle('display', 'block');
			
			$('scroll_bottom').fade('in');
			$('scroll_top').fade('in');
			
			ChangeAnim('opacity', $('label_scrollable_content'), 1, 1000, Fx.Transitions.Sine.easeOut);
			
			$('page_navigation_click').setStyle('display', 'block');
			
										  
		}, transition: Fx.Transitions.Cubic.easeOut});
		fx_leftside.start({'height': innerHeight - 80, 'top': 5});
		
	}, transition: Fx.Transitions.Cubic.easeOut});
	fx_footer.start({'height': 20,'top': innerHeight - 20});
	fx_header = MorpheItems('header', 800, Fx.Transitions.Cubic.easeOut);
	fx_header.start({'height': 50});
	
	fx_inner_content_menu.cancel();
	fx_inner_content_menu.start({'opacity': 1});

	
}

function processPreClick(current, query){
	if(current!=active_current && allow_click == true){
		allow_click = false;
		
		processClick(current, query);
		active_current	= current;
		allow_click 	= true;
	}else{
		//alert(allow_click + ' - ' + active_current);	
	}
}
var has_scroll = false
function resizing(){
	//$('main_container').setStyle('opacity' , 0);
	if(!browserSAF){
		if(browserIE && browserIE8 == false){
			innerWidth 	= parseInt((document.documentElement.clientWidth * 1));
		}else{
			innerWidth 	= parseInt((document.documentElement.clientWidth * 1));
		}
		innerHeight	= parseInt((document.documentElement.clientHeight * 1));
	}else{
		innerWidth 	= parseInt((document.documentElement.clientWidth * 1));
		innerHeight	= parseInt((document.documentElement.clientHeight * 1));
	}
	
	if(innerWidth<1000){
		innerWidth = 1000;
	}


	if(innerHeight < minHeight){
		innerHeight = minHeight;
		if(!browserIE && has_scroll == false){
			if(!browserSAF){
				innerWidth 	= parseInt((document.documentElement.clientWidth * 1) - 17);
			}else{
				innerWidth 	= parseInt((document.documentElement.clientWidth * 1) - 16);
			}
		}
		has_scroll 	= true;
	}
	
	middleX				= innerWidth / 2;
	middleY				= innerHeight / 2;
	
	
	$('label_scrollable_content').setStyle('left', 0);
	$('page_navigation_header').setStyle('top', middleY - 45);
	$('page_navigation_click').setStyle('top', middleY + 20);
	$('page_navigation_click').setStyle('width', innerWidth - 350 - 120);
	$('site_navigation').setStyle('top', middleY - 145 - 50);
	
	
	ChangeAnim('width', 'main_container', innerWidth, 400, Fx.Transitions.Sine.easeOut);
	ChangeAnim('height', 'main_container', innerHeight, 400, Fx.Transitions.Sine.easeOut);
	
	//ChangeAnim('width', 'flow_content', innerWidth, 400, Fx.Transitions.Sine.easeOut);
	
	ChangeAnim('top', 'footer', innerHeight - 20, 400, Fx.Transitions.Sine.easeOut);
	ChangeAnim('width', 'footer', innerWidth, 400, Fx.Transitions.Sine.easeOut);
	ChangeAnim('width', 'header', innerWidth, 400, Fx.Transitions.Sine.easeOut);
	
}

var direction_scroll	= 0;
var interval_scroll	= 0;

var processNavigation = function(){ 
	if(direction_scroll > 0){
		if(mouse_set_to_navigate == false && collection_pos < $('aantal_thumbs').value ){
			mouse_set_to_navigate = true	
			setNextCollection.delay(0);
		}
	}else if(direction_scroll < 0){
		if(mouse_set_to_navigate == false && collection_pos > 1 ){
			mouse_set_to_navigate = true	
			setPrevCollection.delay(0);
		}
	}else{
		mouse_set_to_navigate = false
	}
}

var setNextCollection 	= function (){
	if(mouse_set_to_navigate==false){
		mouse_set_to_navigate 	= true	
		moveBar(1);
	}
}

var setPrevCollection = function (){
	if(mouse_set_to_navigate==false){
		mouse_set_to_navigate 	= true			
		moveBar(-1);
	}
}

function collectionGoTo(goto, this_folder, this_url, this_index, this_title){
	//alert(goto);
	//alert(collection_pos);
	var direction = goto - collection_pos;
	//alert(direction);
	if(gallery_open){
		if(direction > 0 || direction < 0 ){
			openBigImage(this_folder,this_url,this_index, this_title, goto);		
		}
	}
	moveBar(direction);
}

function moveBar(direction){
	
	if(direction>2 || direction <-2){
		//grotere sprongen...dus de oude ook deactiveren!
		if($('collection_'+(collection_pos-1))){
//		ChangeAnim('opacity', 'collection_'+(collection_pos-1), 0.5, 200, Fx.Transitions.Sine.easeOut);
			//ChangeAnim('width', 'collection_'+(collection_pos-1), 180, 500, Fx.Transitions.Sine.easeOut);
//		ChangeAnim('height', 'collection_'+(collection_pos-1), 30, 500, Fx.Transitions.Sine.easeOut);
			//ChangeAnim('left', 'collection_divs_inside_'+(collection_pos-1), -70, 500, Fx.Transitions.Sine.easeOut);
			//ChangeAnim('top', 'collection_divs_inside_'+(collection_pos-1), -95, 500, Fx.Transitions.Sine.easeOut);
			
		fx_mouse_overs_collection[collection_pos - 1].cancel();
		fx_mouse_overs_collection[collection_pos - 1].start({'height':50, 'opacity':0.5});
		
			$('page_nav_'+(collection_pos-1)).setStyle('opacity', 0.4);
			$('page_nav_'+(collection_pos-1)).setStyle('font-size', 10);
			$('page_nav_'+(collection_pos-1)).setStyle('font-weight', 'normal');
		}
		
		if($('collection_'+collection_pos)){
//		ChangeAnim('opacity', 'collection_'+collection_pos, 0.5, 200, Fx.Transitions.Sine.easeOut);
			//ChangeAnim('width', 'collection_'+(collection_pos), 180, 500, Fx.Transitions.Sine.easeOut);
//		ChangeAnim('height', 'collection_'+(collection_pos), 30, 500, Fx.Transitions.Sine.easeOut);
			//ChangeAnim('left', 'collection_divs_inside_'+(collection_pos), -70, 500, Fx.Transitions.Sine.easeOut);
			//ChangeAnim('top', 'collection_divs_inside_'+(collection_pos), -95, 500, Fx.Transitions.Sine.easeOut);
			
			
		fx_mouse_overs_collection[collection_pos].cancel();
		fx_mouse_overs_collection[collection_pos].start({'height':50, 'opacity':0.5});
			
			$('page_nav_'+(collection_pos)).setStyle('opacity', 0.4);
			$('page_nav_'+collection_pos).setStyle('font-size', 10);
			$('page_nav_'+collection_pos).setStyle('font-weight', 'normal');
		}
		if($('collection_'+(collection_pos+1))){
//		ChangeAnim('opacity', 'collection_'+(collection_pos+1), 0.5, 200, Fx.Transitions.Sine.easeOut);
			//ChangeAnim('width', 'collection_'+(collection_pos+1), 180, 500, Fx.Transitions.Sine.easeOut);
//		ChangeAnim('height', 'collection_'+(collection_pos+1), 30, 500, Fx.Transitions.Sine.easeOut);
			//ChangeAnim('left', 'collection_divs_inside_'+(collection_pos+1), -70, 500, Fx.Transitions.Sine.easeOut);
			//ChangeAnim('top', 'collection_divs_inside_'+(collection_pos+1), -95, 500, Fx.Transitions.Sine.easeOut);
		fx_mouse_overs_collection[collection_pos + 1].cancel();
		fx_mouse_overs_collection[collection_pos + 1].start({'height':50, 'opacity':0.5});
			$('page_nav_'+(collection_pos+1)).setStyle('opacity', 0.4);
			$('page_nav_'+(collection_pos+1)).setStyle('font-size', 10);
			$('page_nav_'+(collection_pos+1)).setStyle('font-weight', 'normal');
		}
	}else if(direction == -2){
		//grotere sprongen...dus de oude ook deactiveren!
		if($('collection_'+(collection_pos+1))){
//		ChangeAnim('opacity', 'collection_'+(collection_pos+1), 0.5, 200, Fx.Transitions.Sine.easeOut);
			//ChangeAnim('width', 'collection_'+(collection_pos+1), 180, 500, Fx.Transitions.Sine.easeOut);
//		ChangeAnim('height', 'collection_'+(collection_pos+1), 30, 500, Fx.Transitions.Sine.easeOut);
			//ChangeAnim('left', 'collection_divs_inside_'+(collection_pos+1), -70, 500, Fx.Transitions.Sine.easeOut);
			//ChangeAnim('top', 'collection_divs_inside_'+(collection_pos+1), -95, 500, Fx.Transitions.Sine.easeOut);
		fx_mouse_overs_collection[collection_pos + 1].cancel();
		fx_mouse_overs_collection[collection_pos + 1].start({'height':50, 'opacity':0.5});
			$('page_nav_'+(collection_pos+1)).setStyle('opacity', 0.4);
			$('page_nav_'+(collection_pos+1)).setStyle('font-size', 10);
			$('page_nav_'+(collection_pos+1)).setStyle('font-weight', 'normal');
		}
	}else if(direction == 2){
		if($('collection_'+(collection_pos-1))){
//		ChangeAnim('opacity', 'collection_'+(collection_pos-1), 0.5, 200, Fx.Transitions.Sine.easeOut);
			//ChangeAnim('width', 'collection_'+(collection_pos-1), 180, 500, Fx.Transitions.Sine.easeOut);
//		ChangeAnim('height', 'collection_'+(collection_pos-1), 30, 500, Fx.Transitions.Sine.easeOut);
			//ChangeAnim('left', 'collection_divs_inside_'+(collection_pos-1), -70, 500, Fx.Transitions.Sine.easeOut);
			//ChangeAnim('top', 'collection_divs_inside_'+(collection_pos-1), -95, 500, Fx.Transitions.Sine.easeOut);
		fx_mouse_overs_collection[collection_pos - 1].cancel();
		fx_mouse_overs_collection[collection_pos - 1].start({'height':50, 'opacity':0.5});
			$('page_nav_'+(collection_pos-1)).setStyle('opacity', 0.4);
			$('page_nav_'+(collection_pos-1)).setStyle('font-size', 10);
			$('page_nav_'+(collection_pos-1)).setStyle('font-weight', 'normal');
		}
	}
		
	//alert(collection_pos);
	collection_pos = collection_pos + direction;
	var pos;
	
	if(collection_pos == 0){
		pos = 0
	}else if(collection_pos == 1){
		pos = 0;
	}else if(collection_pos == 2){
		pos = 0 - 51;
	}else{
		pos = 0 - 51 - (collection_pos - 2) * 51 ;
	}
	
//	ChangeAnim('top', 'label_scrollable_content', pos, 1500, Fx.Transitions.Quart.easeOut);
	fx_label_scrollable_content.cancel();
	fx_label_scrollable_content.start({'top':pos})

	if($('collection_'+(collection_pos-2))){
//ChangeAnim('opacity', 'collection_'+(collection_pos-2), 0.5, 500, Fx.Transitions.Sine.easeOut);
		//ChangeAnim('width', 'collection_'+(collection_pos-2), 180, 500, Fx.Transitions.Sine.easeOut);
		//ChangeAnim('font-size', 'collection_'+(collection_pos-2), 8, 500, Fx.Transitions.Sine.easeOut);
//ChangeAnim('height', 'collection_'+(collection_pos-2), 30, 500, Fx.Transitions.Sine.easeOut);
		//ChangeAnim('left', 'collection_divs_inside_'+(collection_pos-2), -70, 500, Fx.Transitions.Sine.easeOut);
		//ChangeAnim('top', 'collection_divs_inside_'+(collection_pos-2), -95, 500, Fx.Transitions.Sine.easeOut);
		fx_mouse_overs_collection[collection_pos - 2].cancel();
		fx_mouse_overs_collection[collection_pos - 2].start({'height':50, 'opacity':0.5});
		$('page_nav_'+(collection_pos-2)).setStyle('opacity', 0.4);
		$('page_nav_'+(collection_pos-2)).setStyle('font-size', 10);
		$('page_nav_'+(collection_pos-2)).setStyle('font-weight', 'normal');
	}
	if($('collection_'+(collection_pos-1))){
//	ChangeAnim('opacity', 'collection_'+(collection_pos-1), 0.8, 500, Fx.Transitions.Sine.easeOut);
		//ChangeAnim('width', 'collection_'+(collection_pos-1), 240, 500, Fx.Transitions.Sine.easeOut);
		//ChangeAnim('font-size', 'collection_'+(collection_pos-1),9, 500, Fx.Transitions.Sine.easeOut);
//		ChangeAnim('height', 'collection_'+(collection_pos-1), 70, 500, Fx.Transitions.Sine.easeOut);
		//ChangeAnim('left', 'collection_divs_inside_'+(collection_pos-1), -40, 500, Fx.Transitions.Sine.easeOut);
		//ChangeAnim('top', 'collection_divs_inside_'+(collection_pos-1), -35, 500, Fx.Transitions.Sine.easeOut);
		fx_mouse_overs_collection[collection_pos - 1].cancel();
		fx_mouse_overs_collection[collection_pos - 1].start({'height':50, 'opacity':0.7});
		$('page_nav_'+(collection_pos-1)).setStyle('opacity', 0.6);
		$('page_nav_'+(collection_pos-1)).setStyle('font-size', 11);
		$('page_nav_'+(collection_pos-1)).setStyle('font-weight', 'normal');
	}
	
	if($('collection_'+collection_pos)){
		//ChangeAnim('opacity', 'collection_'+collection_pos, 1, 500, Fx.Transitions.Sine.easeOut);
		//ChangeAnim('width', 'collection_'+(collection_pos), 320, 500, Fx.Transitions.Sine.easeOut);
		//ChangeAnim('font-size', 'collection_'+(collection_pos), 10, 500, Fx.Transitions.Sine.easeOut);
		//ChangeAnim('height', 'collection_'+(collection_pos), 340, 500, Fx.Transitions.Sine.easeOut);
		//ChangeAnim('left', 'collection_divs_inside_'+(collection_pos), 0, 500, Fx.Transitions.Sine.easeOut);
		//ChangeAnim('top', 'collection_divs_inside_'+(collection_pos), 0, 500, Fx.Transitions.Sine.easeOut);
		
		fx_mouse_overs_collection[collection_pos].cancel();
		fx_mouse_overs_collection[collection_pos].start({'height':340, 'opacity':1, 'top':0});
		
		$('page_nav_'+collection_pos).setStyle('opacity', 1);
		$('page_nav_'+collection_pos).setStyle('font-size', 13);
		$('page_nav_'+collection_pos).setStyle('font-weight', 'bold');
	}
	if($('collection_'+(collection_pos+1))){
	//ChangeAnim('opacity', 'collection_'+(collection_pos+1), 0.8, 500, Fx.Transitions.Sine.easeOut);
		//ChangeAnim('width', 'collection_'+(collection_pos+1), 240, 500, Fx.Transitions.Sine.easeOut);
	//ChangeAnim('height', 'collection_'+(collection_pos+1), 70, 500, Fx.Transitions.Sine.easeOut);
		//ChangeAnim('font-size', 'collection_'+(collection_pos+1), 9, 500, Fx.Transitions.Sine.easeOut);
		//ChangeAnim('left', 'collection_divs_inside_'+(collection_pos+1), -40, 500, Fx.Transitions.Sine.easeOut);
		//ChangeAnim('top', 'collection_divs_inside_'+(collection_pos+1), -35, 500, Fx.Transitions.Sine.easeOut);
		
		fx_mouse_overs_collection[collection_pos+1].cancel();
		fx_mouse_overs_collection[collection_pos+1].start({'height':50, 'opacity':0.7});
		
		$('page_nav_'+(collection_pos+1)).setStyle('opacity', 0.6);
		$('page_nav_'+(collection_pos+1)).setStyle('font-size', 11);
		$('page_nav_'+(collection_pos+1)).setStyle('font-weight', 'normal');
	}
	if($('collection_'+(collection_pos+2))){
//ChangeAnim('opacity', 'collection_'+(collection_pos+2), 0.5, 500, Fx.Transitions.Sine.easeOut);
		//ChangeAnim('width', 'collection_'+(collection_pos+2), 180, 500, Fx.Transitions.Sine.easeOut);
		//ChangeAnim('font-size', 'collection_'+(collection_pos+2), 8, 500, Fx.Transitions.Sine.easeOut);
//ChangeAnim('height', 'collection_'+(collection_pos+2), 30, 500, Fx.Transitions.Sine.easeOut);
		//ChangeAnim('left', 'collection_divs_inside_'+(collection_pos+2), -70, 500, Fx.Transitions.Sine.easeOut);
		//ChangeAnim('top', 'collection_divs_inside_'+(collection_pos+2), -95, 500, Fx.Transitions.Sine.easeOut);
		
		fx_mouse_overs_collection[collection_pos + 2].cancel();
		fx_mouse_overs_collection[collection_pos + 2].start({'height':50, 'opacity':0.5});
		
		$('page_nav_'+(collection_pos+2)).setStyle('opacity', 0.4);
		$('page_nav_'+(collection_pos+2)).setStyle('font-size', 10);
		$('page_nav_'+(collection_pos+2)).setStyle('font-weight', 'normal');
	}
	
	var this_enable = function(){ mouse_set_to_navigate = false }.delay(400);
	
}

