/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Ultimater :: http://ultimiacian.tripod.com/
Add this snippet to the very beginning of your script. */

if(!document.getElementById){
    if(document.all){
        document.getElementById=function(){
            if(typeof document.all[arguments[0]]!="undefined"){
                return document.all[arguments[0]]
            }else return null
        }
    }
}else{
    if(document.layers){
        document.getElementById=function(){
            if(typeof document[arguments[0]]!="undefined"){
                return document[arguments[0]]
            }else return null
        }
    }
}

//Wybrany kraj materiałów
//var selectedCountry;
//selectedCountry = 0;


//Przechwytywanie zdarzenia onKeyUp
var ie = (document.all) ? 1 : 0;
var n  = (document.layers) ? 1 : 0;

if(n){
    window.captureEvents(EVENT.ONKEYUP);
}


// Wszelkie zmienne używane globalbie 
// w pozostałych plikach z funkcjami js

var SELECTED_FEATURES_ARRAY = new Array();  // Zmienna używana w wyszukiwarce zaawansowanej

var ITEM_BEING_SAVED = null;    // Zmienna używana dla produktów, podczas ich wrzucania na liste wybranych

// Współrzędne myszki
// ustawiane przez funkcje indywidualnie
var MOUSECOORDS_X = 0;
var MOUSECOORDS_Y = 0;

/*var SCROLL_X = 0;
var SCROLL_Y = 0;

window.onscroll = function() {
    SCROLL_X = document.body.scrollLeft;
    SCROLL_Y = document.body.scrollTop;
    alert("SCROLL_X: "+document.body.scrollLeft+"\nSCROLL_Y: "+document.body.scrollTop);
}*/
