// JavaScript Document
function showcallback() {
	new Effect.Fade('slide1',{duration: 0.5});
	new Effect.Move('receiver',{x:-170,y:80,mode:'absolute',duration: 1.5});
	new Effect.Move('handset',{x:-80,y:5,mode:'absolute',duration: 2.0});
	new Effect.Appear('slide2',{delay: 0.5,duration: 0.5});
}
function hidecallback() {
	new Effect.Fade('slide2',{duration: 0.5});
	new Effect.Move('handset',{x:0,y:0,mode:'absolute',duration: 1.5});
	new Effect.Move('receiver',{x:0,y:0,mode:'absolute',duration: 1.5});
	new Effect.Appear('slide1',{delay: 0.5,duration: 0.5});
}
function setpanel(iPanel) {
	if ($('frontpagepanel')._panel==iPanel){iPanel=0}
	$('frontpagepanel'+$('frontpagepanel')._panel).style.zIndex=50
	$('frontpagepanel'+iPanel).style.zIndex = 1000
	var queue = Effect.Queues.get('bigbuttons');
	new Effect.Appear($('frontpagepanel'+iPanel),{duration: 0.2,queue: {position:'end',scope:'bigbuttons'}})
	new Effect.Fade($('frontpagepanel'+$('frontpagepanel')._panel),{duration: 0,queue: {position:'end',scope:'bigbuttons'}})
	$('frontpagepanel')._panel=iPanel
		$('bigbutton1').src='images/bigbutton1.jpg'
		$('bigbutton2').src='images/bigbutton2.jpg'
		$('bigbutton3').src='images/bigbutton3.jpg'
		$('bigbutton4').src='images/bigbutton4.jpg'
	switch (iPanel) {
		case 1:
		$('bigbutton1').src='images/bigbutton1_f2.jpg'
			break;
		case 2:
		$('bigbutton2').src='images/bigbutton2_f2.jpg'
			break;
		case 3:
		$('bigbutton3').src='images/bigbutton3_f2.jpg'
			break;
		case 4:
		$('bigbutton4').src='images/bigbutton4_f2.jpg'
	}
}
function initfrontpage() {
	Event.observe(window,'load',function() { $('frontpagepanel')._panel=0; })
}

Event.observe(window,'load',function() { 
									 
									 var border = RUZEE.ShadedBorder.create ({ corner:8, shadow:16, border:1 });
									 $$('.rounded').each(function(item){
																	  border.render(item)
																	  })
									 })
