/** 
* ======================================================
* $Workfile:   8-1_scripts.js  $
* $Revision:   1.3  $
* $Date:   Apr 12 2010 10:13:50  $
* $Author:   kumark4  $
* $Archive:   //legal.regn.net/npv/Dev-Archives/Development_Area/archives/LargeLaw/PageDesigner/Phoenix/FrontEnd/Code/LexisNexis/Website/Assets/js/8-1/8-1_scripts.js-arc  $
* ======================================================
* Change History:
* 1.00 initial revision
**/

/*	<><><><><><>
//	Local functions :: all functions are specific for just the linked series
//	These functions can be used with jQuery core
<><><><><><>*/ 

//  create resuable short name for jQuery no conflict
var $j = jQuery.noConflict();

function formatHeader() {	
	if(!$j('#firmLogo').html()) {
		$j('#firmLogo').remove();
		$j('#firmName').width('100%');
	}
/*	m()m	*/
}


function roundCorners() {	
// we are checking to see if users are using an IE flavor browser and if so then add extra divs to pods to implement rounded corner solution
//	IE flavor browsers do NOT support opacity features see: http://docs.jquery.com/Utilities/jQuery.support
	if(!jQuery.support.opacity) {
		/*	call firm now button	*/
		$j('a.aCallNow').wrap('<div class="roundedContainer"></div>');
		$j('.roundedContainer').prepend('<div class="topCorners"></div>');
		$j('.roundedContainer').append('<div class="bottomCorners"></div>');
	}
/*	m()m	*/
}

function resizeVideo() {
	if($j('object')) {
		$j('object').css({width:'210px',height:'168px'});
		$j('embed').css({width:'210px',height:'168px'});
	}
}

//<div id="callNow"><a class="aCallNow" href="javascript:webVoicePop('Template=464363')"><span>Call Firm Now</span></a></div>
$j(document).ready(function () {
    $j('#phone span:last').css({fontSize:'150%'});
	formatHeader();
	roundCorners();
	resizeVideo();
});
/*	m()m	*/
