var image1=""; var theimg=""; var thetitle=""; var thelink=""; var thedate=""; var thedesc=""; var selected_bg1=""; var selected_bg2=""; var selected_bg3=""; var selected_bg4=""; function cycle() { if (++theimg > 4) theimg=1; loadem(); document.getElementById('rotator_image').src = image1; document.getElementById('rotator_selected_1').style.background = selected_bg1; document.getElementById('rotator_selected_2').style.background = selected_bg2; document.getElementById('rotator_selected_3').style.background = selected_bg3; document.getElementById('rotator_selected_4').style.background = selected_bg4; document.getElementById('rotator_link').href = thelink; document.getElementById('rotator_date').innerHTML = thedate; document.getElementById('rotator_desc').innerHTML = thedesc; document.getElementById('rotator_link').innerHTML = thetitle; window.setTimeout('cycle();',6000); } function loadem() { if (theimg==1) { image1="/images/rotator/large/esea_stage.jpg"; selected_bg1=""; selected_bg2="url(/images/rotator/static/selected.jpg) no-repeat"; selected_bg3=""; selected_bg4=""; thetitle="ESEA Day Two Gallery"; thelink="http://goloaded.com/forums/album.php?albumid=20"; thedate="07.22.10"; thedesc="Check out the pictures from the second day at the ESEA LAN Finals in Dallas, Texas."; } if (theimg==2) { image1="/images/rotator/large/review.jpg"; selected_bg1=""; selected_bg2=""; selected_bg3="url(/images/rotator/static/selected.jpg) no-repeat"; selected_bg4=""; thetitle="Tt eSPORTS Challenger Pro Review "; thelink="http://goloaded.com/news/425/ttesports-keyboard-review"; thedate="07.22.10"; thedesc="Loaded professional gamer Paul "Adrenaline" Baker gives his review of the Tt eSPORTS Challenger Pro keyboard."; } if (theimg==3) { image1="/images/rotator/large/esea_coverage_hub.jpg"; selected_bg1=""; selected_bg2=""; selected_bg3=""; selected_bg4="url(/images/rotator/static/selected.jpg) no-repeat"; thetitle="ESEA LAN Coverage Hub"; thelink="http://goloaded.com/articles/18/esea-coverage-hub"; thedate="07.12.10"; thedesc="This post will serve as our coverage hub and all other related content will be linked through here for easy access."; } if (theimg==4) { image1="/images/rotator/large/stock_hon.jpg"; selected_bg1="url(/images/rotator/static/selected.jpg) no-repeat"; selected_bg2=""; selected_bg3=""; selected_bg4=""; thetitle="Loaded HoN Pro-Tips Contest"; thelink="http://goloaded.com/news/422/loaded-hon-contest"; thedate="07.22.10"; thedesc="In partnership with Tt eSPORTS, Loaded is proud to announce its first contest for the Heroes of Newerth community!"; } } function change_highlight(newimage, thenum) { document.getElementById('rotator_image').src = "/images/rotator/large/" + newimage; var i; var the_title = new Array(5); the_title[1] = 'Loaded HoN Pro-Tips Contest'; the_title[2] = 'ESEA Day Two Gallery'; the_title[3] = 'Tt eSPORTS Challenger Pro Review '; the_title[4] = 'ESEA LAN Coverage Hub'; var the_link = new Array(5); the_link[1] = 'http://goloaded.com/news/422/loaded-hon-contest'; the_link[2] = 'http://goloaded.com/forums/album.php?albumid=20'; the_link[3] = 'http://goloaded.com/news/425/ttesports-keyboard-review'; the_link[4] = 'http://goloaded.com/articles/18/esea-coverage-hub'; var the_date = new Array(5); the_date[1] = '07.22.10'; the_date[2] = '07.22.10'; the_date[3] = '07.22.10'; the_date[4] = '07.12.10'; var the_desc = new Array(5); the_desc[1] = 'In partnership with Tt eSPORTS, Loaded is proud to announce its first contest for the Heroes of Newerth community!'; the_desc[2] = 'Check out the pictures from the second day at the ESEA LAN Finals in Dallas, Texas.'; the_desc[3] = 'Loaded professional gamer Paul "Adrenaline" Baker gives his review of the Tt eSPORTS Challenger Pro keyboard.'; the_desc[4] = 'This post will serve as our coverage hub and all other related content will be linked through here for easy access.'; for (i = 1; i < 5; i++) { if(i == thenum) { document.getElementById('rotator_selected_' + i).style.background = "url(/images/rotator/static/selected.jpg) no-repeat"; document.getElementById('rotator_link').href = the_link[i]; document.getElementById('rotator_date').innerHTML = the_date[i]; document.getElementById('rotator_desc').innerHTML = the_desc[i]; document.getElementById('rotator_link').innerHTML = the_title[i]; } else { document.getElementById('rotator_selected_' + i).style.background = ""; } } } var link = "http://goloaded.com/news/422/loaded-hon-contest" function urlswitch() { if (theimg==1) { link = "http://goloaded.com/forums/album.php?albumid=20"; } if (theimg==2) { link = "http://goloaded.com/news/425/ttesports-keyboard-review"; } if (theimg==3) { link = "http://goloaded.com/articles/18/esea-coverage-hub"; } if (theimg==4) { link = "http://goloaded.com/news/422/loaded-hon-contest"; } return link; }