function fulltable_top(vanforum) {
if (vanforum == 1)
   {
    document.write("<script type='text/javascript' src='java/forumdetails.js'></script>");
    document.write("<table class=valasztovonal width=100% cellpadding=0 cellspacing=0 border=0><tr><td width=800 valign=top>");
   }
}

function fulltable_bottom(vanforum) {
if (vanforum == 1)
   {
document.write("</td>");
document.write("<td valign=top>");
document.write("<table width=100% cellpadding=0 cellspacing=0 border=0>");
document.write("  <tr>");
document.write("    <td height=100 bgcolor='#3b5998'>");
document.write("      <table width=100% height=100% cellpadding=10 cellspacing=0 border=0>");
document.write("        <tr>");
document.write("          <td bgcolor='#3b5998' valign=middle align=center class=face_fej>");
document.write("            <img src='img/facebook_banner.png' width=170 height=36 border=0><br>");
document.write("            <font class=face_cim><font color='#ffffff'>fórum aktualitás:</font></font>");
document.write("          </td>");
document.write("        </tr>");
document.write("      </table>");
document.write("    </td>");
document.write("  </tr>");
document.write("  <tr><td><br></td></tr>");
document.write("  <tr>");
document.write("    <td>");
document.write("      <table width=100% height=30 cellpadding=7 cellspacing=0 border=1 bgcolor='#f7f7f7'>");
document.write("        <tr>");
document.write("          <td align=left>");
document.write("            <font class=face_cim>Téma: <font color='#366378'><script type='text/javascript'>forum_cim()</script></font></font>");
document.write("          </td>");
document.write("        </tr>");
document.write("      </table>");
document.write("      <script type='text/javascript'>forum_szoveg()</script>");
document.write("      <hr>");
document.write("      <p class=forumszoveg><script type='text/javascript'>forum_link()</script></p>");
document.write("    </td>");
document.write("  </tr>");
document.write("</table>");
document.write("</td>");
document.write("</tr></table>");
   }
}

function facebook(forras) {
document.write("<table width='100%' cellpadding=0 cellspacing=0 border=0><tr>");
document.write("<td width=18 align=right valign=bottom><img src='img/facebook18.gif' width=18 height=18 border=0>&nbsp;</td>");
document.write("<td align=left valign=bottom><a class='linkek' href='http://www.facebook.com/kisallatkorhaz' target='_blank'>Kisállatkórház már a FaceBook-on is!</a></td>");
document.write("<td rowspan=2 width=172><a href='#lapteteje'><img src='img/lapalja.gif' width=172 height=57 border=0></a></td>");
document.write("</tr><tr>");
document.write("<td align=right><img src='img/nyil18.gif' width=18 height=17 border=0>&nbsp;</td>");
document.write("<td align=left><font class=szoveg>");
switch (forras) {
    case 'allato' : {document.write("Tovább a <a class='linkek' href='vedooltas.html' target='_self'>Komplett védőoltási programok</a> oldalra");}; break;
    case 'allatp' : {document.write("Tovább a <a class='linkek' href='tapok.html' target='_self'>Gyógytápok, prémium tápok, kiegészítők</a> oldalra");}; break;
    case 'betegs' : {document.write("Tovább a <a class='linkek' href='kepek.html' target='_self'>Képek</a> oldalra");}; break;
    case 'ebugat' : {document.write("Tovább a <a class='linkek' href='kutyakozmetika.html' target='_self'>Kutyakozmetika</a> oldalra");}; break;
    case 'erdeke' : {document.write("Tovább az <a class='linkek' href='ebugatta.html' target='_self'>Ebugatta</a> oldalra");}; break;
    case 'fogasz' : {document.write("Tovább az <a class='linkek' href='allatpatika.html' target='_self'>Állatpatika</a> oldalra");}; break;
    case 'hirdet' : {document.write("Vissza a <a class='linkek' href='index.html' target='_self'>Rendelőnkről</a> oldalra");}; break;
    case 'husegp' : {document.write("Tovább a <a class='linkek' href='mediamegjelenesek.html' target='_self'>Média megjelenések</a> oldalra");}; break;
    case 'kepek-' : {document.write("Tovább az <a class='linkek' href='erdekesesetek.html' target='_self'>Érdekes esetek</a> oldalra");}; break;
    case 'klinik' : {document.write("<font><b>klinikai</b></font>");}; break;
    case 'kutyak' : {document.write("Tovább a <a class='linkek' href='husegprogram.html' target='_self'>Hűségprogram</a> oldalra");}; break;
    case 'labor-' : {document.write("Tovább az <a class='linkek' href='fogaszat.html' target='_self'>UH-os fogkő-eltávolítás, fogászati kezelések</a> oldalra");}; break;
    case 'linkaj' : {document.write("Tovább az <a class='linkek' href='hirdetesek.html' target='_self'>Akciók, Hirdetések</a> oldalra");}; break;
    case 'mediam' : {document.write("Tovább a <a class='linkek' href='linkajanlo.html' target='_self'>Linkajánló</a> oldalra");}; break;
    case 'mikroc' : {document.write("Tovább a <a class='linkek' href='sebeszet.html' target='_self'>Sebészet, belgyógyászat, szülészet</a> oldalra");}; break;
    case 'ortope' : {document.write("Tovább a <a class='linkek' href='szemeszet.html' target='_self'>Szemészeti rendelés</a> oldalra");}; break;
    case 'rtg---' : {document.write("Tovább az <a class='linkek' href='ultrahang.html' target='_self'>Ultrahang, EKG</a> oldalra");}; break;
    case 'sebesz' : {document.write("Tovább a <a class='linkek' href='ortopedsebeszet.html' target='_self'>Baleseti és ortopéd sebészeti beavatkozások</a> oldalra");}; break;
    case 'start-' : {document.write("Tovább a <a class='linkek' href='allatorvosok.html' target='_self'>Munkatársaink</a> oldalra");}; break;
    case 'szemes' : {document.write("Tovább a <a class='linkek' href='rtg.html' target='_self'>RTG, Digitális RTG</a> oldalra");}; break;
    case 'tapok-' : {document.write("Tovább a <a class='linkek' href='betegszallitas.html' target='_self'>Betegszállítás</a> oldalra");}; break;
    case 'ultrah' : {document.write("Tovább a <a class='linkek' href='labor.html' target='_self'>Teljes körű labor</a> oldalra");}; break;
    case 'vedool' : {document.write("Tovább a <a class='linkek' href='mikrochip.html' target='_self'>Mikrochip beültetés, állatútlevél kiállítás</a> oldalra");}; break;
    default : ''; break;
}
document.write("</font></td></tr></table>");
}

