$(function() {
		   
	/* Setup product showcase: */
	var images = $('#banner .images img');
	$('#banner .images').empty().append(images).cycle({fx:'scrollHorz', timeout:5000, speed:1250, pager:'.pager .pager-inner', pauseOnPagerHover: true});
	
	// Initialise gallery:
	if ($('#gallery #thumbs img').size()) {
		var gallery = $('#gallery #thumbs').galleriffic({
			numThumbs:10,
			enableBottomPager:false,
			imageContainerSel:'#slideshow',
			captionContainerSel:'#caption-container',
			controlsContainerSel:'#slideshow',
			renderSSControls:false,
			onPageTransitionOut:function(callback) {
				$(this).fadeTo(500, 0, callback);
			},
			onPageTransitionIn:function() {
				$(this).find('a.page-link').hide();
				if (this.displayedPage > 0) $(this).find('a.prev').show();
				if (this.displayedPage < this.getNumPages() - 1) $(this).find('a.next').show();
				$(this).fadeTo(500, 1);
			}
		});
		$(gallery).find('a.prev').click(function(e) {
			gallery.previousPage();
			e.preventDefault();
		});
		$(gallery).find('a.next').click(function(e) {
			gallery.nextPage();
			e.preventDefault();
		});
	}

/*	// Gallery Div Expander
	var the_link = $('#larger-image-link');
	var the_div = $('#gallery');
	var anim_length = 1000;
	var start_height = '447px';
	var end_height = '590px';
	$(the_link).click(function(e) {   
    		if($(the_div).hasClass('expanded')) {
			// div is expanded, so we're going to shrink it
			$(the_div).animate({height:start_height},
			anim_length).removeClass('expanded');
			$(the_link).text('Larger Image');
			
		} else {
			// expand the div
			$(the_div).animate({height:end_height},
			anim_length).addClass('expanded');
			$(the_link).text('Smaller Image');
		}
		e.preventDefault();
	});
*/
	
	$('#slideshow').mousemove(function(e) {
    $(this).find('*').removeAttr('title').removeAttr('alt');
	});
	
	
	//Check checkboxes
	
	//$('#contact-form input:checkbox').attr('checked', 'checked');

	
});

//Disables Right Click

var message="Function Disabled"; //edit this message to say what you want



function clickIE()
{
if (event.button==0) {alert(message); return false;}
}
function clickNS(e)
{
if (document.layers||(document.getElementById&&!document.all))
{
if (e.which==2||e.which==3)
{
alert(message);return false;
}
}
}

if(window.navigator.appName=="Netscape")
{
document.onmouseup=clickNS;
document.oncontextmenu=clickIE;
document.oncontextmenu=new Function("return false")
}
else if (window.navigator.appName=="Microsoft Internet Explorer")
{
document.oncontextmenu=clickIE;
}
else if (window.navigator.appName=="Opera")
{

}
else if (document.layers)
{
document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;
}
else
{
document.onmouseup=clickNS;
document.oncontextmenu=clickIE;
}
