// JavaScript Document
$(document).ready(function() {				  
	// 
	$('#phone').hover(
		function(){
			$(this).css({background:'url(css/img/phone.on.gif) no-repeat left bottom'});
		},
		function(){
			$(this).css({background:'url(css/img/phone.gif) no-repeat left bottom'});
		}
	);
	// http://jquery.lukelutman.com/plugins/flash/
	$('.swf').flash({
	    src: 'swf/home_ani.swf',
	    'wmode': 'transparent',
	    width: 960,
	    height: 216,
	    version: 9
	});
	$('.swf').css('zIndex', 1);
	$('.dropdown').css('zIndex', 100);
	
	// -- HEADER LINKS
	$('#Team-ddheader').click( function() { 
		//	window.open('http://www.YourLinkHere.com','_self'); 
        window.open('index.php?p=1','_self');  
        return false; 
    });
	$('#Serv-ddheader').click( function() { 
        window.open('index.php?p=2','_self');  
        return false; 
    });
	$('#Ind-ddheader').click( function() { 
        window.open('index.php?p=3','_self');  
        return false; 
    });
	$('#Care-ddheader').click( function() { 
        window.open('index.php?p=4','_self');  
        return false; 
    });
	$('#Articles-ddheader').click( function() { 
        window.open('index.php?p=5','_self');  
        return false; 
    });
	$('#Cont-ddheader').click( function() { 
        window.open('index.php?p=6','_self');  
        return false; 
    });
	// round all the corners for the  grey boxes
	$('div[@id="greybox"]').each(function(k,s) {
		$(s).wrap("<div id='greyCorner'></div>");
		$(s).parent("#greyCorner").corner("7px");
	});
	// round all the corners for the  grey boxes
	$('div[@id="whitebox"]').each(function(k,s) {
		$(s).wrap("<div id='whiteCorner'></div>");
		$(s).parent("#whiteCorner").corner("7px");
	});
	
	// highlight company name
	//$.highlight(this, "BEACH FREEMAN LIM & CLELAND");
	//$.highlight(this, 'Beach Freeman Lim & Cleland');
	
	// ADD arrows to side quote
	$('p[@id="quote"]').each(function(k,s) {
		$('<div id="qarrow">&raquo;</div>').insertBefore(s);
	});
});