
$(function(){$('a[rel="external"], form.form-external').attr({'target':'_blank'});if($('#Slider img').length>1){$('#Slider').nivoSlider({slices:1,effect:'fade',animSpeed:1500,pauseTime:5000,captionOpacity:0.75,directionNavHide:false});}else{var title=$("#Slider > img").attr("title");if(title)$("#Topimage-Container").append('<div class="caption"><p>'+title+'</p></div>');}
$("#Mainmenu li.item").hover(function(){$("#Mainmenu li.item").removeClass('hover');$(this).addClass('hover');},function(){$(this).removeClass('hover');});$("#Serviceboxes ul li").hover(function(){$(this).addClass('hover');},function(){$(this).removeClass('hover');});$("#Serviceboxes ul li ul").hover(function(){$(this).addClass('hover');},function(){$(this).removeClass('hover');});$("").hover(function(){$(this).addClass('hover');},function(){$(this).removeClass('hover');});if($('div.proserv').length){$('div.box',$(this)).each(function(){var heading=$('h2',$(this)).html();var list=tooltips[heading].join('<br>');var gravity;if($(this).position().top<20)gravity='n';else if($(this).position().left<50)gravity='w';else if($(this).position().left>600)gravity='e';else gravity='s';$(this).data('tooltip',list).data('gravity',gravity).addClass('tooltip');});}
$('.tooltip').tipsy({html:true,gravity:'e'});var current_url=$('#fb-index').attr("title");if(!current_url){current_url=window.location.protocol+"//"+window.location.hostname+window.location.pathname;}
$('#fb-index').html('<iframe allowtransparency="true" frameborder="0" scrolling="no" src="http://www.facebook.com/plugins/like.php?app_id=155528857859795&amp;href='+current_url+'&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=35" style="border:none; overflow:hidden; width:450px; height:35px;"></iframe>');if($('.quote').length){$(".quote").css("top",$(".middle p:first").position().top);}
if($('.servicetype h1').length){$('.servicetype h1').html($('.servicetype h1').html().replace("Professional Services","<em>Professional Services</em>"));}
if($('.clienttype h1').length){$('.clienttype h1').html($('.clienttype h1').html().replace("Professional Services","<em>Professional Services</em>"));}});
