function openurl (fileName,w,h,s,door,m) {
	    if (w == null) var w = 500;
            if (h == null) var h = 400;
            if (s == null) var s = 1;
            if (m == null) var m = 0;
            if (door == null) var door = '';
                    
            var t = (screen.height - h) / 2;
	    var l = (screen.width - w) / 2;
   	    var winArgs = 'height=' + h + ',width=' + w + ',top=' + t + ',left=' + l + 'status=no,toolbar=no,menubar=' + m + ',location=no,fullscreen=no,resizable=no,directories=no' + ',scrollbars=' + s;
            //if(x_newWin != null) x_newWin.close();
            //x_newWin = window.open(fileName,'',winArgs);
            window.open(fileName,door,winArgs);
        }

function qn (url) {
	if ( window.confirm ( 'Удалить этот элемент?' ) ) {
		top.location = url;
	}
}

$(function(){
	$('a[rel^=lightbox]').lightBox();
	
	$('table.portfolioTable').mouseover(function(){
		$(this).addClass('portfolioTableHover');
	}).mouseout(function(){
		$(this).removeClass('portfolioTableHover');
	}
	);
	
	$('table.portfolioTable td').click(function(){
		var href = $(this).find('a').attr('href');
		document.location.href = href;
	});
	
	$('.myMainText a').find('img').parent().css('border-bottom','none');
	
});
