var homepage = "http://sussextechnicalsolutions.co.uk/"; var curPhoto = "73"; var maxPhotos = "73"; function wedge(event){ return false } function next_photo(){ curPhoto--; if(curPhoto == "0"){ curPhoto = maxPhotos; } document.getElementById('photo').src = homepage + "/images/photos/"+curPhoto+".JPG"; } function pre_photo(){ curPhoto++; if(curPhoto > maxPhotos){ curPhoto = "1"; } document.getElementById('photo').src = homepage + "/images/photos/"+curPhoto+".JPG"; } function updateBox(target,content){ var url = homepage + "/page_" + content + ".html"; var pars = ''; var myAjax = new Ajax.Updater(target, url); } function updateBoxJS(target,content){ var url = homepage + "/page_" + content + ".html"; document.getElementById(target).src = url; } function setCookie(NameOfCookie, value, expiredays){ var ExpireDate = new Date (); ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000)); document.cookie = NameOfCookie + "=" + escape(value) + ((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString()); } function getCookie(NameOfCookie){ if (document.cookie.length > 0){ begin = document.cookie.indexOf(NameOfCookie+"="); if (begin != -1){ begin += NameOfCookie.length+1; end = document.cookie.indexOf(";", begin); if (end == -1) end = document.cookie.length; return unescape(document.cookie.substring(begin, end)); } } return null; } function changePage(pagename){ updateBox('content-box',pagename); setCookie('lastpage',pagename,360); //if(pagename == 'home'){ // document.getElementById('music_player').style.display=''; //} if(pagename == 'photos'){ curPhoto = "1"; } } function changeGame(game){ var url = homepage + "/Documents/games/" + game + ".html"; var pars = ''; var myAjax = new Ajax.Updater("game_frame", url); document.getElementById('game_frame').style.display = ""; document.getElementById('games_list').style.display = "none"; document.getElementById('show_all_games').style.display = ""; } function showAllGames(){ document.getElementById('game_frame').style.display = "none"; document.getElementById('games_list').style.display = ""; document.getElementById('show_all_games').style.display = "none"; } function studio1() { var load = window.open('http://www.ustream.tv/flash/live/1/357185','','scrollbars=no,menubar=no,height=400,width=600,resizable=yes,toolbar=no,location=no,status=no'); } function studio2() { var load = window.open('http://www.ustream.tv/flash/live/649801','','scrollbars=no,menubar=no,height=400,width=600,resizable=yes,toolbar=no,location=no,status=no'); } function studio3() { var load = window.open('http://www.ustream.tv/flash/live/653516','','scrollbars=no,menubar=no,height=400,width=600,resizable=yes,toolbar=no,location=no,status=no'); } function chat() { var load = window.open('http://embed.mibbit.com/?server=irc.efnet.net&channel=%23ds-scene&forcePrompt=true','','scrollbars=no,menubar=no,height=600,width=400,resizable=yes,toolbar=no,location=no,status=no'); }