/* *********************************************************************** Main Scripts for http://TaraSlone.com *********************************************************************** Author Jonathan Gallivan Client Tara Slone (TaraSlone.com // Just Look Pretty And Sing.) Version 1.0 Created 11 Feb 2007 Modifed 11 Feb 2007 Contact http://jonathangallivan.com *********************************************************************** */ // Initialise the site ------------------------------------------------ var flashContent; function init() { // Set up Flash objects var soStage = new SWFObject("/taraslone.swf", "flashStage", "900", "720", "8,0,0,0", "#000000", true); soStage.addParam("allowScriptAccess", "true"); soStage.addParam("quality", "high"); soStage.addParam("scale", "noscale"); soStage.addParam("wmode", "transparent"); soStage.addVariable("initChannel", ""); soStage.addVariable("initPage", ""); soStage.write("stage"); var soJukebox = new SWFObject("/mp3player.swf", "flashJukebox", "340", "42", "8,0,0,0", "#000000", true); soJukebox.addParam("allowScriptAccess", "true"); soJukebox.addParam("quality", "high"); soJukebox.addParam("scale", "noscale"); soJukebox.addParam("wmode", "transparent"); soJukebox.addVariable("file", "/xml/playlist.xml"); soJukebox.addVariable("autostart", "true"); soJukebox.addVariable("shuffle", "false"); soJukebox.addVariable("repeat", "true"); soJukebox.addVariable("showdigits", "true"); soJukebox.addVariable("showicons", "false"); soJukebox.addVariable("displayheight", "0"); soJukebox.addVariable("lightcolor", "0xffffff"); soJukebox.addVariable("backcolor", "0xtransparent"); soJukebox.addVariable("frontcolor", "0x777777"); soJukebox.addVariable("autoscroll", "false"); soJukebox.write("mp3player"); flashContent = document.getElementById("flashStage"); } window.onload = init; // Pre-load essential images ------------------------------------------ if (document.images) { var iplSiteInfoCredits = new Image(); iplSiteInfoCredits.src = "/siteImages/global/siteInfo-credits.gif"; var iplSiteInfoFlash = new Image(); iplSiteInfoFlash.src = "/siteImages/global/siteInfo-flash.gif"; var iplSiteInfoPromoFACT = new Image(); iplSiteInfoPromoFACT.src = "/siteImages/global/siteInfo-PromoFACT.gif"; } // FUNCTION: For image rollovers ---------- function swapImage(imgName,newImg) { if (document.images) { eval('document.' + imgName + '.src = "' + newImg + '"'); } } // Functions for content changes within the site ----------------------- function contactTara() { window.open('/contact.php','ContactTara','width=500, height=500, toolbar=0, directories=0, menubar=0, status=1, resizable=0, location=0, scrollbars=0, copyhistory=0'); } // Functions for content changes within the site ----------------------- function changeChannel(channelID) { if (flashContent) { flashContent.playContent(channelID); } alert(channelID); } function changeChannelExt(channelID) { if (flashContent) { flashContent.externalChannelChange(channelID); } alert(channelID); } function changeSubChannel(subChannelID) { if (flashContent) { flashContent.playSubContent(subChannelID); } alert(channelID); } function changeSubChannelExt(subChannelID) { if (flashContent) { flashContent.externalSubChannelChange(subChannelID); } alert(channelID); } function moveToChannel(channelID, subChannelID) { if (flashContent) { flashContent.externalSubChannelChange(channelID, subChannelID); } alert(channelID); }