function highlightRowPure(eleId) {
    obj = document.getElementById("row-"+eleId);
    obj.style.backgroundColor="#2B383E";
    obj.style.cursor="pointer";
}

function unhighlightRowPure(eleId) {
    obj = document.getElementById("row-"+eleId);
    obj.style.backgroundColor="transparent";
    obj.style.cursor="auto";
}



function showElementById(eleId) {
    $('div#'+eleId).show();
    $('div#'+eleId+'Transparent').show();
    $('div#'+eleId+'Transparent').css({
            'background-color': '#ffffff',
            'opacity': 0.9
        });


}
function hideElementById(eleId) {
    $('div#'+eleId).hide();
    $('div#'+eleId+'Transparent').hide();
    /*  document.getElementById(eleId).style.display = 'none'; */
}




function chbgcolor(eleId){
    document.getElementById(eleId).style.backgroundColor = '#880049';
}

function chbgcolorb(eleId){
    document.getElementById(eleId).style.backgroundColor = 'transparent';
}


/* funkce, ktera jednak vypise mail pres JS, cimz blokne boty a jednak pouzije entity, cimz je to jeste lepsi :) */
function js_protect_email(var1,var2)
{
	var zavinac = "&#64;";
	var mailto = "mai&#108;&#116;&#111;&#58;";
	var e_mail = var1+zavinac+var2;
	var title = "title='"+e_mail+"'";

	document.write("<a href='"+mailto+e_mail+"'"+title+">"+e_mail+"</a>");
}


function pic_window(picfile, title, popis, picwidth, picheight){
	/*picheight += 100;*/
	window.open('pic_window.php?pic='+picfile+'&title='+title+'&popis='+popis+'', 'picwindow', 'width='+picwidth+',height='+picheight+'');
}

function insertFlash(eleId, swfFile, width, height, alt, wmode, flashVars)
{
	directFlashVars = '';
	if(flashVars != '')directFlashVars = '?'+flashVars;

	flashHtml =
	'<!--[if !IE]> -->'+"\n"+
	'<object type="application/x-shockwave-flash" data="'+swfFile+directFlashVars+'" width="'+width+'" height="'+height+'">'+"\n"+
	'<!-- <![endif]-->'+"\n"+
	'<!--[if IE]>'+"\n"+
	'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+width+'" height="'+height+'">'+"\n"+
	'<param name="movie" value="'+swfFile+directFlashVars+'" />'+"\n"+
	'<!--><!---->'+"\n"+
	'<param name="loop" value="true" />'+"\n"+
	'<param name="menu" value="false" />'+"\n"

	if(wmode)flashHtml += '<param name="wmode" value="transparent" />'+"\n";
	if(flashVars != '')flashHtml += '<param name="flashvars" value="'+flashVars+'" />'+"\n";

	flashHtml += alt+"\n";
	flashHtml += '</object>'+"\n";
	flashHtml += '<!-- <![endif]-->'+"\n";

	obj = document.getElementById(eleId);
	obj.innerHTML = flashHtml;
}











function basename(path) {
    return path.replace(/\\/g,'/').replace( /.*\//, '' );
}


$(document).ready(function () {
    $('a.hidelink').click( function() {
       $('#content').hide();
       $('a.showlink').show();
       return false;
    });
    $('a.showlink').click( function() {
       $('#content').show();
       $('a.showlink').hide();       
       return false;
    });
    
});
