function Foto(FileName)
{
        var wnd = window.open("", "newWindow", "alwaysraised=yes,dependent=yes,hotkeys=no,location=no,menubar=no,resizable=yes,scrollbars=auto,status=no,titlebar=yes,width=640,height=480");
        wnd.document.open("text/html", "replace");
        wnd.document.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">');
        wnd.document.writeln("<HTML>");
        wnd.document.writeln("<HEAD>");
        wnd.document.writeln("<TITLE>trwauto.cz >> foto</TITLE>");
        wnd.document.writeln("<SCRIPT>");
        wnd.document.writeln("function setSize()");
        wnd.document.writeln("{");
        wnd.document.writeln("var img = window.document.images[0];");
        wnd.document.writeln("window.resizeTo(img.width+10, img.height+30);");
        wnd.document.writeln("}");
        wnd.document.writeln("<\/SCRIPT>");
  

        wnd.document.writeln('<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">');
        wnd.document.writeln('<meta name="resource-type" content="document">');
        wnd.document.writeln("</HEAD>");
        wnd.document.writeln('<BODY bgcolor="white" marginheight=7 marginwidth=7 topmargin=0 leftmargin=0 text="#FFFFFF" link="#FFFF00" vlink="#FFFF00" alink="#00FF00" onBlur="window.close()" onLoad="setSize();">');
        wnd.document.writeln('<IMG SRC="'+FileName+'" BORDER=0>');
        wnd.document.writeln("</BODY>");
        wnd.document.writeln("</HTML>");
        wnd.document.close();
        wnd.onBlur = "window.close();";
        wnd.focus();
}

function MM_jumpMenu(targ,selObj,restore){
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function setPointer(field, action, defaultColor, pointerColor, markColor) {
var newColor
var currentColor

currentColor=field.style.backgroundColor;

if (action == 'over' && currentColor.toLowerCase() == defaultColor.toLowerCase()) {
newColor=pointerColor; }

if (action == 'out' && currentColor.toLowerCase() == pointerColor.toLowerCase()) {
newColor=defaultColor; }

if (action == 'click' && currentColor.toLowerCase() == defaultColor.toLowerCase()) {
newColor=markColor; }
if (action == 'click' && currentColor.toLowerCase() == pointerColor.toLowerCase()) {
newColor=markColor; }
if (action == 'click' && currentColor.toLowerCase() == markColor.toLowerCase()) {
newColor=pointerColor; }

if (newColor) {
field.style.backgroundColor=newColor; }
}


