/* CREDITS
 * ----------------------------------------------------------
 * Title:		WEBSITE - Main Javascript file
 * Author:		Tom Claus <tom@inventis.be>
 * Date:		01/09/2009
 * Last Edit:	01/09/2009 [Author]
 * ----------------------------------------------------------
 * Inventis - Web Architects - We design the Web!
 * www.inventis.be
*/


/* 
 * Make Round Corners on images
 */
window.addEvent('domready', function(){
	if ($$('div.image')) {
		$$('div.image').each( function(el){
			new Element ('div', {'class' : 'lefttop'}).injectTop(el);									   
			new Element ('div', {'class' : 'righttop'}).injectTop(el);									   
			new Element ('div', {'class' : 'leftbottom'}).injectTop(el);									   
			new Element ('div', {'class' : 'rightbottom'}).injectTop(el);
		});
	}
	if ($$('div.mapcorners')) {
		$$('div.mapcorners').each( function(el){
			new Element ('div', {'class' : 'lefttop'}).injectTop(el);									   
			new Element ('div', {'class' : 'righttop'}).injectTop(el);									   
			new Element ('div', {'class' : 'leftbottom'}).injectTop(el);									   
			new Element ('div', {'class' : 'rightbottom'}).injectTop(el);
		});
	}
	if ($$('li.image')) {
		$$('li.image').each( function(el){
			new Element ('div', {'class' : 'lefttop'}).injectTop(el);									   
			new Element ('div', {'class' : 'righttop'}).injectTop(el);									   
			new Element ('div', {'class' : 'leftbottom'}).injectTop(el);									   
			new Element ('div', {'class' : 'rightbottom'}).injectTop(el);
		});
	}
	
	
	/* Move Ads on Article Page */
	if($('move-ads') && $('ads-bottom')){		
		$('move-ads').injectBefore($('ads-bottom'));
		$('move-ads').setStyle('display', 'block');
	}
	
	
	
	
});
