/*$(document).ready(function(){
	
    $('a[href^=http]:not("[href^=' + document.domain + ']")').click(function() {
        if (this.getAttribute('rel') == "window") {
            window.open(this.href);
            return false;
        }
    });
    
    $('.rounded').corners();

	$('.messageUI').corners();

	$('img.hover').each(function() {
		jQuery('<img>').attr('src', $(this).attr('src').substring(0, $(this).attr('src').search(/(\.[a-z]+)$/)) + '_rollover' + $(this).attr('src').match(/(\.[a-z]+)$/)[0]); 
	});
	
	$('img.hover').hover(function() {
		$(this).attr('src', $(this).attr('src').substring(0, $(this).attr('src').search(/(\.[a-z]+)$/)) + '_rollover' + $(this).attr('src').match(/(\.[a-z]+)$/)[0]);
	}, function() {
		$(this).attr('src', $(this).attr('src').replace(/_rollover\./, '.'));
	});
	
	$('div.title').hover(function() {
		image = $(this).siblings("img:first");
		image.attr('src', image.attr('src').substring(0, image.attr('src').search(/(\.[a-z]+)$/)) + '_rollover' + image.attr('src').match(/(\.[a-z]+)$/)[0]);
	}, function() {
		image = $(this).siblings("img:first");
		image.attr('src', image.attr('src').replace(/_rollover\./, '.'));
	});
		
	$('body').prepend('<div class="tooltip"></div>');
	
	$("[title]").tooltip({
		position: "center right", 
		offset: [-2, 10], 
		opacity: 0.7, 
		tip: '.tooltip'
	}).dynamic({ right: { direction: 'left' } });

    if ($(".jqzoom").length) $(".jqzoom").jqzoom({
        zoomWidth: 150,
        zoomHeight: 150,
		title: false,
        zoomType: 'reverse'
    });
	
});*/

function LoadLayout(){
	if ($('#adverts img')) setTimeout("switch_advert(0, 5000);", 10);
}
