function popUp(URL,width,height) { day = new Date(); id = day.getTime(); var winLeft = (screen.width - width) / 2; var winUp = (screen.height - height) / 2; eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+width+',height='+height+',left='+winLeft+',top='+winUp);"); } function contact_by_mail(user, domain, suffix, content) { if (!content) { document.write('' + user + '@' + domain + '.' + suffix + ''); } else { document.write('' + content + ''); } return true; } function flashChangePageTitle(newTitle) { document.title = newTitle; } // Called from page header // checks if url contains # and redirects to new url function flashCheckUrlRedirect() { var urlParts = window.location.href.split("#/"); if (urlParts[1]) { window.location = '/'+urlParts[1]; } } function flashFindPageDimensions() { var winWidth, winHeight, d=document; if (typeof window.innerWidth!='undefined') { winWidth = window.innerWidth; winHeight = window.innerHeight; } else if ( d.documentElement && typeof d.documentElement.clientWidth!='undefined' && d.documentElement.clientWidth!=0 ) { winWidth = d.documentElement.clientWidth; winHeight = d.documentElement.clientHeight; } else if ( d.body && typeof d.body.clientWidth!='undefined') { winWidth = d.body.clientWidth; winHeight = d.body.clientHeight; } var returnArray = new Array(winWidth, winHeight); return returnArray; } var resizeTimeout; var lastGivenHeight; function flashSetObjHeight(objHeight) { lastGivenHeight = objHeight; var obj = document.getElementById('swfBase'); var pageDimensions = flashFindPageDimensions(); if (objHeight contentHeight) { contentHeight = objDiv.scrollTop; } } else if (direction == -1) { //objDiv.scrollTop = currentYPos - objDivHeight; scrollTo = currentYPos - objDivHeight; } timer = setInterval(doScroll, 100, layerId); } } function doScroll(layerId) { if (objDiv.scrollTop < scrollTo) { objDiv.scrollTop += 17; } else if (objDiv.scrollTop > scrollTo) { objDiv.scrollTop -= 17; } if (objDiv.scrollTop <= 0) { clearInterval(timer); document.getElementById('btn_left_inactive').style.display='block'; document.getElementById('btn_left_active').style.display='none'; } else { document.getElementById('btn_left_inactive').style.display='none'; document.getElementById('btn_left_active').style.display='block'; } if (objDiv.scrollTop%objDivHeight == 0 || objDiv.scrollTop < contentHeight) { document.getElementById('btn_right_inactive').style.display='none'; document.getElementById('btn_right_active').style.display='block'; } else { document.getElementById('btn_right_inactive').style.display='block'; document.getElementById('btn_right_active').style.display='none'; } }