// JavaScript Document

// Autorem skryptu jest: SLAWOMIR KOKLOWSKI
// www.kurshtml.boo.pl
// Jesli chcesz wykorzystac ten skrypt na swojej stronie, nie usuwaj tego komentarza!


function auto_iframe(margines)
{
   if (parent != self && document.body && (document.body.scrollHeight || document.body.offsetHeight))
   {
      var undefined;
      if (isNaN(parseInt(margines))) var margines = 20;

      if (parent.document.getElementById) parent.document.getElementById('autoiframe').height = 1;
      else if (parent.document.all) parent.document.all['autoiframe'].height = 1;
      var wysokosc = document.body.scrollHeight != undefined ? document.body.scrollHeight : document.body.offsetHeight;
      if (wysokosc)
      {
        if (parent.document.getElementById)
        {
          parent.document.getElementById('autoiframe').height = wysokosc + margines;
          parent.document.getElementById('autoiframe').scrolling = 'no';
        }
        else if (parent.document.all)
        {
          parent.document.all['autoiframe'].height = wysokosc + margines;
          parent.document.all['autoiframe'].scrolling = 'no';
        }
      }
   }
}
window.onload = auto_iframe;

//koniec

//*************************************************************************************************


//skrypt wyswietlania obrazka w nowym oknie

function fWin(vImgUrl, vImgWidth,  vImgHeight){
   var vWindowWidth = vImgWidth * 1.0 + 20;
   var vWindowHeight =  vImgHeight * 1.0 + 20;
   var vWindowLeft = ( screen.width / 2 ) - ( vWindowWidth / 2);
   var vWindowTop = ( screen.height / 2 ) - ( vWindowHeight / 2);
   var vWindow = window.open("", "", "toolbar=no, menubar=no, location=no, personalbar=no, status=no, resizable=no, scrollbars=no, copyhistory=no, width="+vWindowWidth+", height="+vWindowHeight+", top="+vWindowTop+", left="+vWindowLeft);
   vWindow.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">\n'+
   '<html>\n'+
   '\t<head>\n'+
   '\t\t<title>Rafal Tobiasz Reptiles - RTReptiles.eu </title>\n'+
   '\t\t<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">\n'+
   '\t\t<LINK REL="Stylesheet" TYPE="text/css" HREF="style.css">\n'+
   '\t</head>\n'+
   '\t<body style="text-align:center; margin:0px; padding:5px; overflow:auto;background-color:#000000;">\n'+
   '\t\t<img src="'+vImgUrl+'" border=4>\n'+
   '\t</body>\n'+
   '</html>\n');   
};
    
//koniec

//*************************************************************************************************

//Funkcja fotek w ofercie

function imgShop(vImgUrl, vImgWidth,  vImgHeight, info){
   var vWindowWidth = vImgWidth * 1.0 + 10;
   var vWindowHeight =  vImgHeight * 1.0 + 50;
   var info 
   var vWindowLeft = ( screen.width / 2 ) - ( vWindowWidth / 2);
   var vWindowTop = ( screen.height / 2 ) - ( vWindowHeight / 2);
   var vWindow = window.open("", "", "toolbar=no, menubar=no, location=no, personalbar=no, status=no, resizable=no, scrollbars=no, copyhistory=no, width="+vWindowWidth+", height="+vWindowHeight+", top="+vWindowTop+", left="+vWindowLeft);
   vWindow.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">\n'+
   '<html>\n'+
   '\t<head>\n'+
   '\t\t<title>Snakes-Morphs - Photo Album </title>\n'+
   '\t\t<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">\n'+
   '\t</head>\n'+
   '\t<body style="text-align:center; margin:0px; padding:5px; overflow:auto;background-color:#000000;">\n'+
   '\t\t<font color=lightgreen size=2 face=Verdana>'+info+'</font>\n'+
   '\t\t<img src="'+vImgUrl+'" style="">\n'+
   '\t</body>\n'+
   '</html>\n');   
};

//Koniec

//*************************************************************************************************

