<!-- Rainbow Skrypt  -->

function createHexArray(n) {
this.length = n;
for (var i = 1; i <= n; i++)
this[i] = i - 1;

this[11] = "A";
this[12] = "B";
this[13] = "C";
this[14] = "D";
this[15] = "E";
this[16] = "F";
return this;
}
hx = new createHexArray(16);

function convertToHex(x) {
if (x < 17) x = 16;
var high = x / 16;
var s = high+"";
s = s.substring(0, 2);
high = parseInt(s, 10);
var left = hx[high + 1];
var low = x - high * 16;
if (low < 1) low = 1;
s = low + "";
s = s.substring(0, 2);
low = parseInt(s, 10);
var right = hx[low + 1];
var string = left + "" + right;
return string;
}

function makeRainbow(text) {
text = text.substring(0, text.length);
color_d1 = 255;
mul = color_d1 / text.length;
for(var i = 0; i < text.length; i++) {
color_d1 = 255*Math.sin(i / (text.length / 3));
color_h1 = convertToHex(color_d1);
color_d2 = mul * i;
color_h2 = convertToHex(color_d2);

k = text.length;
j = k - i;
if (j < 0) j = 0;
color_d3 = mul * j;
color_h3 = convertToHex(color_d3);

document.write("<FONT COLOR=\"#" + color_h3 + color_h1 + color_h2 + "\">" + text.substring(i, i + 1) + "</FONT>");
   }
}

<!-- Wybierz Midi Skrypt -->

function wybierz(s)
{
window.open(s.options[s.selectedIndex].value,'MMB','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=1,left=1,width=1,height=1');
}

<!-- Wybierz strone Skrypt -->

function selecturl(s)
{
var gourl = s.options[s.selectedIndex].value;
location.href = gourl;
}

<!-- Otwórz okienko Skrypt -->

function displayWindow(url, width, height) 
{
        var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no' );
}

<!-- Randomlogo Skrypt -->

function RandomD(rangeD){
day = new Date();
z = day.getTime();
y = (z - (parseInt(z/1000,10) * 1000))/10;
numD = parseInt(y/100*rangeD,10);
return(numD)
}
function RandomE(rangeE){
	today = new Date();
	numE = today.getTime();
	numE = Math.abs(Math.round(Math.sin(numE*3)*38111) % rangeE);
	return(numE)
}
function RandomF(rangeF){
	numF = Math.floor(Math.random() * rangeF);
	return(numF)
}
function losuj3()
{
numD=0; numE=0; numF=0;
while (numD==numE)
{
RandomD(10);
RandomE(10);
if (numD==numE) continue;
}
RandomF(10);
while ((numD==numF) || (numE==numF))
{
RandomF(10);
if ((numD==numF) || (numE==numF)) continue;
}
return(numD, numE, numF)
}

wab1="<img src='/unifile/log01.gif' alt=''>";
wab2="<img src='/unifile/log02.gif' alt=''>";
wab3="<img src='/unifile/log03.gif' alt=''>";
wab4="<img src='/unifile/log04.gif' alt=''>";
wab5="<img src='/unifile/log05.gif' alt=''>";
wab6="<img src='/unifile/log06.gif' alt=''>";
wab7="<img src='/unifile/log07.gif' alt=''>";
wab8="<img src='/unifile/log08.gif' alt=''>";
wab9="<img src='/unifile/log09.gif' alt=''>";
wab0="<img src='/unifile/log10.gif' alt=''>";

<!-- stopka Skrypt -->

