﻿<!-- hide from JavaScript-challenged browsers

function OpenWindowNajlepsi(url) {
  popupWin = window.open(url, '', 'toolbar=no,width=370,height=460,resizable=0,scrollbars=yes,left=0,top=0')
}
function OpenWindowAktywni(url) {
  popupWin = window.open(url, '', 'toolbar=no,width=367,height=460,resizable=0,scrollbars=yes,left=0,top=0')
}
function OpenWindowAbonent(url) {
  popupWin = window.open(url, '', 'toolbar=no,width=620,height=460,resizable=0,scrollbars=no,left=0,top=0')
}
function OpenWindowAbonent2(url) {
  popupWin = window.open(url, '', 'toolbar=yes,width=1000,height=800,resizable=0,scrollbars=no,left=0,top=0')
}
function OpenWindowKatFor(url) {
  popupWin = window.open(url, '', 'toolbar=no,width=620,height=460,resizable=0,scrollbars=yes,left=0,top=0')
}
function openWindowoplata(url) {
  popupWin = window.open(url, '', 'toolbar=no,width=640,height=480,resizable=0,scrollbars=yes,left=0,top=0')
}
function openWindowk(url) {
  popupWin = window.open(url, '', 'toolbar=no,width=520,height=550,resizable=0,scrollbars=no,left=0,top=0')
}
function openWindowmod(url) {
  popupWin = window.open(url, '', 'toolbar=no,width=300,height=340,resizable=0,scrollbars=no,left=40,top=40')
}
function openWindow(url) {
  popupWin = window.open(url, '', 'toolbar=no,width=500,height=450,resizable=0,scrollbars=no,left=0,top=0')
}
function win1(url) {
  popupWin = window.open(url, '', 'toolbar=no,width=600,height=600,resizable=0,scrollbars=yes,left=0,top=0')
}
function pd(url) {
  popupWin = window.open('../../profilekat.asp?mode=display&id='+url, '', 'toolbar=no,width=600,height=600,resizable=0,scrollbars=yes,left=0,top=0')
}
function openWindowLogowanie(url) {
  popupWin = window.open(url, 'Logowanie', 'resizable=yes, toolbar=yes, location=yes, directories=yes, status=yes, menubar=yes, scrollbars=yes,width=800,height=550,left=0,top=0')
}
function OpenWindowGlos(url) {
  popupWin = window.open(url, '', 'toolbar=no,width=200,height=100,resizable=0,scrollbars=no,left=100,top=100')
}
function OO(url) {
  popupWin = window.open('http://www.sfd.pl/sklep/opisb.asp?produkt='+url, '', 'toolbar=no,width=640,height=200,resizable=0,scrollbars=yes,left=0,top=0')
}
function DispTopicS (strtop) {
	var winM = 983
	var titleal = (parseInt(winM/30)+((winM-750)/12));
	var titletext = strtop;
	var titlel;
	titlel = titletext.length;
	if (titlel>titleal)
	{
	document.write (titletext.substring(0,titleal)+'...');
	}
	else
	{
	document.write (titletext.substring(0,titleal));
	}
}
function strony(ile,aktual) {
	document.write('<select style="font-size: 10px; font-family: Verdana" SIZE=1 ONCHANGE="makeLinkTo(this);">');
	for (var o=1; o<ile+1; o++) {
		if (o==aktual)
			document.write('<option selected value='+o+'>'+o+'</option>');
		else {
			document.write('<option value='+o+'>'+o+'</option>');
		};
	};
	document.write('</select>');
}


function setCookie(name, value, expires, path, domain, secure) {
  var curCookie = name + "=" + escape(value) +
      ((expires) ? "; expires=" + expires.toGMTString() : "") +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      ((secure) ? "; secure" : "");
  document.cookie = curCookie;
}

function getCookie(name) {
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf("; " + prefix);
  if (begin == -1) {
    begin = dc.indexOf(prefix);
    if (begin != 0) return null;
  } else
    begin += 2;
  var end = document.cookie.indexOf(";", begin);
  if (end == -1)
    end = dc.length;
  return unescape(dc.substring(begin + prefix.length, end));
}

function deleteCookie(name, path, domain) {
  if (getCookie(name)) {
    document.cookie = name + "=" +
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    "; expires=Thu, 01-Jan-70 00:00:01 GMT";
  }
}

function fixDate(date) {
  var base = new Date(0);
  var skew = base.getTime();
  if (skew > 0)
    date.setTime(date.getTime() - skew);
}

// DT (topicid,image,topic,lodp,ida,namea,ocena,data,ido,nameo) {
// }


/******************************************
* Popup Box- By Jim Silver @ jimsilver47@yahoo.com
* Visit http://www.dynamicdrive.com/ for full source code
* This notice must stay intact for use
******************************************/

var ns4=document.layers
var ie4=document.all
var ns6=document.getElementById&&!document.all

//drag drop function for NS 4////
/////////////////////////////////

var dragswitch=0
var nsx
var nsy
var nstemp

function drag_dropns(name){
if (!ns4)
return
temp=eval(name)
temp.captureEvents(Event.MOUSEDOWN | Event.MOUSEUP)
temp.onmousedown=gons
temp.onmousemove=dragns
temp.onmouseup=stopns
}

function gons(e){
temp.captureEvents(Event.MOUSEMOVE)
nsx=e.x
nsy=e.y
}
function dragns(e){
if (dragswitch==1){
temp.moveBy(e.x-nsx,e.y-nsy)
return false
}
}

function stopns(){
temp.releaseEvents(Event.MOUSEMOVE)
}

//drag drop function for ie4+ and NS6////
/////////////////////////////////




function drag_drop(e){
if (ie4&&dragapproved){
crossobj.style.left=tempx+event.clientX-offsetx
crossobj.style.top=tempy+event.clientY-offsety
return false
}
else if (ns6&&dragapproved){
crossobj.style.left=tempx+e.clientX-offsetx+"px"
crossobj.style.top=tempy+e.clientY-offsety+"px"
return false
}
}

function initializedrag(e){
crossobj=ns6? document.getElementById("showimage") : document.all.showimage
var firedobj=ns6? e.target : event.srcElement
var topelement=ns6? "html" : document.compatMode && document.compatMode!="BackCompat"? "documentElement" : "body"
while (firedobj.tagName!=topelement.toUpperCase() && firedobj.id!="dragbar"){
firedobj=ns6? firedobj.parentNode : firedobj.parentElement
}

if (firedobj.id=="dragbar"){
offsetx=ie4? event.clientX : e.clientX
offsety=ie4? event.clientY : e.clientY

tempx=parseInt(crossobj.style.left)
tempy=parseInt(crossobj.style.top)

dragapproved=true
document.onmousemove=drag_drop
}
}
document.onmouseup=new Function("dragapproved=false")

////drag drop functions end here//////

function hidebox(){
crossobj=ns6? document.getElementById("showimage") : document.all.showimage
if (ie4||ns6)
crossobj.style.visibility="hidden"
else if (ns4)
document.showimage.visibility="hide"
}

// done hiding -->