function akcio(ev,ho,nap) {
ma = new Date();				//mai nap
ho = ho - 1;					//(hónap értékek: 0..11)
mill = new Date(ev,ho,nap);			//Lejárat
diff = mill - ma;				//különbség milliseconds-ban
mtg = new String((diff + 86400000) / 86400000);	//különbség napokban string formátumban 86.400.000 millisec = 1 nap. (plusz egy nap = nap végéig)
tizedespont = mtg.indexOf(".");			//tizedes pont keresése
napok = mtg.substring(0,tizedespont);		//egész napok
if ((diff + 86400000) < 0)
   { document.write("<table height=30 cellpadding=7 cellspacing=0 border=1 background='img/menubackground.jpg' class=cimsorx><tr><td align=center>Már lejárt!</td></tr></table>"); }
   else
   { document.write("<table height=30 cellpadding=7 cellspacing=0 border=1 background='img/menubackgroundakcio.gif' class=cimsor><tr><td align=center>Még " + napok + " napig!</td></tr></table>"); }
}

function openWindow_600_600(url) {
url= 'popups/' + url;
x=screen.width;
x-=600;
x/=2;
y=screen.height;
y-=600;
y/=2;
window.open(url, '', ',width=600,height=600,menubar=0,left=' + x + ',top=' + y);
}

function openWindow_450_450(url) {
url= 'popups/' + url;
x=screen.width;
x-=450;
x/=2;
y=screen.height;
y-=450;
y/=2;
window.open(url, '', ',width=450,height=450,menubar=0,left=' + x + ',top=' + y);
}

function openWindow_250_250(url) {
url= 'popups/' + url;
x=screen.width;
x-=250;
x/=2;
y=screen.height;
y-=250;
y/=2;
window.open(url, '', ',width=250,height=250,menubar=0,left=' + x + ',top=' + y);
}

function openWindow_200_200(url) {
url= 'popups/' + url;
x=screen.width;
x-=200;
x/=2;
y=screen.height;
y-=200;
y/=2;
window.open(url, '', ',width=200,height=200,menubar=0,left=' + x + ',top=' + y);
}

function openWindow_800_600(url) {
url= 'popups/' + url;
x=screen.width;
x-=800;
x/=2;
y=screen.height;
y-=600;
y/=2;
window.open(url, '', ',width=800,height=600,menubar=0,left=' + x + ',top=' + y);
}

function openWindow_800_500(url) {
url= 'popups/' + url;
x=screen.width;
x-=800;
x/=2;
y=screen.height;
y-=500;
y/=2;
window.open(url, '', ',width=800,height=500,menubar=0,left=' + x + ',top=' + y);
}

function openWindow_720_540(url) {
url= 'popups/' + url;
x=screen.width;
x-=720;
x/=2;
y=screen.height;
y-=540;
y/=2;
window.open(url, '', ',width=720,height=540,menubar=0,left=' + x + ',top=' + y);
}

function openWindow_700_600(url) {
url= 'popups/' + url;
x=screen.width;
x-=700;
x/=2;
y=screen.height;
y-=600;
y/=2;
window.open(url, '', ',width=700,height=600,menubar=0,left=' + x + ',top=' + y);
}