function subsy(wpis,pzc)
{document.write ('<span style="position: absolute; top: -2px; left: 0px; float: left; width: '+pzc+'; color: #FFFFEC;">'+wpis);
document.write ('</span><span style="position: absolute; top: 2px; left: 0px; float: left; width: '+pzc+'; color: #FFFFEC;">'+wpis);
document.write ('</span><span style="position: absolute; top: 0px; left: -2px; float: left; width: '+pzc+'; color: #FFFFEC;">'+wpis);
document.write ('</span><span style="position: absolute; top: 0px; left: 2px; float: left; width: '+pzc+'; color: #FFFFEC;">'+wpis);
document.write ('</span><span style="position: absolute; top: -1px; left: -1px; float: left; width: '+pzc+'; color: #FFFFEC;">'+wpis);
document.write ('</span><span style="position: absolute; top: -1px; left: 1px; float: left; width: '+pzc+'; color: #FFFFEC;">'+wpis);
document.write ('</span><span style="position: absolute; top: 1px; left: -1px; float: left; width: '+pzc+'; color: #FFFFEC;">'+wpis);
document.write ('</span><span style="position: absolute; top: 1px; left: 1px; float: left; width: '+pzc+'; color: #FFFFEC;">'+wpis);
document.write ('</span><span style="position: absolute; top: -1px; left: 0px; float: left; width: '+pzc+'; color: #F5F5DC;">'+wpis);
document.write ('</span><span style="position: absolute; top: 1px; left: 0px; float: left; width: '+pzc+'; color: #F5F5DC;">'+wpis);
document.write ('</span><span style="position: absolute; top: 0px; left: -1px; float: left; width: '+pzc+'; color: #F5F5DC;">'+wpis);
document.write ('</span><span style="position: absolute; top: 0px; left: 1px; float: left; width: '+pzc+'; color: #F5F5DC;">'+wpis);
document.write ('</span><span style="position: absolute; top: 0px; left: 0px; float: left; width: '+pzc+';">'+wpis);
document.write ('</span>'+wpis)}

function stopka()
{
email1=('mrdarek' + '@' + 'go2.pl');
email2=('cyco4' + '@' + 'o2.pl');
stmn1=('<span class="stplink" onClick="javascript:window.location=\'/\'">start</span> - <span class=stplink onClick="javascript:window.location=\'http://www.dizzy.pl/serwis/news/news.shtml\'" >serwis</span> - <span class=stplink onClick="javascript:window.location=\'http://www.dizzy.pl/gry/gry/gry.shtml\'">gry z dizzim</span> - <span class=stplink onClick="javascript:window.location=\'http://www.dizzy.pl/emulatory/emulacje_nes.shtml\'">emulatory</span> - <span class=stplink onClick="javascript:window.location=\'http://www.gry-online.dizzy.pl\'">gry online</span>');
stmn2=(' - <span class=stplink onClick="javascript:window.location=\'http://www.dizzy.pl/skarbiec/ikony/ikony.shtml\'">skarbiec</span> - <span class=stplink onClick="javascript:window.location=\'http://www.dizzy.pl/encyklop/dizzyhero/dizzyhero.shtml\'">encyklopedia</span><br> - <span class=stplink onClick="javascript:window.location=\'http://www.forum.dizzy.pl\'">forum</span> - <span class=stplink onClick="javascript:window.location=\'http://www.dizzy.pl/banery/banery.shtml\'">reklama</span>');
stmn3=(' - kontakty: <span class=stplink onClick="javascript:window.location=\'mailto:'+email1+'\'">admin(mrdarek)</span> -- <span class=stplink onClick="javascript:window.location=\'mailto:'+email2+'\'">cyco</span> ');
document.write ('<table border="0" cellspacing="0" cellpadding="0"><tr><td align="center" class="stpgora">');
document.write ('<div style="position: relative; width: 710;">');
subsy(stmn1 + stmn2 + stmn3,710);
document.write ('</div> </td></tr>');
document.write ('<tr><td bgcolor="#35A184" align="center" class="stpdol">Świat Dizzy - serwis graczy w Dizzy. <a class="stpdol" style="text-decoration: underline" href="http://www.olivertwins.com">Wykorzystane materiały są własnością Codemasters i Oliver Twins.</a> <br>');
document.write ('Koncepcja i prowadzenie © 2001 - 2012 mrdarek - wszystkie prawa zastrzeżone.</td></tr>');
document.write ('<TR><TD style="padding-top: 2px">');
document.write ('<A HREF="http://www.gex.pl"><IMG SRC="http://www.dizzy.pl/unifile/gexspon.gif" width="710" height="38" border="0" alt="zamów serwer wirtualny!"></A>');
document.write ('</TD></TR></TABLE>');
}

