
var loaded = 0;


<!--
		function getWindowHeight() {
			var windowHeight = 0;
			if (typeof(window.innerHeight) == 'number') {
				windowHeight = window.innerHeight;
			}
			else {
				if (document.documentElement && document.documentElement.clientHeight) {
					windowHeight = document.documentElement.clientHeight;
				}
				else {
					if (document.body && document.body.clientHeight) {
						windowHeight = document.body.clientHeight;
					}
				}
			}
			return windowHeight;
		}
		
		function getWindowWidth() {
			var windowWidth = 0;
			if (typeof(window.innerWidth) == 'number') {
				windowWidth = window.innerWidth;
			}
			else {
				if (document.documentElement && document.documentElement.clientWidth) {
					windowWidth = document.documentElement.clientWidth;
				}
				else {
					if (document.body && document.body.clientWidth) {
						windowWidth = document.body.clientWidth;
					}
				}
			}
			return windowWidth;
		}
		
		var bgset = 0;
		
		function setDimensions() {
			if (document.getElementById) {
				var windowHeight = getWindowHeight();
				var borderSize = 54;
				if (windowHeight > 0) {
					var wrapperHeight = document.getElementById('wrapper').offsetHeight;
					var wrapperElement = document.getElementById('wrapper');
					var contentHeight = document.getElementById('content').offsetHeight;
					var contentElement = document.getElementById('content');
					var footerElement = document.getElementById('footer');
					var footerHeight  = footerElement.offsetHeight;
					var bgy = (((windowHeight-footerHeight)/2)-(contentHeight/2))+15;
					if (windowHeight - (contentHeight + footerHeight) >= 0) {
						footerElement.style.top = (windowHeight - (contentHeight + footerHeight)) + 'px';
						contentElement.style.position = 'relative';
						contentElement.style.top = (((windowHeight-footerHeight)/2)-(contentHeight/2)) + 'px';
						wrapperElement.style.height = (windowHeight-footerHeight) + 'px';
						//wrapperElement.style.backgroundPosition = '50% ' + bgy + 'px';
						wrapperElement.style.visibility = 'visible';
						if(bgset==0){
						//document.body.style.backgroundImage = "url(./images/bg_alt.png)";
						//bgset =1;
						}
					}
					else {
						bgy = 15;
						wrapperElement.style.height = (contentHeight) + 'px';
						//wrapperElement.style.backgroundPosition = '50% ' + bgy + 'px';
						footerElement.style.top = '0px';
						contentElement.style.position = 'relative';
						wrapperElement.style.visibility = 'visible';
						if(bgset==0){
						//document.body.style.backgroundImage = "url(./images/bg_alt.png)";
						//	bgset =1;
						}
					}
				}
				
				var windowWidth = getWindowWidth();
							
				if (windowWidth > 0) {
					var contentWidth = document.getElementById('content').offsetWidth;
					var footerElement = document.getElementById('footer');
					var wrapperElement = document.getElementById('wrapper');
					var slideshowElement = document.getElementById('basic-slideshow');
					var rightcontentElement = document.getElementById('panel');
					
					if (windowWidth > 1110) {
					contentElement.style.width = '1100px';
					slideshowElement.style.width = '842px';
					slideshowElement.style.marginLeft = '-35px';
					var bgx = (windowWidth/2)-240;
					//wrapperElement.style.backgroundImage = "url(./images/shadow_w.png)";
					wrapperElement.style.backgroundPosition = bgx+'px ' + bgy + 'px';
				} 
				else {
					contentElement.style.width = '980px';
					slideshowElement.style.width = '842px';
					slideshowElement.style.marginLeft = '-155px';
					var bgx = (windowWidth/2)-180;
					//wrapperElement.style.backgroundImage = "url(./images/shadow.png)";
					wrapperElement.style.backgroundPosition = bgx+'px ' + bgy + 'px';
				}
					
					if(windowWidth<contentWidth){
					footerElement.style.width = contentWidth + 'px';	
					wrapperElement.style.width = contentWidth + 'px';
					}
					else {
					footerElement.style.width = windowWidth + 'px';
					wrapperElement.style.width = windowWidth + 'px';
					}
					
				
				}
				
				
				
			}
		}
				//-->

var completedload = 0;
		
