
var w = 480, h = 340;
if (document.all || document.layers) {
	w = screen.availWidth;
	h = screen.availHeight;	
}
var popW = 1000;
var popH = 600;
var leftPos = (w-popW)/2;
var topPos = (h-popH)/2;

function extPop(extLink){
	var popup=window.open(extLink,'a','toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=' + popW + ',height=' + popH + ',top=' + topPos + ',left=' + leftPos );
	popup.focus();
}
function extPop2(extLink2, extTitle2){
	var popup=window.open(extLink2,extTitle2,'toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=' + popW + ',height=' + popH + ',top=' + topPos + ',left=' + leftPos);
	popup.focus();
}

var returnValue1 = true, 
	quoteText = ["Bar Select is a fantastic concept that meets a significant need ; by shaping the way legal advice is purchased and how barristers are engaged this will not only make the market more accessible, I suspect it will broaden and deepen that market as well.",
				 "In-house lawyers like me are under ever increasing pressure to spend less and deliver more. I welcome the arrival of Bar Select, as it greatly improves my ability to identify the right barrister available to advise on a legal issue, making it much easier for me to tap into this source of real value for my company."],
	
	quoteName = ["Paul Gilbert", "Steve Weatherley"], 
	quoteCompany = ["Chief Executive of LBC Wise Counsel","Commercial Counsel, William Grant & Sons Ltd"], 
	quoteLink = ["http://www.lbcwisecounsel.com","http://www.wgrant.com/"],
	len1 = (quoteText.length + quoteName.length + quoteCompany.length + quoteLink.length) / 4;
	
var returnValue2 = true, 
	quoteText2 = ["Bar Select is a fantastic concept that meets a significant need ; by shaping the way legal advice is purchased and how barristers are engaged this will not only make the market more accessible, I suspect it will broaden and deepen that market as well.", 
				 "The Bar is highly fragmented with over 13,000 barristers spread across over 330 chambers which may often mean calling around many chambers before you can find someone suitable who is available to take on your work. This is not efficient.",
				 "In-house lawyers like me are under ever increasing pressure to spend less and deliver more. I welcome the arrival of Bar Select, as it greatly improves my ability to identify the right barrister available to advise on a legal issue, making it much easier for me to tap into this source of real value for my company."],
	
	quoteName2 = [ "Paul Gilbert", "Peter Rouse","Steve Weatherley"], 
	quoteCompany2 = ["Chief Executive of LBC Wise Counsel", "Bar Select","Commercial Counsel, William Grant & Sons Ltd"], 
	quoteLink2 = ["http://www.lbcwisecounsel.com", "http://www.barselect.co.uk","http://www.wgrant.com/"],
	len2 = (quoteText2.length + quoteName2.length + quoteCompany2.length + quoteLink2.length) / 4;
	
var returnValue3 = true, 
	quoteText3 = ["Bar Select is a fantastic concept that meets a significant need ; by shaping the way legal advice is purchased and how barristers are engaged this will not only make the market more accessible, I suspect it will broaden and deepen that market as well.", 
				 "We will be taking out our message to solicitors and others and forming alliances to promote the use of Bar Select as a key resource for selecting and instructing barristers. Bar Select will be working hard to build market share for the Bar and so serving the interests of its members and purchasers of legal services looking for quality and value for money.",
				 "In-house lawyers like me are under ever increasing pressure to spend less and deliver more. I welcome the arrival of Bar Select, as it greatly improves my ability to identify the right barrister available to advise on a legal issue, making it much easier for me to tap into this source of real value for my company."],
	
	quoteName3 = ["Paul Gilbert", "Peter Rouse","Steve Weatherley"], 
	quoteCompany3 = ["Chief Executive of LBC Wise Counsel", "Bar Select","Commercial Counsel, William Grant & Sons Ltd"], 
	quoteLink3 = ["http://www.lbcwisecounsel.com", "http://www.barselect.co.uk","http://www.wgrant.com/"],
	len3 = (quoteText3.length + quoteName3.length + quoteCompany3.length + quoteLink3.length) / 4;

/*

<a href="#" onclick="extPop('http://www.lbcwisecounsel.com/'); return false;">
							
*/

if((len1*2)%2 == 1){returnValue=false;}


function quote(){
	if(returnValue1==false)
	{document.write('<img src="../../images/advert.gif"  height="10" alt="">');return false;}
	var rand = Math.floor(len1*Math.random())
	document.write("<q>" + quoteText[rand] + "</q><a href=\"#\" onclick=\"extPop('"+quoteLink[rand]+"'); return false;\"><em>" + quoteName[rand] + "</em> <i>" + quoteCompany[rand] + "</i></a>");
} 
function quote2(){
	if(returnValue2==false)
	{document.write('<img src="../../images/advert.gif"  height="10" alt="">');return false;}
	var rand = Math.floor(len2*Math.random())
	document.write("<q>" + quoteText2[rand] + "</q><a href=\"#\" onclick=\"extPop('"+quoteLink2[rand]+"'); return false;\"><em>" + quoteName2[rand] + "</em> <i>" + quoteCompany2[rand] + "</i></a>");
} 
function quote3(){
	if(returnValue3==false)
	{document.write('<img src="../../images/advert.gif"  height="10" alt="">');return false;}
	var rand = Math.floor(len3*Math.random())
	document.write("<q>" + quoteText3[rand] + "</q><a href=\"#\" onclick=\"extPop('"+quoteLink3[rand]+"'); return false;\"><em>" + quoteName3[rand] + "</em> <i>" + quoteCompany3[rand] + "</i></a>");
} 



