function propergateformfeild(idname,valuetext){
values = jQuery(idname).attr('value');

if(values != valuetext && values == undefined){

jQuery(idname).attr('value',valuetext);
jQuery(idname).click(function(){
jQuery(idname).attr('value','');});}}

function imagehover(idnom,img1,img2,eqi){

jQuery(idnom).eq(eqi).hover(function(){

	jQuery(idnom).eq(eqi).find('img').attr('src',img1);

},function(){

	jQuery(idnom).eq(eqi).find('img').attr('src',img2);

});


}

jQuery(document).ready(function(){

imagehover('#pagelinks a','/images/project_mang_hover.jpg','/images/project_managment.jpg',0);
imagehover('#pagelinks a','/images/expert_witness_hover.jpg','/images/expert.jpg',1);
imagehover('#pagelinks a','/images/advisory_hover.jpg','/images/advisory_support.jpg',2);
imagehover('#pagelinks a','/images/contact_hover.jpg','/images/contact_future_directions.jpg',3);
propergateformfeild('#posted-name','Name:');
propergateformfeild('#posted-email','Email:');
propergateformfeild('#posted-tel','Telephone:');
propergateformfeild('#search input','Search');
propergateformfeild('#posted-enquiry','Enquiry:');
jQuery('#slideshow ul').innerfade({speed: 2000,timeout: 7000,type: 'sequence',containerheight: '218px'});
slideshowamount = jQuery('#slideshow ul li').length;
for(i = 1; i <= slideshowamount; i++){if(i == 1){jQuery('#circle_links').append("<a class='"+i+"' id='active'>"+i+"</a>")}else{jQuery('#circle_links').append("<a class='"+i+"'>"+i+"</a>")}}circldiv = slideshowamount*40;jQuery('#circle_links').css('width',circldiv);jQuery('#circle_links a').click(function(){jQuery('#circle_links a').attr('id','');jQuery(this).attr('id','active');numbernav =jQuery(this).attr('class');current = numbernav--;jQuery('#slideshow li').hide();jQuery('#slideshow li').eq(numbernav).show();});});
