/**
 * @author Aurel Kurtula
 */


window.addEvent('domready', domReady);
    function thump(){
var myels = $('example');		
myels.destroy();
}
 function domReady(){
 	$('thump1').addEvent('click', thump1);
	 	$('thump2').addEvent('click', thump2);
	 	$('thump3').addEvent('click', thump3);
	 	$('thump4').addEvent('click', thump4);
	 	$('thump5').addEvent('click', thump5);
	 	$('thump6').addEvent('click', thump6);
	 	$('thump7').addEvent('click', thump7);
	 	$('thump8').addEvent('click', thump8);

	
}



function thump1(e){
e.preventDefault();	
thump();	
new Element('img', {
	'id':'example',
'src':'images/portfolio/pic1.jpg',
'width':'500px'
	}).inject($('imagframe'));
};
function thump2(e){
e.preventDefault();
thump();	
new Element('img', {
	'id':'example',
'src':'images/portfolio/pic2.jpg',
'width':'300px'
	}).inject($('imagframe'));
};
function thump3(e){
e.preventDefault();	
thump();	
new Element('img', {
	'id':'example',
'src':'images/portfolio/pic3.jpg',
'width':'500px'
	}).inject($('imagframe'));
};
function thump4(e){
e.preventDefault();	
thump();	
new Element('img', {
	'id':'example',
'src':'images/portfolio/pic4.jpg',
'width':'181px',
	}).inject($('imagframe'));
};
function thump5(e){
e.preventDefault();
thump();		
new Element('img', {
	'id':'example',
'src':'images/portfolio/pic5.jpg',
'width':'500px'
	}).inject($('imagframe'));
};
function thump6(e){
e.preventDefault();	
thump();	
new Element('img', {
	'id':'example',
'src':'images/portfolio/pic6.jpg',
'width':'500px'
	}).inject($('imagframe'));
};
function thump7(e){
e.preventDefault();	
thump();	
new Element('img', {
	'id':'example',
'src':'images/portfolio/pic7.jpg',
'width':'500px'
	}).inject($('imagframe'));
};
function thump8(e){
e.preventDefault();	
thump();	
new Element('img', {
	'id':'example',
'src':'images/portfolio/pic8.jpg',
'width':'500px'
	}).inject($('imagframe'));
};


