jQuery.noConflict();
jQuery(function($){
	
	/* INPUT_LABELS: */
		$.each($('#left .txtInput'), function(){
			$(this).attr('alt', $(this).val())
			.focus(function(){
				if( $(this).val()==$(this).attr('alt') ){
					$(this).val('');
				}
			})
			.blur(function(){
				if( $(this).val()=='' ){
					$(this).val( $(this).attr('alt') );
				}
			});
		});
	/* :INPUT_LABELS */
	
});

function openWin(href, width, height) {
	width = (width ? width : 500);
	height = (height ? height : 400);
	pop = window.open(href, 'details', 'width='+width+',height='+height+',scrollbars=yes,menubar=no,status=no,toolbar=no,resizable=yes');
	pop.focus();
}
function openWin2(href, width, height) {
	width = (width ? width : 800);
	height = (height ? height : 600);
	window.open(href,'Land','width='+width+',height='+height+',directories=yes,scrollbars=yes,menubar=yes,status=yes,toolbar=yes,resizable=yes,location=yes');
}


function co_popup(href) {
    var $ = jQuery, co_html = '<div id="co_wrap"><div id="co_box"> <div id="co_close"/><div id="co_title"/><div id="co_frame" /> </div></div>';

    if ( $("#co_wrap").size() == 0 ) {
        $(co_html).hide().appendTo("body");
        $("#co_close").click(function() {
            $("#co_wrap").fadeOut(400);
        });
    }
    
    $("#co_box").hide();
    $("#co_wrap").fadeIn(400);

    $.get(href, function(res) {
        $("#co_title").text(res.match(/<title>(.*?)<\/title>/)[1]);
        $("#co_frame").html($("#main", res).html());
        $("#co_box").fadeIn(400);
    }, "html");

    return false;
};

