// JavaScript Document
function setFrame(url){
	$("#frames").attr("src",url); 	
};
$(function () {
	$('.submenu').each(function(){
		$(this).hide();					
	});
	$('.subsubmenu').each(function(){
		$(this).hide();					
	});
});

function works(){
	$('.submenu').each(function(){
		$(this).hide();					
	}); 
	$('.subsubmenu').each(function(){
		$(this).hide();					
	});
	$('#works').show();
};

function texts(){
	$('.submenu').each(function(){
		$(this).hide();					
	}); 
	$('.subsubmenu').each(function(){
		$(this).hide();					
	});
	$('#textos').show();
};
function chronology(){
	$('.subsubmenu').each(function(){
		$(this).hide();					
	}); 
	$('#chronology').show();
};
function orders(){
	$('.subsubmenu').each(function(){
		$(this).hide();					
	}); 
	$('#orders').show();
};
function drawings(){
	$('.subsubmenu').each(function(){
		$(this).hide();					
	}); 
	$('#drawings').show();
};
function studio(){
	$('.subsubmenu').each(function(){
		$(this).hide();					
	}); 
	$('#studio').show();
};
function set_chronology(value){
	url = "gallery.php?id="+value;
	$("#frames").attr("src",url);
	$("#frames").css('height','500px');
};
function set_orders(value){
	url = "orders.php?id="+value;
	$("#frames").attr("src",url); 
	$("#frames").css('height','500px');
};
function set_drawings(value){
	url = "drawings.php?id="+value;
	$("#frames").attr("src",url); 
	$("#frames").css('height','500px');
};
function set_studio(value){
	url = "studio.php?id="+value;
	$("#frames").attr("src",url); 
	$("#frames").css('height','500px');
};
function johanna(){
	url = "textsj.html";
	$("#frames").attr("src",url); 
	$("#frames").css('height','1500px'); 
};
function ruth(){
	url = "texts.html";
	$("#frames").attr("src",url); 
	$("#frames").css('height','1500px');
};
function bio(){
	$('.submenu').each(function(){
		$(this).hide();					
	}); 
	$('.subsubmenu').each(function(){
		$(this).hide();					
	});
	url = "bio.html";
	$("#frames").attr("src",url);
	$("#frames").css('height','1500px');
};
function contact(){
	$('.submenu').each(function(){
		$(this).hide();					
	}); 
	$('.subsubmenu').each(function(){
		$(this).hide();					
	});
	url = "contact.html";
	$("#frames").attr("src",url);
	$("#frames").css('height','500px');
};
