<!--
var NS = (navigator.appName=="Netscape")?true:false;

function newImage(arg) {
       if (document.images) {
              rslt = new Image();
              rslt.src = arg;
              return rslt;
       }
}

function changeImages() {
       if (document.images && (preloadFlag == true)) {
              for (var i=0; i<changeImages.arguments.length; i+=2) {
                     document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
              }
       }
}

var preloadFlag = false;
function preloadImages(slideshow) {
       if (document.images) {
              //menu_01 = newImage("granite_images/site_parts/arrow.gif");
              preloadFlag = true;
       }
          if(slideshow== 1){   
           runSlideShow();
          }
          if(slideshow== 2){   
           fitPic();
          }
          
}

function photo(fota, x,y, description) {
reszta = "toolbar=no,menubar=no,resizable=yes,width="+x+",height="+y+",left=100,top=100"
msg=window.open("","",reszta);
msg.document.write("<HTML><HEAD><TITLE>No1Granite</title><LINK REL=\"stylesheet\" HREF=\"templates/first/css/main.css\" TYPE=\"text/css\"></HEAD>");
msg.document.write("<A HREF=\"javascript:window.close();\">");
msg.document.write("<body topmargin=\"0\" leftmargin=\"0\" rightmargin=\"0\" bottommargin=\"0\" marginwidth=\"0\" marginheight=\"0\"><DIV ALIGN=\"center\"><IMG SRC=\""+fota+"\" BORDER=\"0\" ALT=\"Click to close window\"></A>");
msg.document.write("<h2>"+description+"</h2></DIV></BODY></HTML>");
focus.msg;
}

function site(stronka, x,y) {
rest = "toolbar=no,menubar=no,resizable=yes,width="+x+",height="+y+",left=100,top=100"
msg=window.open(stronka,"No1Granite",rest);
focus.msg;
}


function fitPic() {
                                   iWidth = document.images['SlideShow'].width +30;
                                iHeight = document.images['SlideShow'].height +150;
                                   window.resizeTo(iWidth, iHeight);
                            self.focus();
                     };
                     

function stone_tool_DoFSCommand(command, args) {
       switch (command) {
              case 'SaveCookie':
                     var now=new Date();
                     var expTime=now.getTime()+30*24*60*60*1000;
                     var expDate=new Date(expTime);
                     document.cookie="stones="+args+"; EXPIRES="+expDate.toGMTString()+"; PATH=/";
                     break;
       }       
}

if (navigator.appName && navigator.appName.indexOf("Microsoft")!=-1 && navigator.userAgent.indexOf("Windows")!=-1) {
       document.writeln('<script language=VBScript\>');
       document.writeln('on error resume next');
       document.writeln('sub flash_FSCommand(ByVal command, ByVal args)');
       document.writeln('call flash_DoFSCommand(command, args)');
       document.writeln('end sub');
       document.write('</script\> \n');
}
                     
                     
                     
// -->