<!-- naglowek Skrypt -->

function nagla()
{
document.write ('<table border="0" cellspacing="0" cellpadding="0"><tr>');
document.write ('<td width="262" height="162" style="background-image: url(/unifile/bs1.png)">');
document.write ('<a href="http://www.dizzy.pl"><img src="/unifile/bs1.png" width="262" height="162" alt="Świat Dizzy - start" border="0"></a></td>');
document.write ('<td width="472" height="162" style="background-image: url(/unifile/bs0.png)">');
document.write ('<table border="0" cellspacing="0" cellpadding="0"><tr>');
document.write ('<td colspan="2" width="472" height="21" align="center" valign="middle" class="extrinfo">');
npg=('Serwis Graczy w Dizzy. Zabawa, Humor, Przyjemność');
document.write ('<div style="position: relative; width: 472;">');
subsy(npg,472);
document.write ('</div>');
document.write ('</td></tr>');
document.write ('<tr><td colspan="2" height="90" align="center" valign="middle" style="background-image: url(/unifile/bs2b.png); background-repeat: no-repeat">');
}
function naglb()
{
document.write ('</td></tr>');
document.write ('<tr><td height="51" width="18" style="background-image: url(/unifile/bs2c.png)"></td>');
document.write ('<td height="51" style="background-image: url(/unifile/bs3.png)"><table border="0" cellspacing="0" cellpadding="0"><tr>');
document.write ('<td align="left" valign="middle" width="45" height="51">');
document.write ('<a href="http://www.BlitzGames.com">');
document.write ('<img src="/unifile/blitz1.gif" width="45" height="34"');
document.write (' alt="Zerknij na stronę firmy w której pracują obecnie programiści Dizzy!" border="0">');
document.write ('</a></td><td align="left" valign="middle" width="163">');
document.write ('<a href="http://www.BlitzGames.com">');
document.write ('<img src="/unifile/blitz2.jpg" width="163" height="34"');
document.write (' alt="Zerknij na stronę firmy w której pracują obecnie programiści Dizzy!" border="0">');
document.write ('</a></td><td width="246" align="center" valign="bottom">');
losuj3();
document.write (eval('wab'+numD));
document.write ('&nbsp');
document.write (eval('wab'+numE));
document.write ('&nbsp');
document.write (eval('wab'+numF));
document.write ('</td></tr></table></td></tr></table></td></tr></table>');
}

<!-- tlo w srodku Skrypt -->

function tlost()
{
document.write ('<table width=500 cellspacing=0 cellpadding=0 border=0><tr>');
document.write ('<td style="background-image: url(/unifile/rlg.png); height: 20px; width: 20px"></td>');
document.write ('<td style="background-image: url(/unifile/sgg.png)"></td>');
document.write ('<td style="background-image: url(/unifile/rpg.png)"></td></tr>');
document.write ('<tr><td style="background-image: url(/unifile/sll.png)"></td>');
document.write ('<td style="background-color: #F5DEB3">');
}
function tlokn()
{
document.write ('</td>');
document.write ('<td style="background-image: url(/unifile/spp.png)"></td></tr>');
document.write ('<tr><td style="background-image: url(/unifile/rld.png)"></td>');
document.write ('<td style="background-image: url(/unifile/sdd.png)"></td>');
document.write ('<td style="background-image: url(/unifile/rpd.png); height: 20px; width: 20px"></td>');
document.write ('</tr></table>');
}

<!-- obsluga cookie -->

function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name)  {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen)  {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break; 
}
return null;
}
function SetCookie (name, value)  {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}

