function getOtherOptions(){ var m1 = document.assets.rlist; mllen = shortdescriptionArray.length; for ( i=0; i 0) return otherOptionsArray[i]+',width='+getWidth()+',height='+getHeight(); } return 'resizable=yes,scrollbars=yes,toolbar=yes,status=yes,location=yes,menubar=yes,directories=yes,width='+getWidth()+',height='+getHeight(); } function getHeight(){ var m1 = document.assets.rlist; mllen = shortdescriptionArray.length; for ( i=0; i -1)) if (filenameArray[i].indexOf(".htm") > -1) return "http://www.christianmedialibrary.com/members/openFile.php?which=http://www.sky-media.com/cml/sw/" + filenameArray[i] + extra; else return "http://www.christianmedialibrary.com/members/openFile.php?which=http://www.sky-media.com/cml/ph/" + filenameArray[i] + extra; else return "http://www.christianmedialibrary.com/members/openFile.php?which=" + filenameArray[i] + extra; return ""; } function getFile(){ var m1 = document.assets.rlist; var extra = ''; var f = ''; mllen = shortdescriptionArray.length; for ( i=0; i -1)) if (f.indexOf(".htm") > -1) return "http://www.sky-media.com/cml/sw/" + f + extra; else return "http://www.sky-media.com/cml/ph/" + f + extra; else { //if ((f.indexOf("http://www.cugn.org") > -1)) // f = f.replace("http://www.cugn.org","http://www.sky-media.com"); return f + extra; } } } return ""; } function helloWorld(){ alert(IDassetArray[0] + "<<<"); } function launchGame(val){ cml_OpenWindow('' + getGameFile(val),'assetView','resizable=yes,scrollbars=yes,toolbar=yes,status=yes,location=yes,menubar=yes,directories=yes,width=790,height=580'); } function processCat(val){ if (val < 1){ if(window.event && window.event.keyCode != 13) return false; } cml_OpenWindow('' + getFile(),'assetView','resizable=yes,scrollbars=yes,toolbar=yes,status=yes,location=yes,menubar=yes,directories=yes,width=790,height=580'); } function getLink(){ var tfile = getFile(); if (tfile != "") if (!(filenameArray[i].indexOf("http://") > -1)) return 'http://www.sky-media.com' + getFile(); else return getFile(); else return ""; } function revealLink(){ var link = getLink(); if (link.length > 0) prompt('Use CTRL-C to copy the link shown below',getLink()); else alert ('You must select an item.'); } function processClick(){ mllen = shortdescriptionArray.length; var m1 = document.assets.rlist; var mimg = document.assets.rimg; var theAnch = document.getElementById('tnText'); theAnch.setAttribute("innerHTML","...WAIT"); mimg.src = "/images/preview.gif"; var mcopy = document.assets.rcopy; var mdesc = document.assets.rdesc; var volImage = document.assets.volImage; var mImage = document.assets.mImage; var volLink = document.getElementById('ecomLink'); var mTmp = ""; mTmp = 'http://www.sky-media.com/cml/tn/'; fTmp = 'http://www.sky-media.com/cml/ph/'; for ( i=0; i<(mllen) ; i++){ if (m1.options[i].selected == true ) { if (thumbnailArray[i].indexOf("http://") > -1) mTmp = ''; if (filenameArray[i].indexOf("http://") > -1) fTmp = ''; mdesc.value = descriptionArray[i] + "\n\n" + copyrightArray[i]; //mcopy.value = copyrightArray[i]; if (thumbnailArray[i].length >0) mimg.src = mTmp + thumbnailArray[i]; else mimg.src = fTmp + filenameArray[i]; //OLD WAY volImage.src = "images/vol" + volumeArray[i] + ".gif"; //OLD WAY mImage.src = "images/purch_related_prods_top.gif"; mImage.src = "images/reviewprod_t_on.gif"; //OLD WAY volLink.setAttribute("href","/cml_prod/cml_cd" + volumeArray[i] + ".htm"); volLink.setAttribute("href","/cml_prod/cml_sub.htm"); // volLink.href.value = "/cml_prod/cml_cd" + volumeArray[i] + ".htm" } } } function processLearnClick(i){ if (shortdescriptionArray[i] != null) { mllen = shortdescriptionArray.length; //var m1 = document.assets.rlist; var mimg = document.assets.rimg; var theAnch = document.getElementById('titleText'); var theDesc = document.getElementById('lDescText'); var theSec = document.getElementById('sectionText'); /* This way doesn't work with old browsers var theRelResources = document.getElementById('relatedResources'); theRelResources.contentWindow.document.body.innerHTML = "
LOADING RELATED RESOURCES
"; theRelResources.src = "/members/lcResources.php?preview=&aid=" + IDassetArray[i]; */ // var theRelResources = document.frames['relatedResources']; var theRelResources = relatedResources; theRelResources.document.body.innerHTML = "
LOADING RELATED RESOURCES
"; theRelResources.document.location.href = "/members/lcResources.php?preview=&aid=" + IDassetArray[i]; //theAnch.setAttribute("innerHTML","...WAIT"); mimg.src = "/images/preview.gif"; //var mcopy = document.assets.rcopy; //var mdesc = document.assets.rdesc; //var volImage = document.assets.volImage; var mImage = document.assets.mImage; //var volLink = document.getElementById('ecomLink'); var mTmp = ""; mTmp = 'http://www.sky-media.com/cml/tn/'; fTmp = 'http://www.sky-media.com/cml/ph/'; if (thumbnailArray[i].indexOf("http://") > -1) mTmp = ''; //mdesc.value = descriptionArray[i] + "\n\n" + copyrightArray[i]; theAnch.setAttribute("innerHTML",shortdescriptionArray[i]); // theDesc.setAttribute("innerHTML",descriptionArray[i]); theSec.setAttribute("innerHTML",sectionArray[i]); theSec.innerHTML=sectionArray[i]; theAnch.innerHTML = shortdescriptionArray[i]; // theDesc.innerHTML = descriptionArray[i]; window.document.getElementById('titleText').innerHTML=shortdescriptionArray[i]; // window.document.getElementById('lDescText').innerHTML=descriptionArray[i]; window.document.getElementById('sectionText').innerHTML=sectionArray[i]; //mcopy.value = copyrightArray[i]; if (thumbnailArray[i].length >0) mimg.src = mTmp + thumbnailArray[i]; // alert(mTmp + thumbnailArray[i]); // mimg.alt = descriptionArray[i]; // theAnch.alt = descriptionArray[i]; //OLD WAY volImage.src = "images/vol" + volumeArray[i] + ".gif"; //OLD WAY mImage.src = "images/purch_related_prods_top.gif"; //mImage.src = "images/reviewprod_t_on.gif"; //OLD WAY volLink.setAttribute("href","/cml_prod/cml_cd" + volumeArray[i] + ".htm"); // volLink.setAttribute("href","/cml_prod/cml_sub.htm"); // volLink.href.value = "/cml_prod/cml_cd" + volumeArray[i] + ".htm" } } function processKidsClick(i){ if (shortdescriptionArray[i] != null) { mllen = shortdescriptionArray.length; //var m1 = window.document.assets.rlist; var mimg = window.document.assets.rimg; var theAnch = window.document.getElementById('titleText'); var theDesc = window.document.getElementById('lDescText'); var theDesc2 = window.document.getElementById('lDescText2'); /* THIS WAY DOESN'T WORK WITH OLD BROWSERS var theRelResources = window.document.getElementById('relatedResources'); theRelResources.contentWindow.document.body.innerHTML = "
LOADING RELATED RESOURCES
"; theRelResources.src = "/members/relatedResources.php?preview=&aid=" + IDassetArray[i]; */ var theRelResources = relatedResources; //var x = document.getElementsByTagName("IFRAME"); // var theRelResources = x.item(0); // var theRelResources = document.frames['relatedResources']; theRelResources.document.body.innerHTML = "
LOADING RELATED RESOURCES
"; theRelResources.document.location.href = "/members/relatedResources.php?preview=&aid=" + IDassetArray[i]; //theAnch.setAttribute("innerHTML","...WAIT"); mimg.src = "/images/preview.gif"; //var mcopy = document.assets.rcopy; //var mdesc = document.assets.rdesc; //var volImage = document.assets.volImage; var mImage = document.assets.mImage; //var volLink = document.getElementById('ecomLink'); var mTmp = ""; mTmp = 'http://www.sky-media.com/cml/tn/'; fTmp = 'http://www.sky-media.com/cml/ph/'; if (thumbnailArray[i].indexOf("http://") > -1) mTmp = ''; if (filenameArray[i].indexOf("http://") > -1) fTmp = ''; //mdesc.value = descriptionArray[i] + "\n\n" + copyrightArray[i]; theAnch.innerHTML = shortdescriptionArray[i]; theDesc.innerHTML = descriptionArray[i]; theDesc2.innerHTML = ''; theAnch.setAttribute("innerHTML",shortdescriptionArray[i]); theDesc.setAttribute("innerHTML",descriptionArray[i]); window.document.getElementById('titleText').innerHTML=shortdescriptionArray[i]; window.document.getElementById('lDescText').innerHTML=descriptionArray[i]; //alert(theDesc.innerHtml); //mcopy.value = copyrightArray[i]; if (thumbnailArray[i].length >0) mimg.src = mTmp + thumbnailArray[i]; else mimg.src = fTmp + filenameArray[i]; // mimg.alt = descriptionArray[i]; // theAnch.alt = descriptionArray[i]; //OLD WAY volImage.src = "images/vol" + volumeArray[i] + ".gif"; //OLD WAY mImage.src = "images/purch_related_prods_top.gif"; //mImage.src = "images/reviewprod_t_on.gif"; //OLD WAY volLink.setAttribute("href","/cml_prod/cml_cd" + volumeArray[i] + ".htm"); // volLink.setAttribute("href","/cml_prod/cml_sub.htm"); // volLink.href.value = "/cml_prod/cml_cd" + volumeArray[i] + ".htm" } } function populateLists(){ var theAnch = document.getElementById('loadLink'); // theAnch.style.visibility = "hidden"; theAnch.setAttribute("innerHTML","Loading Results...") mllen = shortdescriptionArray.length; var m1 = document.assets.rlist; var txt = "Items have Loaded!"; if (theAnch.text != txt) { for(i=0; i<(mllen); i++) m1[i] = new Option(shortdescriptionArray[i]); } if (i > 0) m1[i] = new Option(' '); theAnch.setAttribute("innerHTML","Highlight item to preview.") theAnch.text = txt; }