var webkitMpWidth = 650;
var webkitMpHeight = 40;
var webkitMpDlButton = 0;
var webkitMpLoader = 1;
var webkitMpFirstload = 0;
var webkitAltmediaplayer = "";
var webkitMpScrollto = 1;

document.observe("dom:loaded", function() {
	webkit.playsong('random');
	init_page();
});


button1on = new Image();
button1on.src = "/images/aboutpaulp.jpg";
button2on = new Image();
button2on.src = "/images/themusicp.jpg";
button3on = new Image();
button3on.src = "/images/ordercdsp.jpg";
button4on = new Image();
button4on.src = "/images/lcmgp.jpg";
button5on = new Image();
button5on.src = "/images/linksp.jpg";
button6on = new Image();
button6on.src = "/images/mailinglistp.jpg";
button7on = new Image();
button7on.src = "/images/contactmep.jpg";
button8on = new Image();
button8on.src = "/images/newsp.jpg";
button9on = new Image();
button9on.src = "/images/futureshowsp.jpg";


button1off = new Image();
button1off.src = "/images/aboutpaul.jpg";
button2off = new Image();
button2off.src = "/images/themusic.jpg";
button3off = new Image();
button3off.src = "/images/ordercds.jpg";
button4off = new Image();
button4off.src = "/images/lcmg.jpg";
button5off = new Image();
button5off.src = "/images/links.jpg";
button6off = new Image();
button6off.src = "/images/mailinglist.jpg";
button7off = new Image();
button7off.src = "/images/contactme.jpg";
button8off = new Image();
button8off.src = "/images/news.jpg";
button9off = new Image();
button9off.src = "/images/futureshows.jpg";

function img_act(imgName) {
	imgOn = eval(imgName + "on.src");
	document.images[imgName].src = imgOn;
}

function img_inact(imgName) {
	imgOff = eval(imgName + "off.src");
	document.images[imgName].src = imgOff;
}

function init_page() {
	ajax_regex(document.getElementById('buttonbar').innerHTML,'buttonbar');
	ajax_regex(document.getElementById('pagecontent').innerHTML,'pagecontent');	
}

window.onload = function() {
    //	init_page();
}

function ajaxpage_callback() {
	new Effect.Fade('pagetitletext', { duration: 0.5, afterFinish:function() {
		$('pagetitletext').innerHTML = $('pagetitleid').innerHTML;
		new Effect.Appear('pagetitletext', { duration: 0.5});
	}});
}