window.addEvent('domready', function() {
var content_opacity = new Fx.Tween('content', {
    duration: 400,
    link: 'cancel',
    property: 'opacity',
	onComplete:function(){logo_opacity.start(0,1);
	}
});
var imageSlide = new Fx.Tween('basic-slideshow', {
    duration: 500,
    link: 'cancel',
    property: 'margin-left',
	onComplete:function(){
		completedload = 1;
	}
});
var imageSlide_opacity = new Fx.Tween('basic-slideshow', {
    duration: 700,
    link: 'cancel',
    property: 'opacity'
});

var logo_opacity = new Fx.Tween('content_leftbar_top', {
    duration: 500,
    link: 'cancel',
    property: 'opacity',
	onComplete:function(){menuSlide_opacity.start(0,1);menuSlide.start(50,0);
	}
});

var menuSlide = new Fx.Tween('content_leftbar_main', {
    duration: 300,
    link: 'cancel',
    property: 'margin-top',
	onComplete:function(){
		var widthtest = getWindowWidth();
		if(widthtest>1100){
		var leftMargin = -35;	
		} else {
		var leftMargin = -155;		
		}
		imageSlide_opacity.start(0,1);imageSlide.start(-300,leftMargin);
		
		}
});

var expand_opacity = new Fx.Tween('infopanel', {
    duration: 200,
    link: 'cancel',
    property: 'opacity'
});

var control_opacity = new Fx.Tween('controlpanel', {
    duration: 200,
    link: 'cancel',
    property: 'opacity'
});

var menuSlide_opacity = new Fx.Tween('content_leftbar_main', {
    duration: 400,
    link: 'cancel',
    property: 'opacity'
});
var baseSlide_opacity = new Fx.Tween('content_base', {
    duration: 400,
    link: 'cancel',
    property: 'opacity'
});

var panelSlide_opacity = new Fx.Tween('panel', {
    duration: 400,
    link: 'cancel',
    property: 'opacity'
});

var panelSlide = new Fx.Tween('panel', {
    duration: 400,
    link: 'cancel',
    property: 'margin-left'
});

var panelSlideForFindus = new Fx.Tween('panel', {
    duration: 400,
    link: 'cancel',
    property: 'margin-left',
	onComplete:function(){requestFindus();}
});

var panelSlideForMenu = new Fx.Tween('panel', {
    duration: 400,
    link: 'cancel',
    property: 'margin-left',
	onComplete:function(){requestMenu();}
});
var panelSlideForHire = new Fx.Tween('panel', {
    duration: 400,
    link: 'cancel',
    property: 'margin-left',
	onComplete:function(){requestHire();}
});
var panelSlideForContact = new Fx.Tween('panel', {
    duration: 400,
    link: 'cancel',
    property: 'margin-left',
	onComplete:function(){requestContact();}
});
var panelSlideForTable = new Fx.Tween('panel', {
    duration: 400,
    link: 'cancel',
    property: 'margin-left',
	onComplete:function(){requestTable();}
});
var panelSlideForEvents = new Fx.Tween('panel', {
    duration: 400,
    link: 'cancel',
    property: 'margin-left',
	onComplete:function(){requestEvents();}
});


//Request for findus
var findusRequest = new Request({
    url: 'includes/findus.php',
    method: 'get',
    onSuccess: function(responseText){
        $('panel').set('html', responseText);
		panelSlide_opacity.start(0,1);
		panelSlide.start(-200,0);
		menuOpened = 1;
    },
	onFailure: function(responseText){
findusOpened = 0;
	 }
});
function requestFindus(){
	findusRequest.send();
}

//Request for events
var eventsRequest = new Request({
    url: 'includes/events.php',
    method: 'get',
    onSuccess: function(responseText){
        $('panel').set('html', responseText);
		panelSlide_opacity.start(0,1);
		panelSlide.start(-200,0);
		menuOpened = 1;
		
		  var myForm = document.id('form_b'),
    myResult = document.id('form_b_div');

  new Form.Request(myForm, myResult);
		
    },
	onFailure: function(responseText){
eventsOpened = 0;
	 }
});
function requestEvents(){
	eventsRequest.send();
}
//Request for table
var tableRequest = new Request({
    url: 'includes/table.php',
    method: 'get',
    onSuccess: function(responseText){
        $('panel').set('html', responseText);
		panelSlide_opacity.start(0,1);
		panelSlide.start(-200,0);
		menuOpened = 1;
		 var myForm = document.id('form_d'),
    myResult = document.id('form_d_div');

  new Form.Request(myForm, myResult);
    },
	onFailure: function(responseText){
tableOpened = 0;
	 }
});
function requestTable(){
	tableRequest.send();
}

//Request for menu
var menuRequest = new Request({
    url: 'includes/menu.php',
    method: 'get',
    onSuccess: function(responseText){
        $('panel').set('html', responseText);
		panelSlide_opacity.start(0,1);
		panelSlide.start(-200,0);
		menuOpened = 1;
		
		var menucontainerSlide = new Fx.Tween('menu_container', {
    duration: 400,
    link: 'cancel',
    property: 'margin-top'
});

//Menu scrolling

var menu_location = 0;
var margintop = $('menu_container').getStyle('margin-top').toInt();
var menu_height = document.getElementById('menu_container').offsetHeight;
						   
$('downarrow').addEvent('click',function(){
if((menu_location+menu_height-458)>0){
menu_location -=200;
margintop = $('menu_container').getStyle('margin-top').toInt();
menucontainerSlide.start((margintop),(menu_location));	
} 
})

$('uparrow').addEvent('click',function(){
if(menu_location<0){
margintop = $('menu_container').getStyle('margin-top').toInt();
menu_location +=200;
menucontainerSlide.start((margintop),(menu_location));	
}
})
		
		
		
		
    },
	onFailure: function(responseText){
menulistOpened = 0;
	 }
});
function requestMenu(){
	menuRequest.send();
}

//Request for hire
var hireRequest = new Request({
    url: 'includes/hire.php',
    method: 'get',
    onSuccess: function(responseText){
        $('panel').set('html', responseText);
		panelSlide_opacity.start(0,1);
		panelSlide.start(-200,0);
		menuOpened = 1;
		  var myForm = document.id('form_c'),
    myResult = document.id('form_c_div');

  new Form.Request(myForm, myResult);
    },
	onFailure: function(responseText){
hireOpened = 0;
	 }
});
function requestHire(){
	hireRequest.send();
}

//Request for contact
var contactRequest = new Request({
    url: 'includes/contact.php',
    method: 'get',
    onSuccess: function(responseText){
        $('panel').set('html', responseText);
		panelSlide_opacity.start(0,1);
		panelSlide.start(-200,0);
		menuOpened = 1;
		
		
		//
		// The elements used.
  var myForm = document.id('form_a'),
  myResult = document.id('form_a_div');
  new Form.Request(myForm, myResult);
		//
		
		
    },
	 onFailure: function(responseText){
contactOpened = 0;
	 }
	

	
});
function requestContact(){
	contactRequest.send();
}




var menuOpened = 0;
var menulistOpened = 0;
var findusOpened = 0;
var hireOpened = 0;
var contactOpened = 0;
var eventsOpened = 0;
var tableOpened = 0;

var infovis = 0;

function openMenu(){
if(menuOpened == 0){
panelSlide_opacity.start(0,1);
panelSlide.start(-200,0);
menuOpened = 1;
	}
}

function closeMenu(){
	if(menuOpened == 1){
panelSlide_opacity.start(1,0);
panelSlide.start(0,-200);
menuOpened = 0;
	}
}

var menuload = 0;
  /* var accordion = new Accordion($$('.toggler'),$$('.element'), { pre-MooTools More */
var accordion = new Fx.Accordion($$('.toggler'),$$('.element'), {
    onComplete: function (){menuload=1;},
	opacity: 0,
    onActive: function(toggler) { toggler.setStyle('color', '#f30');},
    onBackground: function(toggler) { toggler.setStyle('color', '#000'); }
	
  });

var paused = 1;
var currentImage = 0;
/* Menu button functions */

//

var newShow = new Class({ 
 
  Implements: Loop, 
 
  initialize: function(log){ 
    this.setLoop(this.update, 15000); 
    this.log = document.id(log); 
  }, 
 
  update: function(count){ 
   showNextSlow();
  } 
 
}); 

var homeShow = new newShow('log').startLoop();

//
if($('specials')){
$('specials').addEvent('click',function(){
											if(menuload == 1){menuload = 0;
homeShow.startLoop();
closeMenu();
expanded = 1;
menulistOpened = 0;
findusOpened = 0;
hireOpened = 0;
contactOpened = 0;
tableOpened = 0;
eventsOpened = 0;
basic.show(0);
expanded = 1;
arrayposition = 0;
currentImage = 0;
//setPause();
											}
});
}

$('introduction').addEvent('click',function(){
											if(menuload == 1){menuload = 0;
homeShow.startLoop();
closeMenu();
expanded = 1;
menulistOpened = 0;
findusOpened = 0;
hireOpened = 0;
contactOpened = 0;
tableOpened = 0;
eventsOpened = 0;
basic.show(0);
expanded = 1;
arrayposition = 0;
currentImage = 0;
//setPause();
											}
});
//
$('happyhours').addEvent('click',function(){
										  if(menuload == 1){menuload = 0;
homeShow.stopLoop();
closeMenu();
expanded = 1;
menulistOpened = 0;
findusOpened = 0;
hireOpened = 0;
contactOpened = 0;
tableOpened = 0;
eventsOpened = 0;
basic.show(6);
expanded = 1;
arrayposition = 6;
currentImage = 6;
//setPause();
										  }
});
//
$('openingtimes').addEvent('click',function(){
											if(menuload == 1){menuload = 0;
homeShow.stopLoop();
closeMenu();
expanded = 1;
menulistOpened = 0;
findusOpened = 0;
hireOpened = 0;
contactOpened = 0;
tableOpened = 0;
eventsOpened = 0;
basic.show(7);
expanded = 1;
arrayposition = 7;
currentImage = 2;
//setPause();
											}
});
//
var expanderimage = 0;
var expanded = 1;
//
var arrayposition = 0;
imagesArray = new Array(0, 12, 13, 14, 5, 15, 6, 2, 16, 8, 11, 9, 4, 7);




function showImage(){
//basic.show(5);
alert('test');
}


basic.addEvent('showComplete', function(){
setTimeout(function(){
					basic.show(currentImage);
					if(expanded == 0){
					$('menu_image').setStyle('cursor', 'pointer');
					$('table_image').setStyle('cursor', 'pointer');
					$('hire_image').setStyle('cursor', 'pointer');
					$('events_image').setStyle('cursor', 'pointer');
					$('findus_image').setStyle('cursor', 'pointer');
					$('contact_image').setStyle('cursor', 'pointer');
					}
					}, 10);
//alert(currentImage);
});

function showNext(){
arrayposition ++;
if(arrayposition == imagesArray.length){
arrayposition = 0;
}
basic.show(imagesArray[arrayposition]);		
currentImage = imagesArray[arrayposition];
}

function showNextSlow(){
arrayposition ++;
if(arrayposition == imagesArray.length){
arrayposition = 0;
}
basic.show(imagesArray[arrayposition], {
					   duration: 1800
					   });
currentImage = imagesArray[arrayposition];
}

$('nextbutton').addEvent('click',function(){
showNext();
})
$('prevbutton').addEvent('click',function(){
arrayposition -=1;

if(arrayposition < 0){
arrayposition = imagesArray.length-1;
}
//alert(arrayposition);
basic.show(imagesArray[arrayposition]);
currentImage = imagesArray[arrayposition];
})
//

$('menu_image').addEvent('click',function(){
if(expanded == 0){
expand_opacity.start(1,0);
}
closeMenu();
menulistOpened = 0;
findusOpened = 0;
hireOpened = 0;
contactOpened = 0;
tableOpened = 0;
eventsOpened = 0;
expanded =1;
imageOver = 0;
iconOver = 0;
basic.show(5);
currentImage = 5;
menuload=1;
$('menu_image').setStyle('cursor', 'default');
$('controlpanel').setStyle('opacity', '1');
//setPause();
});

$('table_image').addEvent('click',function(){
if(expanded == 0){
expand_opacity.start(1,0);
}
closeMenu();
menulistOpened = 0;
findusOpened = 0;
hireOpened = 0;
contactOpened = 0;
tableOpened = 0;
eventsOpened = 0;
expanded =1;
imageOver = 0;
iconOver = 0;
menuload=1;
$('table_image').setStyle('cursor', 'default');
$('controlpanel').setStyle('opacity', '1');
//setPause();
});

$('hire_image').addEvent('click',function(){
if(expanded == 0){
expand_opacity.start(1,0);
}
closeMenu();
menulistOpened = 0;
findusOpened = 0;
hireOpened = 0;
contactOpened = 0;
tableOpened = 0;
eventsOpened = 0;
expanded =1;
imageOver = 0;
iconOver = 0;
menuload=1;
$('hire_image').setStyle('cursor', 'default');
$('controlpanel').setStyle('opacity', '1');
//setPause();
});

$('events_image').addEvent('click',function(){
if(expanded == 0){
expand_opacity.start(1,0);
}
closeMenu();
menulistOpened = 0;
findusOpened = 0;
hireOpened = 0;
contactOpened = 0;
tableOpened = 0;
eventsOpened = 0;
expanded =1;
imageOver = 0;
iconOver = 0;
menuload=1;
$('events_image').setStyle('cursor', 'default');
$('controlpanel').setStyle('opacity', '1');
//setPause();
});

$('findus_image').addEvent('click',function(){
if(expanded == 0){
expand_opacity.start(1,0);
}
closeMenu();
menulistOpened = 0;
findusOpened = 0;
hireOpened = 0;
contactOpened = 0;
tableOpened = 0;
eventsOpened = 0;
expanded =1;
imageOver = 0;
iconOver = 0;
menuload=1;
$('findus_image').setStyle('cursor', 'default');
$('controlpanel').setStyle('opacity', '1');
//setPause();
});

$('contact_image').addEvent('click',function(){
if(expanded == 0){
expand_opacity.start(1,0);
}
closeMenu();
menulistOpened = 0;
findusOpened = 0;
hireOpened = 0;
contactOpened = 0;
tableOpened = 0;
eventsOpened = 0;
expanded =1;
imageOver = 0;
iconOver = 0;
basic.show(4);
currentImage = 4;
menuload=1;
$('contact_image').setStyle('cursor', 'default');
$('controlpanel').setStyle('opacity', '1');
//setPause();
});



$('menu_image').addEvent('mouseover',function(){
if(expanded == 0){
expand_opacity.start(0,1);
}
});

$('menu_image').addEvent('mouseout',function(){
if(expanded == 0){
expand_opacity.start(1,0);
}
});

$('table_image').addEvent('mouseover',function(){
if(expanded == 0){
expand_opacity.start(0,1);
}
});

$('table_image').addEvent('mouseout',function(){
if(expanded == 0){
expand_opacity.start(1,0);
}
});

$('hire_image').addEvent('mouseover',function(){
if(expanded == 0){
expand_opacity.start(0,1);
}
});

$('hire_image').addEvent('mouseout',function(){
if(expanded == 0){
expand_opacity.start(1,0);
}
});

$('events_image').addEvent('mouseover',function(){
if(expanded == 0){
expand_opacity.start(0,1);
}
});

$('events_image').addEvent('mouseout',function(){
if(expanded == 0){
expand_opacity.start(1,0);
}
});

$('findus_image').addEvent('mouseover',function(){
if(expanded == 0){
expand_opacity.start(0,1);
}
});

$('findus_image').addEvent('mouseout',function(){
if(expanded == 0){
expand_opacity.start(1,0);
}
});

$('contact_image').addEvent('mouseover',function(){
if(expanded == 0){
expand_opacity.start(0,1);
}
});

$('contact_image').addEvent('mouseout',function(){
if(expanded == 0){
expand_opacity.start(1,0);
}
});


//





//

$('right_gallery').addEvent('mouseover',function(){
if(expanded == 1 && completedload == 1){
$('controlpanel').setStyle('opacity', '1');
}
});

$('right_gallery').addEvent('mouseout',function(){
if(expanded == 1 && completedload == 1){
$('controlpanel').setStyle('opacity', '0');
}
});
//

//
$('menu').addEvent('click',function(){
									if(menuload == 1){
homeShow.stopLoop();
if(menuOpened==1 && menulistOpened == 0){
panelSlide_opacity.start(1,0);
panelSlideForMenu.start(0,-200);
} else if(menulistOpened == 0){
requestMenu();
}									
menulistOpened = 1;
findusOpened = 0;
hireOpened = 0;
contactOpened = 0;
tableOpened = 0;
eventsOpened = 0;
								
basic.show(1);
expanderimage = 5;
expanded = 0;
arrayposition = 4;
currentImage = 1;
$('menu_image').setStyle('cursor', 'pointer');
//setPause();
									}
});

//
/*
var preloaderInitialized = 0;
$('gallery').addEvent('click',function(){
									   if(preloaderInitialized == 0){
preloadimages();
preloaderInitialized = 1;
									   }
paused = 0;
basic.show(5);
closeMenu();
$('pause').setStyle('background-image', 'url("images/pause.png")');
if(loaded == 1){
$('slideshow_status').set('text','PLAYING SLIDESHOW');
full.play();
}

menulistOpened = 0;
findusOpened = 0;
hireOpened = 0;
contactOpened = 0;
});
*/
//
$('findus').addEvent('click',function(){
									  if(menuload == 1){menuload = 0;
									  homeShow.stopLoop();
if(menuOpened==1  && findusOpened == 0){
panelSlide_opacity.start(1,0);
panelSlideForFindus.start(0,-200);
} else if(findusOpened == 0){
requestFindus();
}
basic.show(11);
findusOpened = 1;	
menulistOpened = 0;
hireOpened = 0;
contactOpened = 0;
tableOpened = 0;
eventsOpened = 0;
expanded = 0;
arrayposition = 10;
currentImage = 11;
$('findus_image').setStyle('cursor', 'pointer');
//closeMenu();
//setPause();
									  }
});
//
$('table').addEvent('click',function(){
									 if(menuload == 1){menuload = 0;
									 homeShow.stopLoop();
if(menuOpened==1  && tableOpened == 0){
panelSlide_opacity.start(1,0);
panelSlideForTable.start(0,-200);
} else if(tableOpened == 0){
requestTable();
}
basic.show(8);
tableOpened = 1;
eventsOpened = 0;
findusOpened = 0;	
menulistOpened = 0;
hireOpened = 0;
contactOpened = 0;
expanded = 0;
arrayposition = 9;
currentImage = 8;
$('table_image').setStyle('cursor', 'pointer');
//closeMenu();
//setPause();
									 }
});
//
$('events').addEvent('click',function(){
									  if(menuload == 1){menuload = 0;
									  homeShow.stopLoop();
if(menuOpened==1  && eventsOpened == 0){
panelSlide_opacity.start(1,0);
panelSlideForEvents.start(0,-200);
} else if(eventsOpened == 0){
requestEvents();
}
basic.show(9);
tableOpened = 0;
eventsOpened = 1;
findusOpened = 0;	
menulistOpened = 0;
hireOpened = 0;
contactOpened = 0;
expanded = 0;
arrayposition = 11;
currentImage = 9;
$('events_image').setStyle('cursor', 'pointer');
//closeMenu();
//setPause();
									  }
});
//
$('privatehire').addEvent('click',function(){
										   if(menuload == 1){menuload = 0;
										   homeShow.stopLoop();
if(menuOpened==1  && hireOpened == 0){
panelSlide_opacity.start(1,0);
panelSlideForHire.start(0,-200);
} else if(hireOpened == 0){
requestHire();
}
hireOpened = 1;	
menulistOpened = 0;
findusOpened = 0;
contactOpened = 0;
tableOpened = 0;
eventsOpened = 0;
expanded = 0;
//closeMenu();
basic.show(10);
arrayposition = 1;
currentImage = 10;
$('hire_image').setStyle('cursor', 'pointer');
//setPause();
										   }
});
//
$('contactus').addEvent('click',function(){
										 if(menuload == 1){menuload = 0;
homeShow.stopLoop();
if(menuOpened==1  && contactOpened == 0){
panelSlide_opacity.start(1,0);
panelSlideForContact.start(0,-200);
} else if(contactOpened == 0){
requestContact();
}	
basic.show(3);
contactOpened = 1;
menulistOpened = 0;
findusOpened = 0;
hireOpened = 0;
tableOpened = 0;
eventsOpened = 0;
expanded = 0;
arrayposition = 12;
currentImage = 3;
$('contact_image').setStyle('cursor', 'pointer');
//closeMenu();
//setPause();
										 }
});

/*
$('next').addEvent('click',function(){
full.show('next');
});

$('prev').addEvent('click',function(){
full.show('previous');
});


function setPause(){
	if(paused == 0){
full.pause();
$('pause').setStyle('background-image', 'url("images/play.png")');
paused = 1;
if(loaded == 1){
$('slideshow_status').set('text','SLIDESHOW PAUSED');
}
	}
}


$('pause').addEvent('click',function(){

if(paused == 0){
setPause();
} else {
full.play();
$('pause').setStyle('background-image', 'url("images/pause.png")');
paused = 0;
if(loaded == 1){
$('slideshow_status').set('text','PLAYING SLIDESHOW');
}
}
});
*/






		window.onresize = function() {
			setDimensions();
		}
setDimensions();
content_opacity.start(0,1);
//homeShow.stopLoop();

})
