// JavaScript Document
function loadService(id){
	window.location = 'services.php?id=' + id;
	}

function loadClient(cat,id){
	window.location = 'clients.php?cat=' + cat + '&id=' + id;
	}

function loadCase(id){
	window.location = 'caseStudies.php?id=' + id;
	}

function contactSlide(){
	var slide = new FX.Slide();
}

function showPressImage(image){
	$('pageAnimationPress').innerHTML = '<img src="' + image + '"/>';
}

function readIt(boolval){
//-----------------------------------------------------------------------------
	//Read Article Slider
	var content = new Fx.Styles('scrollerF', {duration:300, wait:false});
	var picture = new Fx.Styles('newsThumbHolder', {duration:300, wait:false});
	
	if($('scrollerF').getCoordinates().height < 350){
		
		value = boolval;
		
		picture.start({
			'height' : '13'		  
		});
		content.start({
			'height' : '350'		  
		});
		
		$('readIt').innerHTML = 'Close Article';
	}
	else{
		picture.start({
			'height' : '350'		  
		});
		content.start({
			'height' : '15'		  
		});
		
		$('readIt').innerHTML = 'Read Article';
	}
}

/*
function buttonRollOver(element){
	$$('celebrityButton').setStyle.visibility = 'visible';
	var myOpacity = new Fx.Style(element,'opacity').start(0,.25);
}
			
function buttonRollOut(element){
	var myOpacity = new Fx.Style(element,'opacity').start(.25,0);
}*/