function rowOverEffect(obj) {}
function rowOutEffect(obj) {}
$(document).ready(function() {
	
	$('.infopop').bind('click', function() {
		var check_h = '#' + $(this).attr('rel');
		$(check_h).modal({		
				'onOpen': function(dialog) {
					dialog.overlay.fadeIn('fast', function() {
						dialog.container.fadeIn('fast',function() {
								dialog.container.css({ 'width': '515px', 'margin-left': '-250px', 'height': '450px','top': '30px','padding': '20px'});
								$('h1', dialog.container).css({'font-size': '22px'});
								dialog.data.fadeIn('fast');
							});
						});
				},
				'onClose': function(dialog) { $.modal.close(); }
			});
		return false;
	});
	$('#content .content .first_section .image a').bind('click', function() {
		var imgString;
		var h_img = new Image();
		imgString = $('img', this).attr('src').replace("images/","images/images_big/");
		h_img.src = imgString;
		$.modal('<img src="'+ imgString +'" border="0" />',{
				'onOpen': function(dialog) {
					dialog.overlay.fadeIn('fast', function() {
						dialog.container.css({'height': h_img.height + 'px', 'width': h_img.width + 'px', 'margin-left': '-' + eval(h_img.width / 2) + 'px'});
						dialog.container.fadeIn('fast',function() {
								dialog.data.fadeIn('fast');
							});
						});
				},
				'onClose': function(dialog) { $.modal.close(); }
			});
		return false;
		});

		/* $.ajax({
			'dataType': 'xml',
			'url': './blogg/',
			'data': {'feed':'rss2'},
			'type':'post',
			'error': function() { alert('BLOGG.XML.Error()'); },
			'success': function(xml) {
				$('ul.rss_feed_list li').remove();
				$('channel item', xml).each(function(i) {
					if(i <= 1) {
						$('ul.rss_feed_list').append('<li>' +
						'<div class="blogg_title"><a href="' + $('guid', this).text() + '">' + $('title', this).text() + '</a></div>' +
						'<div class="blogg_desc"><a href="' + $('guid', this).text() + '">' + $('description', this).text().substr(0,120) + '</a></div></li>');
					}
				});
			},
			'complete': function() {}
		}); */
		// 
	});<!-- 
 -->