// // init all variables with the class givin $(document).ready(function() { // debug ("init"); $(".GUIwindow").each( function (i) { gWindowDragElement(this); }); }); // // function gAddEventListener (id, eventname, callback) { var obj = document.getElementById(id); if (obj) obj.addEventListener(eventname, callback); };