isMacOs = (navigator.appVersion.indexOf('Mac')>=0)?true:false; isScreenOk = ((screen.height > 600)&&(screen.width > 800))?true:false; isSafari = (navigator.userAgent.indexOf("Safari")!=-1)?true:false; isIe = (navigator.userAgent.indexOf("MSIE")!=-1)?true:false; isGecko = (navigator.userAgent.indexOf("Gecko")!=-1)?true:false; //////////////////////////////////////// function openPopup(file,name,pWidth,pHeight,scroll) { var scrollbars = ""; var h = ((screen.height)-(pHeight))/2; var w = ((screen.width)-(pWidth))/2; if ( scroll == true ) { scrollbars=",scrollbars" } if (isMacOs) { pWidth = pWidth - 16; pHeight = pHeight - 16; } if ((isMacOs)&&(isSafari)) { pWidth = pWidth + 16; pHeight = pHeight + 16; } eval (name +"= window.open(file,name,'width='+ pWidth +',height='+ pHeight +',top='+h+',resizable=yes,left='+w+''+scrollbars+'');") } ///////////////////////////////////// function MM_findObj(n, d) { //v4.0 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i" + singleHeight) } if(isNaN(singleHeight)){ singleHeight = 0 } maxHeight = Math.max(maxHeight, singleHeight) } return maxHeight } function setHeight(arrayDiv, maxHeight) { for (i = 0 ; i < arrayDiv.length ; ++i) { var curDiv = document.getElementById(arrayDiv[i]) if (curDiv) { singleHeight = curDiv.style.height = maxHeight + "px" } } } ////////////////////////////////////////////////////////////// function posDiv(div,pixel,vis) { if (isMacOs){ if (isSafari){pixel = pixel+8} } document.getElementById(div).style.left = ((document.body.clientWidth/2)+(pixel))+"px" if (vis){document.getElementById(div).style.visibility = "visible"} } ////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////// function getDim(el){ for (var lx=0,ly=0;el!=null; lx+=el.offsetLeft,ly+=el.offsetTop,el=el.offsetParent); return {x:lx,y:ly} } ///////////////////////////////////////////////////////////////// // this function is need to work around // a bug in IE related to element attributes function hasClass(obj) { var result = false; if (obj.getAttributeNode("class") != null) { result = obj.getAttributeNode("class").value; } return result; } function stripeAllTables() { // La tabella deve contenere almeno un TBODY var even = false; var tables = document.getElementsByTagName("table"); if (! tables) { return; } for (var i = 0; i < tables.length; i++) { if(hasClass(tables[i]) =="striped"){ var tbodies = tables[i].getElementsByTagName("tbody"); for (var h = 0; h < tbodies.length; h++) { var trs = tbodies[h].getElementsByTagName("tr"); for (var i = 0; i < trs.length; i++) { if (!hasClass(trs[i]) && ! trs[i].style.backgroundColor) { var tds = trs[i].getElementsByTagName("td"); for (var j = 0; j < tds.length; j++) { var mytd = tds[j]; if (! hasClass(mytd) && ! mytd.style.backgroundColor) { mytd.className += even ? 'even' : ''; } } } even = ! even; } } } } } // function stripe(id) { // La tabella deve contenere almeno un TBODY var even = false; var evenColor = arguments[1] ? arguments[1] : "#fff"; // default color var oddColor = arguments[2] ? arguments[2] : "#eee"; // default color var table = document.getElementById(id); if (! table) { return; } var tbodies = table.getElementsByTagName("tbody"); for (var h = 0; h < tbodies.length; h++) { var trs = tbodies[h].getElementsByTagName("tr"); for (var i = 0; i < trs.length; i++) { if (!hasClass(trs[i]) && ! trs[i].style.backgroundColor) { var tds = trs[i].getElementsByTagName("td"); for (var j = 0; j < tds.length; j++) { var mytd = tds[j]; if (! hasClass(mytd) && ! mytd.style.backgroundColor) { mytd.style.backgroundColor = even ? evenColor : oddColor; } } } even = ! even; } } } // example: stripe('playlist', '#fff', '#edf3fe'); ///////////////////////////////////////////////////////////////// function adjustCols(){ var cols = new Array("menu1","content") var maxHeight = 0 var minHeight = 400 maxHeight = getMaxHeight(cols) if (maxHeight