/* ///////////////////////////////////////////////////////////////////////////////////////////////////////////// These cookie functions are located in top becose lang variable needs them COOKIE HANDLER Author: Jason Levine Created: 2004-02-10 This section contains all the functions from the cookie handler page. ///////////////////////////////////////////////////////////////////////////////////////////////////////////// */ /* ///////////////////////////////////////////////////////////////////////////////////////////////////////////// makeCookieName(strName) Author: Jason Levine / Indeo Created: 2008-11-03 Requires: strReplicaID set in global variables This function will add an underscore and database replica id to the cookie name if it is not already there. ////////////////////////////////////////////////////////////////////////////////////////////////////////// */ function makeCookieName(strName) { var strCookieName = (strName.indexOf('_' + strReplicaID) != (strName.length - 17)) ? strName + '_' + strReplicaID : strName; return strCookieName; } ///////////////////////////////////////////////////////////////////////////////////////////////////////////// // setCookie(strName, value, expires) // Author: Jason Levine // Created: 2004-12-27 // Modified: 2008-11-03 Jason Levine / Indeo Added replica id addition to Cookie name // // This function will set a cookie for the current document. //This function is needed in changeLanguage() function (MP) ///////////////////////////////////////////////////////////////////////////////////////////////////////////// function setCookie(strName, value, expires) { var argv = setCookie.arguments; var argc = setCookie.arguments.length; var expires = (argc > 2) ? argv[2] : null; var path = (argc > 3) ? argv[3] : null; var domain = (argc > 4) ? argv[4] : null; var secure = (argc > 5) ? argv[5] : false; var strCookieName = makeCookieName(strName); var str = strCookieName + "=" + escape(value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString()))+ ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); document.cookie = str; } ///////////////////////////////////////////////////////////////////////////////////////////////////////////// // getCookieValue(strName) // Author: Jason Levine // Created: 2004-12-27 // Modified: 2008-11-03 Jason Levine / Indeo Added makeCookieName(strName) // // This function will return the value associated with the name-value // pair of strName. // This function requires the arrCookie global variable to be set. // Returns the empty string ('') on all encountered errors ///////////////////////////////////////////////////////////////////////////////////////////////////////////// function getCookieValue(strName) { var strCookieName = makeCookieName(strName); var arrCookie = document.cookie.split('; '); for (var i=0; i < arrCookie.length; i++) { // a name/value pair is separated by an equal sign arrCookie[i] = arrCookie[i].split("="); if(arrCookie[i][0] == strCookieName) { return unescape(arrCookie[i][1]); } } // a cookie with the requested name does not exist return null; } ///////////////////////////////////////////////////////////////////////////////////////////////////////////// // delCookie(strName, value, expires) // Author: Jason Levine // Created: 2004-12-27 // Modified: 2008-11-03 Jason Levine / Indeo Added makeCookieName(strName) // // This function will delete a cookie from the current document by // forcing the cookie to expire. ///////////////////////////////////////////////////////////////////////////////////////////////////////////// function delCookie(strName) { var strCookieName = makeCookieName(strName); setCookie(strName, "", new Date() ); } /* ///////////////////////////////////////////////////////////////////////////////////////////////////////////// GLOBAL VARIABLES This section contains variables used globally in the web ui ///////////////////////////////////////////////////////////////////////////////////////////////////////////// */ var db = "/tamrocom.nsf/"; var username = "Anonymous"; var userroles = "$$WebClient"; var mailDomain = "tamro.com"; var logDb = "http://www.tamro.com/userstattamrocom.nsf"; var fqdn = "www.tamro.com"; var strReplicaID = 'C2257420002999E7'; //Used to uniquely set the cookie for this application var strCookieNameRoot = 'NetPublisher'; lang="1"; /* ///////////////////////////////////////////////////////////////////////////////////////////////////////////// LANGUAGE SETTINGS Author: Mikko Punamäki / Indeo Created: This section contains all the variable for the web ui language settings ///////////////////////////////////////////////////////////////////////////////////////////////////////////// */ langCookie = getCookieValue(makeCookieName(strCookieNameRoot)); if((langCookie==null) || (langCookie=='')) { lang='1'; setCookie(makeCookieName(strCookieNameRoot),lang); } else { lang=langCookie; } // Languages var lngPopularLinks = new Array("Most popular links","Most popular links","Suosituimmat sivut","Suosituimmat sivut","Most popular links","Most popular links","Most popular links","Most popular links","Most popular links","Most popular links") var voteHistoryAnswered = new Array("Total number of answers: ","Total number of answers: ","Tähän äänestykseen vastasi: ","Tähän äänestykseen vastasi: ","numero balsošanā piedalījās n cilvēki: ","numero balsošanā piedalījās n cilvēki: ","Total number of answers: ","Total number of answers: ","Total number of answers: ","Total number of answers: "); var respondents = new Array("respondents","respondents","vastaajia","vastaajia","respondenti","respondenti","respondents","respondents","respondents","respondents"); var recentDocuments = new Array("Recent documents","Recent documents","Viimeisimmät muutokset","Viimeisimmät muutokset","Recent documents","Recent documents","Recent documents","Recent documents","Recent documents","Recent documents"); var earlierQuestions = new Array("Earlier questions","Earlier questions","Aikaisemmat vastaukset","Aikaisemmat vastaukset","Iepriekšējie jautājumi","Iepriekšējie jautājumi","Earlier questions","Earlier questions","Earlier questions","Earlier questions"); var morePic = new Array('boxbgrighteng.gif','boxbgrighteng.gif','boxbgrightfi.gif','boxbgrightfi.gif','boxbgrightlat.gif','boxbgrightlat.gif','boxbgrightlit.gif','boxbgrightlit.gif','boxbgrightest.gif','boxbgrightest.gif'); var dailyQuestion = new Array('Daily Question','Daily Question','Päivän kysymys','Päivän kysymys','Dienas jautājums','Dienas jautājums','Daily Question','Daily Question','Daily Question','Daily Question'); var homepagetitle = new Array('Homepage','Homepage','Etusivu','Etusivu','Mājas lapa','Mājas lapa','Svetainė','Svetainė','Kodulehekülg','Kodulehekülg'); var searchtitle = new Array('Search:','Search:','Hae:','Hae:','Meklēšana:','Meklēšana:','Paieška:','Paieška:','Otsing:','Otsing:'); var lastEdited = new Array('Last edited','Last edited','Viimeksi muutettu','Viimeksi muutettu','Pēdējo reizi','Pēdējo reizi','Atnaujinta','Atnaujinta','Viimasena muudetud','Viimasena muudetud'); var company = new Array('','','','','','','','','',''); var legal = new Array("Legal","Legal","Legal","Legal","Legāls","Legāls","Teisės aktai","Teisės aktai","Legaalne","Legaalne"); var returnArray = new Array("Return","Return","Palaa","Palaa","Atpakaļ","Atpakaļ","Grįžti","Grįžti","Tagasi","Tagasi"); var topic = new Array("Topic","Topic","Aihe","Aihe","Temats","Temats","Tema","Tema","Teema","Teema"); var langNotepad = new Array("Notepad","Notepad","Muistikirja","Muistikirja","Notepad","Notepad","Notepad","Notepad","Notepad","Notepad"); var responce = new Array("Response","Response","Vastaa","Vastaa","Atbilde","Atbilde","Atsakyti","Atsakyti","Tagasiside","Tagasiside"); var creatorArray = new Array("Creator","Creator","Kirjoittaja","Kirjoittaja","Autors","Autors","Autorius","Autorius","Autor","Autor"); var relatedMessages = new Array("Related messages","Related messages","Viestiketju","Viestiketju","Saistītie ziņojumi","Saistītie ziņojumi","Žinutės ta pačia tema","Žinutės ta pačia tema","Samalaadsed teated","Samalaadsed teated"); var newMessage = new Array("New Message","New Message","Uusi viesti","Uusi viesti","Jauns ziņojums","Jauns ziņojums","Naujas pranešimas","Naujas pranešimas","Uus teade","Uus teade") var responceToMessage = new Array("Response to Message","Response to Message","Vastaus viestiin","Vastaus viestiin","Atbilde uz ziņojumu","Atbilde uz ziņojumu","Atsakyti į žinutę","Atsakyti į žinutę","Tagasiside sõnumile","Tagasiside sõnumile") var moreArray = new Array("More","More","Lisää","Lisää","Vairâk","Vairâk","Daugiau","Daugiau","Veel","Veel") var archiveArray = new Array("Archive","Archive","Arkisto","Arkisto","Arhīvs","Arhīvs","Archyvas","Archyvas","Arhiiv","Arhiiv") var save = new Array("Save","Save","Tallenna","Tallenna","Saglabāt","Saglabāt","Išsaugoti","Išsaugoti","Salvesta","Salvesta") var readMoreArray = new Array("Read more..","Read more..","Lue lisää..","Lue Lisää..","Vairāk..","Vairāk..","Daugiau..","Daugiau..","Veel..","Veel..") var bc = new Array() bc["voteArchive"] = new Array("Vote Archive","Vote Archive","Äänestysarkisto","Äänestysarkisto","Vote Archive","Vote Archive","Vote Archive","Vote Archive","Vote Archive","Vote Archive") bc["search"] = searchtitle bc["archive"] = archiveArray bc["news"] = new Array("News","News","Uutiset","Uutiset","Jaunumi","Jaunumi","Naujienos","Naujienos","Uudised","Uudised") bc["discussion"] = new Array( "Discussion","Discussion","Keskustelu","Keskustelu","Diskusijas","Diskusijas","Forumas","Forumas","Arutelu","Arutelu") bc["ideaChannel"]=new Array("Idea Channel","Idea Channel","Väläys","Väläys","Idea Channel","Idea Channel","Idea Channel","Idea Channel","Idea Channel","Idea Channel") discussion = new Array("" + "Discussion" + "" ,"" + "Discussion" + "" ,"Keskustelu" , "Keskustelu" ,"" + "Diskusijas"+ "","" + "Diskusijas"+ "","" + "Forumas"+ "","" + "Forumas"+ "","" + "Arutelu"+ "","" + "Arutelu"+ ""); useReplaceFont = "No" NOTESvoteSettings = "1;;Horizontal%%%5%%%051051051.gif%%%102102102.gif%%%153153153.gif%%%204204204.gif%%%000051153.gif%%%051102153.gif%%%" //ban list voteBL = "0" flashUse="Normal"; window.onresize = resize function resize() { } function archive() { document.write("" + archiveArray[lang] + "") } function arrow() { buttonEng = '' buttonFin = '' if(lang==0 || lang==1) { button = buttonEng } if(lang==2 || lang==3) { button = buttonFin } if(button!="") { document.write(button) } else { document.write(buttonFin) } } function breadCrumbSpecial(special, id) { if(special=="discussion") { document.write("" + bc[special][lang] + "") } else { document.write(bc[special][lang]) } } function changeLang(langNro) { //Remove current language cookies delCookie(makeCookieName(strCookieNameRoot)); var expDate = new Date(); expDate.setTime(expDate.getTime() + 1 * (24 * 60 * 60 * 1000)) //+1 day; document.cookie = makeCookieName(strCookieNameRoot) + "=" + langNro + "; expires=" + expDate.toGMTString() +"; domain=" +fqdn +"; path=/"; document.cookie = makeCookieName(strCookieNameRoot) + "=" + langNro + "; expires=" + expDate.toGMTString(); location.reload(); } function creatorTitle() { document.write("" +creatorArray[lang] + "") } function companyLogo() { logoURLTmp = "" logoURL = (logoURLTmp=="")?"/":logoURLTmp document.write('') } function companyTitle() { return("Tamro Oyj") } function discussionResponse(unid) { document.write('' + responce[lang] + '') } function date() { document.write('Saturday 09/11/2010') } function editfrontpagenews() { if(userroles.indexOf("[admin]") !=-1) document.write(" Muokkaa"); } function footerCreator(name,address) { if((lang=="0") | (lang=="2") | (lang=="4") | (lang=="6") | (lang=="8")) document.write("" + name + "") else document.write("" + legal[lang] + "") } function footerCompany() { document.write(companyTitle()) } function footerLastEdited() { document.write(lastEdited[lang]) } function footerCustom() { footerFi = '' footerEng = '' if((lang==0) || (lang==1)) { document.getElementById('contentMiddleAreaFooter').innerHTML=footerEng; } else { document.getElementById('contentMiddleAreaFooter').innerHTML=footerFi; } } function globalnavi() { logoutURL = db.substring(0,db.length-1)+'?logout&redirectTo=http://' + location.hostname if(lang==0 || lang==1) { document.write(" Sitemap  Feedback  Help  Suomeksi") } else { document.write(" Sivukartta  Palaute  Apua  English") } } function homepage() { var homeurl = ""; if(homeurl=='') document.write('' + homepagetitle[lang] + '') else document.write('' + homepagetitle[lang] + '') } function identifier() { document.write('Tamro.Com2008'); } function infobox() { document.write("") } function keyvisual(keyvisual, keyvisualEng, currentID, firstURL) { if(lang==0 || lang==1) { if(keyvisualEng=="" | keyvisualEng==null) var keyvisuals = new Array( 'pics/Tamrocom_sisasivu_indeo.jpg/$file/Tamrocom_sisasivu_indeo.jpg'); else var keyvisuals = new Array(keyvisualEng); } if(lang==2 || lang==3) { if(keyvisual=="" | keyvisual==null) var keyvisuals = new Array( 'pics/Tamrocom_sisasivu_indeo.jpg/$file/Tamrocom_sisasivu_indeo.jpg'); else var keyvisuals = new Array(keyvisual); } keyvisuals.sort( randOrd ); if(flashUse=="Flash") { for(i=0;i'); } } function BackgroundPic(BackgroundPicFi, BackgroundPicEng) { if(lang==0 || lang==1) { if(BackgroundPicEng=="" | BackgroundPicEng==null) var bgPic ="pics/tamro_tausta.jpg/$file/tamro_tausta.jpg" else var bgPic =BackgroundPicEng } if(lang==2 || lang==3) { if(BackgroundPicFi=="" | BackgroundPicFi==null) var bgPic ="pics/tamro_tausta.jpg/$file/tamro_tausta.jpg" else var bgPic =BackgroundPicFi } document.body.style.backgroundImage='url( ' +db + bgPic +')'; document.body.style.backgroundRepeat = "repeat-y"; document.write(''); } function localResults() { window.location= db + 'search?searchview&query='+ document.forms[formnro].q.value; } function load() { var load = window.open('http://www.numeronetti.fi','','scrollbars=no,menubar=no,height=600,width=800,resizable=yes,toolbar=no,location=no,status=no'); } function dropdownmenu() { var dropdowntype = 'Date'; if (dropdowntype=='Dropdown') { document.write(' '); document.write('')} else document.write('Saturday 09/11/2010') } function menuVisibility(menu) { var DOM = (document.getElementById) ? 1:0; if(DOM){ FM=eval(document.getElementById(menu).style)} else{ if(document.all){ FM=eval(document.all[menu].style)} else{ if(document.layers){ return false; } } } if(FM.display=="none"){ FM.display="block"; } else{ FM.display="none"; } } function menuMultipleVisibility(menu) { var DOM = (document.getElementById) ? 1:0; if(DOM){ FM=eval(document.getElementById(menu).style)} else{ if(document.all){ FM=eval(document.all[menu].style)} else{ if(document.layers){ return false; } } } document.getElementById("newsSmall1").style.display="none" document.getElementById("newsSmall2").style.display="none" document.getElementById("newsSmall3").style.display="none" FM.display="block"; } function more() { document.write("" + moreArray[lang] + "") } function nameday() { document.write('Kalevi ja Kaleva') } function navigationLink(link, link0) { if(lang==2 || link0=="") { return link } else { return link0 } } function navigationtype() { textnav = "" + titleTopicLang('8DA98E2B2FAB8750C22573A60032F91A',documentId,'Etusivu' ,'Etusivu','Home' ,'Home')+ "" + titleTopicLang('10F0A586C3B848B2C22570D6003B5468',documentId,'Tamro-konserni' ,'Tamro-konserni','Tamro Group' ,'Tamro Group')+ "" + titleTopicLang('BC85CE51279149A5C22570D6005D2843',documentId,'Talous' ,'Talous','Finance' ,'Finance')+ "" + titleTopicLang('9FBA1EEB872A0DBCC22570D6005E9584',documentId,'Ura Tamrossa' ,'Ura Tamrossa','Careers' ,'Careers')+ "" + titleTopicLang('62986F6374C04EF4C22570D6005DBC65',documentId,'Media' ,'Media','Media' ,'Media')+ "" + titleTopicLang('075B547B2B7A6E8AC22570D6005E8177',documentId,'Yhteystiedot' ,'Yhteystiedot','Contact us' ,'Contact us')+ ""; var navtype = 'Text'; if (navtype=='Text') document.write(textnav) else if (navtype=="Pulldown menu") { document.write("") + document.write(""); } } function newMessageTitle() { document.write("" + newMessage[lang] + "") } function openWin(addr, wHeight, wWidth) { newWindow = window.open(db + addr,'Profile','height=' + wHeight + ',width=' + wWidth); } function randOrd(){ return (Math.round(Math.random())-0.5); } function readMore() { document.write(readMoreArray[lang]) } function responceToMessageTitle() { document.write("" +responceToMessage[lang] + "") } function returnTitle() { document.write('' + returnArray[lang] + '') } function responceTitle(unid) { document.write('' + responce[lang] + '') } function relatedMessagesTitle() { document.write("" +relatedMessages[lang] + "") } function roundOff(value, precision){ value = "" + value //convert value to string precision = parseInt(precision); var whole = "" + Math.round(value * Math.pow(10, precision)); var decPoint = whole.length - precision; if(decPoint != 0){ result = whole.substring(0, decPoint); result += "."; result += whole.substring(decPoint, whole.length); } else { result = whole; } return result; } function saveDiscussion() { document.write('' + save[lang] + '') } function search() { localResults() } function searchselection() { document.write(' '); document.write(''); } function searchname() { } function titleLang(langFi,langEng) { if(lang==0 || lang==1) { title = langEng } if(lang==2 || lang==3) { title = langFi } if(title!="") { document.write(title) } else { document.write(langFi) } } function titleLangSitemap(langFi,langEng) { if(lang==0 || lang==1) { title = langEng } if(lang==2 || lang==3) { title = langFi } if(title!="") { return title } else { return langFi } } function titleTopicLang(topicID,documentID, langFi, langFiS,langEng, langEngS) { if(lang==0 || lang==1) { if(topicID==firstUrl) title=langEngS else title = langEng } if(lang==2 || lang==3) { if(topicID==firstUrl) title = langFiS else title = langFi } if(title!="") { return title } else { return langFi } } function topicTitle() { document.write("" + topic[lang] + "") } function usernameText() { usernameText = "" } // write flash obj with query string function writeFlash(src, width, height,flashVars,target,version,version2,src2) { var so = new SWFObject(src, "mymovie", width, height, version, ""); var flasVarsArr1 =new Array() var flasVarsArr2 =new Array() flasVarsArr1 = flashVars.split("&") for(i=0;i' var l2 = '' var l3 = '' var l3b = '' var l4 = '' var l5 = '' //alert(l1+l2+l3+l3b+l4+l5) // write all lines document.write(l1+l2+l3+l3b+l4+l5) } */ /* ///////////////////////////////////////////////////////////////////////////////////////////////////////////// UTILITIES Author: Jason Levine Created: 2005-02-10 This section contains all the function from the JS Utilites page. ///////////////////////////////////////////////////////////////////////////////////////////////////////////// */ function newWindow(strUrl, strName, intWidth, intHeight) { //Author: Jason Levine //Created: 2003-09-11 // //This function will open a new window with strUrl //as the location, with the name strName and the //given dimension. The window will be positioned //approximately in the centre-left of the screen. var winLeft = 0; //(screen.width - intWidth) / 2; var winTop = ((screen.height - intHeight) / 2) - 25; var winProps = 'height='+intHeight+',width='+intWidth+',left=' + winLeft + ',top=' + winTop; winProps += ',resizable=0,location=no,menubar=no,personalbar=no,scrollbars=0,statusbar=no,toolbar=no'; //alert('Start' + '\n' + strUrl + '\n' + strName + '\n' + winProps); return window.open(strUrl, strName , winProps); } function delay(intDuration){ //Author: Jason Levine //Created: 2005-01-10 // //This function will cause javascript to stop executing for a //period of intDuration milliseconds. var then,now; then=new Date().getTime(); now=then; while( ( now - then)< intDuration) { now=new Date().getTime(); } } /* ///////////////////////////////////////////////////////////////////////////////////////////////////////////// PERSONAL LINKS Author: Jason Levine Created: 2005-02-10 ///////////////////////////////////////////////////////////////////////////////////////////////////////////// */ // Global Variables var DEBUG = false; var ARR_LINKS = new Array(); //getPersonalLinksArray(); ARR_LINKS = getPersonalLinksArray(); function openEditWindow(intIndex) { //Author: Jason Levine //Created: 2004-12-27 //Modified: // //This function will test the values in the form if successful, //will save the form and then open an expense form in a new //window as a response document. if(DEBUG){alert('Starting openEditWindow(intIndex)');} var strUrl = db + 'webPersonalLink?openform'; //var strUrl = 'http://' + '/customers/bk/bkintra.nsf' + '/webPersonalLink?openform'; //var strUrl = 'http://obelix/customers/bk/bkintra.nsf/webPersonalLink?openform'; //Set the dimensions for the new window var intWidth = 305; var intHeight = 110; //Open the new window winLink = newWindow(strUrl, 'PersonalLink', intWidth, intHeight); // winLink.location.href = strUrl; winLink.focus(); if(DEBUG){alert('Window open and focused.');} if(intIndex == null) { intLinkIndex = -1; } else if( isNaN(parseInt(intIndex) ) ) { intLinkIndex = -1; } else if( ARR_LINKS.length == 0 || intIndex >= ARR_LINKS.length) { intLinkIndex = -1; } else { intLinkIndex = intIndex; } if(DEBUG){alert('intLinkIndex set: ' + intLinkIndex);} if(intLinkIndex == -1) { //link does not exist - do nothing return; } else { //link exists - put values in new window /* if(DEBUG){alert('Setting link values in edit window.');} winLink.document.forms[0].intLinkIndex.value = intLinkIndex; winLink.document.forms[0].strLink.value = ARR_LINKS[intLinkIndex][0]; winLink.document.forms[0].strUrl.value = ARR_LINKS[intLinkIndex][1]; */ } if(DEBUG){alert('openEditWindow(intIndex) finished');} } function addLink(strLink, strUrl, intIndex, intTarget) { if(strLink == "" || strUrl == "") { return -1; } var arrLink = new Array(strLink, strUrl, intTarget); if(intIndex == null) { intLinkIndex = -1; } else if( isNaN(parseInt(intIndex) ) ) { intLinkIndex = -1; } else if( ARR_LINKS.length == 0 || intIndex >= ARR_LINKS.length) { intLinkIndex = -1; } else { intLinkIndex = intIndex; } if(intLinkIndex == -1) { //link does not exist - add to links array ARR_LINKS.push(arrLink); setPersonalLinksArray(); } else { //link exists - replace existing entry ARR_LINKS[intLinkIndex] = arrLink; setPersonalLinksArray(); } } function delLink(intIndex) { if(intIndex == null) { intLinkIndex = -1; } else if( isNaN(parseInt(intIndex) ) ) { intLinkIndex = -1; } else if( ARR_LINKS.length == 0 || intIndex >= ARR_LINKS.length) { intLinkIndex = -1; } else { intLinkIndex = intIndex; } if(intLinkIndex == -1) { //link does not exist - do nothing } else { //link exists - remove from links array ARR_LINKS.splice(intLinkIndex,1); setPersonalLinksArray(); } } function getPersonalLinksArray() { var strLinks = getCookieValue('personalLinks'); if(strLinks == null) { var arrLinks = new Array(); } else { var arrLinks = strLinks.split('{'); } for (var i=0; i < arrLinks.length; i++) { arrLinks[i] = arrLinks[i].split('}'); } return arrLinks; } function setPersonalLinksArray() { if(DEBUG){alert('Starting setPersonalLinksArray()');} //ARR_LINKS - global variable var arrLinks = new Array(); var expireDate = new Date (); expireDate.setTime(expireDate.getTime() + (365 * 24 * 3600 * 1000)); if(DEBUG){alert('Expiry date set.');} for (var i=0; i < ARR_LINKS.length; i++) { arrLinks.push(ARR_LINKS[i].join('}') ); } var strLinks = arrLinks.join('{'); setCookie('personalLinks', strLinks, expireDate); if(DEBUG){alert('Cookie set.');} writePersonalLinks(); if(DEBUG){alert('Personal links written.');} } function writePersonalLinks() { if(DEBUG){alert('Starting writePersonalLinks()');} var strLinkTable = ""; var strTarget; if(ARR_LINKS == 'undefined') { if(DEBUG){alert('ARR_LINKS is undefined');} return; } if(DEBUG){alert('ARR_LINKS: ' + ARR_LINKS.length);} strLinkTable += ''; for(i = 0; i < ARR_LINKS.length; i++) { if(ARR_LINKS[i][2] == 0) { strTarget = '_self'; } else { strTarget = '_blank'; } strLinkTable += ''; strLinkTable += ''; //strLinkTable += ''; strLinkTable += ''; strLinkTable += ''; } strLinkTable += '
'; if(DEBUG){prompt('strLinkTable set:\n\n' , strLinkTable);} document.getElementById('personalLinks').innerHTML = strLinkTable; if(DEBUG){alert('Personal links written.');} } /* ///////////////////////////////////////////////////////////////////////////////////////////////////////////// POPULAR LINKS Author: Jason Levine Created: 2005-02-10 ///////////////////////////////////////////////////////////////////////////////////////////////////////////// */ // Global Variables //The Array arrCommonLinks must be initialized in the containing document function writePopularLinks(){ //Author: Jason Levine //Created: 2004-2-10 //Modified: // //This function will write a collection of links to the "mostPopularLinks" //div's innerHtml based on the contents of the "MostCommonLink_JsArray" //field in the General settings document. if(DEBUG){alert('Starting writePopularLinks()');} var arrCommonLinks = new Array(); //Values pushed onto the array from settings document var strLinkTable = ""; if(arrCommonLinks == 'undefined') { if(DEBUG){alert('arrCommonLinks is undefined');} return; } if(DEBUG){alert('arrCommonLinks: ' + arrCommonLinks.length);} strLinkTable += ''; for(i = 0; i < arrCommonLinks.length; i++) { strLinkTable += ''; strLinkTable += ''; strLinkTable += ''; } strLinkTable += '
' +(i+1) + '.
'; if(DEBUG){alert('strLinkTable set:\n\n' + strLinkTable);} document.getElementById('mostPopularLinks').innerHTML = strLinkTable; if(DEBUG){alert('Popular links written.');} } /** * SWFObject v1.4: Flash Player detection and embed - http://blog.deconcept.com/swfobject/ * * SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License: * http://www.opensource.org/licenses/mit-license.php * * **SWFObject is the SWF embed script formarly known as FlashObject. The name was changed for * legal reasons. */ if(typeof deconcept=="undefined"){var deconcept=new Object();} if(typeof deconcept.util=="undefined"){deconcept.util=new Object();} if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();} deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){ if(!document.createElement||!document.getElementById){return;} this.DETECT_KEY=_b?_b:"detectflash"; this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY); this.params=new Object(); this.variables=new Object(); this.attributes=new Array(); if(_1){this.setAttribute("swf",_1);} if(id){this.setAttribute("id",id);} if(w){this.setAttribute("width",w);} if(h){this.setAttribute("height",h);} if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));} this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion(this.getAttribute("version"),_7); if(c){this.addParam("bgcolor",c);} var q=_8?_8:"high"; this.addParam("quality",q); this.setAttribute("useExpressInstall",_7); this.setAttribute("doExpressInstall",false); var _d=(_9)?_9:window.location; this.setAttribute("xiRedirectUrl",_d); this.setAttribute("redirectUrl",""); if(_a){this.setAttribute("redirectUrl",_a);}}; deconcept.SWFObject.prototype={setAttribute:function(_e,_f){ this.attributes[_e]=_f; },getAttribute:function(_10){ return this.attributes[_10]; },addParam:function(_11,_12){ this.params[_11]=_12; },getParams:function(){ return this.params; },addVariable:function(_13,_14){ this.variables[_13]=_14; },getVariable:function(_15){ return this.variables[_15]; },getVariables:function(){ return this.variables; },getVariablePairs:function(){ var _16=new Array(); var key; var _18=this.getVariables(); for(key in _18){ _16.push(key+"="+_18[key]);} return _16; },getSWFHTML:function(){ var _19=""; if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){ if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");} _19="0){_19+="flashvars=\""+_1c+"\"";} _19+="/>"; }else{ if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");} _19=""; _19+=""; var _1d=this.getParams(); for(var key in _1d){_19+="";} var _1f=this.getVariablePairs().join("&"); if(_1f.length>0){_19+="";} _19+="";} return _19; },write:function(_20){ if(this.getAttribute("useExpressInstall")){ var _21=new deconcept.PlayerVersion([6,0,65]); if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){ this.setAttribute("doExpressInstall",true); this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl"))); document.title=document.title.slice(0,47)+" - Flash Player Installation"; this.addVariable("MMdoctitle",document.title);}} if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){ var n=(typeof _20=="string")?document.getElementById(_20):_20; n.innerHTML=this.getSWFHTML(); return true; }else{ if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}} return false;}}; deconcept.SWFObjectUtil.getPlayerVersion=function(_23,_24){ var _25=new deconcept.PlayerVersion([0,0,0]); if(navigator.plugins&&navigator.mimeTypes.length){ var x=navigator.plugins["Shockwave Flash"]; if(x&&x.description){_25=new deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));} }else{try{ var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); for(var i=3;axo!=null;i++){ axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i); _25=new deconcept.PlayerVersion([i,0,0]);}} catch(e){} if(_23&&_25.major>_23.major){return _25;} if(!_23||((_23.minor!=0||_23.rev!=0)&&_25.major==_23.major)||_25.major!=6||_24){ try{_25=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));} catch(e){}}} return _25;}; deconcept.PlayerVersion=function(_29){ this.major=parseInt(_29[0])!=null?parseInt(_29[0]):0; this.minor=parseInt(_29[1])||0; this.rev=parseInt(_29[2])||0;}; deconcept.PlayerVersion.prototype.versionIsValid=function(fv){ if(this.majorfv.major){return true;} if(this.minorfv.minor){return true;} if(this.rev-1)?q.indexOf("&",_2d):q.length; if(q.length>1&&_2d>-1){ return q.substring(q.indexOf("=",_2d)+1,_2e); }}return "";}}; if(Array.prototype.push==null){ Array.prototype.push=function(_2f){ this[this.length]=_2f; return this.length;};} var getQueryParamValue=deconcept.util.getRequestParameter; var FlashObject=deconcept.SWFObject; // for backwards compatibility var SWFObject=deconcept.SWFObject;