function GetVideoExt(arData,intID){ if(arData && arData[intID]["object"] != ""){ eVideoObject = document.getElementById("idSlider_003_videoobject"); eVideoObject.innerHTML = arData[intID]["object"]; eContainer = document.getElementById("idSlider_003_video"); eContainer.style.display = "block"; } } function GetVideoInt(strID){ if(strID != ""){ eVideoObject = document.getElementById("idSlider_003_videoobject"); eVideoObject.innerHTML = "
"; ChangeContent("video_nb","idSlider_003_video",1,"media/video/"+strID); eContainer = document.getElementById("idSlider_003_video"); eContainer.style.display = "block"; } } function CloseVideo(){ eVideoObject = document.getElementById("idSlider_003_videoobject"); eVideoObject.innerHTML = ""; eContainer = document.getElementById("idSlider_003_video"); eContainer.style.display = "none"; } var elBO; function GetAlbum(intID,idContainer,arData){ el = document.getElementById(idContainer); if(el && arData.length > 0){ if(elBO){ elB.style.fontWeight = "normal"; elBO.style.color = "#000000"; } elB = document.getElementById(idContainer+"_"+intID+"_b"); if(elB){ elB.style.fontWeight = "bold"; elB.style.color = "#ec5909"; elBO = elB; } if(el.firstChild){ el.removeChild(el.firstChild); } el = new ImageSlider(idContainer,560,180,arData,0); el.ImagesPreload(); el.SliderCreate(); } return el; } function GetAlbumbrowser(intID,arImageBrowserData){ CloseAlbumbrowser(); eContainer = document.getElementById("idSlider_002_album"); if(arImageBrowserData.length > 0){ el = new ImageBrowser("idSlider_002_albumobject",560,300,arImageBrowserData,0); el.ImagesPreload(); el.BrowserCreate(); } eContainer.style.display = "block"; } function CloseAlbumbrowser(){ eAlbumbrowserObject = document.getElementById("idSlider_002_albumobject"); eAlbumbrowserObject.innerHTML = ""; eContainer = document.getElementById("idSlider_002_album"); eContainer.style.display = "none"; } function GetFile(strType,intID,intSID){ document.location.href = "index_dl.php?t="+strType+"&id="+intID+"&sid="+intSID; //window.open("index_dl.php?t="+strType+"&id="+intID+"&sid="+intSID); } // Menu Switch function MPOverOn(id){ el = document.getElementById("mp_bgrnd_a"+id); if(el){ el.style.backgroundPosition = "0 0"; } } function MPOverOff(id){ el = document.getElementById("mp_bgrnd_a"+id); if(el){ el.style.backgroundPosition = "0 -40px"; } } // Print Window var objWindowPrint; function OpenWindowPrint(PageID,arData,winWidth,winHeight){ winWidth = 680; if(winWidth == 0 || winWidth > screen.width){ winWidth=screen.width-20; } if(winHeight == 0 || winHeight > screen.height){ winHeight=screen.height-100; } var posY=(screen.width/2)-(winWidth/2); var posX=(screen.height/2)-(winHeight/2); woPageTpl = "index_print.php?PageID="+PageID; woPageName = "PrintView"; if(objWindowPrint){ if(!objWindowPrint.closed){ objWindowPrint.close(); } } objWindowPrint = window.open(woPageTpl,woPageName,"left="+posX+",top="+posY+",width="+winWidth+",height="+winHeight+",location=no,menubar=yes,status=no,toolbar=no,resizable=yes,scrollbars=yes"); objWindowPrint.focus(); }