function openWindow_640_480(url) {
url= 'popups/' + url;
x=screen.width;
x-=640;
x/=2;
y=screen.height;
y-=480;
y/=2;
window.open(url, '', ',width=640,height=480,menubar=0,left=' + x + ',top=' + y);
}

function openWindow_600_450(url) {
url= 'popups/' + url;
x=screen.width;
x-=600;
x/=2;
y=screen.height;
y-=450;
y/=2;
window.open(url, '', ',width=600,height=450,menubar=0,left=' + x + ',top=' + y);
}

function openWindow_600_400(url) {
url= 'popups/' + url;
x=screen.width;
x-=600;
x/=2;
y=screen.height;
y-=400;
y/=2;
window.open(url, '', ',width=600,height=400,menubar=0,left=' + x + ',top=' + y);
}

function openWindow_500_368(url) {
url= 'popups/' + url;
x=screen.width;
x-=500;
x/=2;
y=screen.height;
y-=368;
y/=2;
window.open(url, '', ',width=500,height=368,menubar=0,left=' + x + ',top=' + y);
}

function openWindow_420_315(url) {
url= 'popups/' + url;
x=screen.width;
x-=420;
x/=2;
y=screen.height;
y-=315;
y/=2;
window.open(url, '', ',width=420,height=315,menubar=0,left=' + x + ',top=' + y);
}

function openWindow_420_297(url) {
url= 'popups/' + url;
x=screen.width;
x-=420;
x/=2;
y=screen.height;
y-=297;
y/=2;
window.open(url, '', ',width=420,height=297,menubar=0,left=' + x + ',top=' + y);
}

function openWindow_420_260(url) {
url= 'popups/' + url;
x=screen.width;
x-=420;
x/=2;
y=screen.height;
y-=260;
y/=2;
window.open(url, '', ',width=420,height=260,menubar=0,left=' + x + ',top=' + y);
}

function openWindow_395_275(url) {
url= 'popups/' + url;
x=screen.width;
x-=395;
x/=2;
y=screen.height;
y-=275;
y/=2;
window.open(url, '', ',width=395,height=275,menubar=0,left=' + x + ',top=' + y);
}

function openWindow_390_300(url) {
url= 'popups/' + url;
x=screen.width;
x-=390;
x/=2;
y=screen.height;
y-=300;
y/=2;
window.open(url, '', ',width=390,height=300,menubar=0,left=' + x + ',top=' + y);
}

function openWindow_365_275(url) {
url= 'popups/' + url;
x=screen.width;
x-=365;
x/=2;
y=screen.height;
y-=275;
y/=2;
window.open(url, '', ',width=365,height=275,menubar=0,left=' + x + ',top=' + y);
}

function openWindow_352_288(url) {
url= 'popups/' + url;
x=screen.width;
x-=352;
x/=2;
y=screen.height;
y-=288;
y/=2;
window.open(url, '', ',width=352,height=288,menubar=0,left=' + x + ',top=' + y);
}

function openWindow_310_205(url) {
url= 'popups/' + url;
x=screen.width;
x-=310;
x/=2;
y=screen.height;
y-=205;
y/=2;
window.open(url, '', ',width=310,height=205,menubar=0,left=' + x + ',top=' + y);
}

function openWindow_300_240(url) {
url= 'popups/' + url;
x=screen.width;
x-=300;
x/=2;
y=screen.height;
y-=240;
y/=2;
window.open(url, '', ',width=300,height=240,menubar=0,left=' + x + ',top=' + y);
}

function openWindow_300_200(url) {
url= 'popups/' + url;
x=screen.width;
x-=300;
x/=2;
y=screen.height;
y-=200;
y/=2;
window.open(url, '', ',width=300,height=200,menubar=0,left=' + x + ',top=' + y);
}

function openWindow_285_139(url) {
url= 'popups/' + url;
x=screen.width;
x-=285;
x/=2;
y=screen.height;
y-=139;
y/=2;
window.open(url, '', ',width=285,height=139,menubar=0,left=' + x + ',top=' + y);
}

function openWindow_480_640(url) {
url= 'popups/' + url;
x=screen.width;
x-=480;
x/=2;
y=screen.height;
y-=640;
y/=2;
window.open(url, '', ',width=480,height=640,menubar=0,left=' + x + ',top=' + y);
}

function openWindow_420_485(url) {
url= 'popups/' + url;
x=screen.width;
x-=420;
x/=2;
y=screen.height;
y-=485;
y/=2;
window.open(url, '', ',width=420,height=485,menubar=0,left=' + x + ',top=' + y);
}

function openWindow_170_210(url) {
url= 'popups/' + url;
x=screen.width;
x-=170;
x/=2;
y=screen.height;
y-=210;
y/=2;
window.open(url, '', ',width=170,height=210,menubar=0,left=' + x + ',top=' + y);
}
