﻿/***Random Ad - for paid ad box***/
var adboxImages = new Array();
var adboxLinks = new Array();  
adboxImages[0] = 'adbox_images/worldox_145x115.gif';
adboxLinks[0] = 'http://www.alanet.org/track.asp?groupid=331&special=&url=http://www.worldox.com/';

adboxImages[1] = 'adbox_images/lfot.jpg';
adboxLinks[1] = 'http://www.alanet.org/track.asp?groupid=386&special=&url=http://info.rocketmatter.com/lfot-2?utm_campaign=ALA-LFOT-BANNER&utm_source=ALA%20LFOT%20BANNER';

adboxImages[2] = 'adbox_images/Legal_145_x_115_Recorders.jpg';
adboxLinks[2] = 'http://www.alanet.org/track.asp?groupid=350&special=&url=http://www.recorders.com/Dragon-NaturallySpeaking-Legal-10.1-pr-16332-c-301.html';

adboxImages[3] = 'adbox_images/UnisourceDiscovery/unisourcediscovery.jpg';
adboxLinks[3] = 'http://www.alanet.org/track.asp?groupid=359&special=&url=http%3A%2F%2Fwww%2Eunisourcediscovery%2Ecom';


adboxImages[4] = 'http://ad.doubleclick.net/ad/N1462.132344.1876732779521/B5154276.2;sz=145x115;ord=[timestamp]?';
adboxLinks[4] = 'http://ad.doubleclick.net/jump/N1462.132344.1876732779521/B5154276.2;sz=145x115;ord=[timestamp]?';

adboxImages[5] = 'adbox_images/Fellowes.jpg';
adboxLinks[5] = 'http://www.alanet.org/track.asp?groupid=380&special=&url=http://www.fellowes.com/fellowes/site/offsite/bankersbox/';

adboxImages[6] = 'adbox_images/FSO-Button-Ad-4.jpg';
adboxLinks[6] = 'http://www.alanet.org/track.asp?groupid=382&special=&url=http://www.fso-outsourcing.com/onsite-outsourcing-solutions/legal-solutions.aspx';

adboxImages[7] = 'adbox_images/PerfectLaw.jpg';
adboxLinks[7] = 'http://www.alanet.org/track.asp?groupid=383&special=&url=http://www.perfectlaw.com';

adboxImages[8] = 'adbox_images/ams.jpg';
adboxLinks[8] = 'http://www.alanet.org/track.asp?groupid=385&special=&url=http://www.ams-legal.com';



/***VIP Random Images***/
var vipadImages = new Array();
var vipboxLinks = new Array();  

var gunlockedate = new Date();
var parsegunlockedate = parseInt(gunlockedate.getFullYear().toString());
var gunlockelink="";

    if(parsegunlockedate >= 2009)
        gunlockelink="http://www.gunlocke.com";
    else
        gunlockelink="http://www.gunlocke.com/conturaflyer/index.html";


vipadImages[0] = 'adbox_images/rhl.jpg';
vipboxLinks[0] = 'http://www.alanet.org/track.asp?groupid=319&special=&url=http://www.roberthalflegal.com/';

vipadImages[1] = 'adbox_images/aba.gif';
vipboxLinks[1] = 'http://www.alanet.org/track.asp?groupid=321&special=&url=http://altfarm.mediaplex.com/ad/ck/7672-41166-17709-3';

vipadImages[2] = 'adbox_images/ups.jpg';
vipboxLinks[2] = 'http://www.alanet.org/track.asp?groupid=323&special=&url=http://www.savewithups.com/ala';

vipadImages[3] = 'adbox_images/gunlocke.jpg';
vipboxLinks[3] = 'http://www.alanet.org/track.asp?groupid=324&special=&url=http://www.gunlocke.com';

vipadImages[4] = 'adbox_images/GLJ.jpg';
vipboxLinks[4] = 'http://www.alanet.org/track.asp?groupid=326&special=&url=http://www.gljinsurance.net';

vipadImages[5] = 'adbox_images/GLJ2.gif';
vipboxLinks[5] = 'http://www.alanet.org/track.asp?groupid=327&special=&url=http://www.principal.com/alaprogram';

vipadImages[6] = 'adbox_images/berger.jpg';
vipboxLinks[6] = 'http://www.alanet.org/track.asp?groupid=363&special=&url=http://www.bergerallied.com/news/ALA.html';

vipadImages[7] = 'adbox_images/NPP.jpg';
vipboxLinks[7] = 'http://www.alanet.org/track.asp?groupid=377&special=&url=http://www.nationalpensionprofessionals.com';

vipadImages[8] = 'adbox_images/affinity.jpg';
vipboxLinks[8] = 'http://www.alanet.org/track.asp?groupid=381&special=&url=http://www.affinityconsulting.com';

vipadImages[9] = 'adbox_images/MPS_ALA_Button_Ad.jpg';
vipboxLinks[9] = 'http://mypaysolutions.com/ALA/?utm_source=ALA-WP&utm_medium=WP&utm_content=S145x115&utm_campaign=VIP1';

vipadImages[10] = 'adbox_images/124549_ALA_ButtonAd_r2a.jpg';
vipboxLinks[10] = 'http://www.alanet.org/track.asp?groupid=387&special=&url=http://www3.prudential.com/cmelinks/ALA/ALA1st_Index.html';

function displayRandomAds(adImg, adLink){
    var adboxLength = adImg.length;
    var preBufferAd = new Array();

     for(i = 0; i < adboxLength; i++){
          preBufferAd[i] = new Image();
          preBufferAd[i].src = adImg[i];
     }
    var whichAdImage = Math.round(Math.random() * (adboxLength - 1));
    document.write('<a href="' + adLink[whichAdImage] + '" target="_blank"><img src="' + adImg[whichAdImage] + '" border="0"></a>');
}



/***************************************Member Directory Ad Boxes**************************************/
function displayMemberDirectoryButtonAds(){
document.write('<div class="adformbg">');
document.write('<img src="/New_template_images/advertisement_header.jpg"/>');
	//Ads go below this line - up to 3 ad images-------------------------------

	document.write('<div style="margin-bottom:5px;"><a href="#"><img src="http://www.alanet.org/MemberResourceDirectory/One.jpg" border="0"/></a></div>');
	document.write('<div style="margin-bottom:5px;"><a href="#"><img src="http://www.alanet.org/MemberResourceDirectory/Two.jpg" border="0"/></a></div>');
	document.write('<div style="margin-bottom:5px;"><a href="#"><img src="http://www.alanet.org/MemberResourceDirectory/Three.jpg" border="0"/></a></div>');

	//Ads go above this line------------------------------------------------------

document.write('</div>');
}

function displayMemberDirectoryBannerAd(){
document.write('<div class="adformbg" style="padding-bottom:5px;width:394px;height:80px;margin-top:20px;">');
document.write('<img src="/New_template_images/advertisement_header.jpg"/><br/>');
	//Ad goes below this line - only 1 ad image------------------------------
		document.write('<a href="#"><img src="http://www.alanet.org/MemberResourceDirectory/four.jpg" border="0"/></a>');
	//Ad goes above this line-------------------------------------------------
document.write('</div>');
}

function displayMemberDirectoryRotatingBannerAd(){
	var rotatingMemberDirectoryBannerAdImages = new Array();
	//Define your rotating ad images as you see below this line-------------------------------------------------------

		rotatingMemberDirectoryBannerAdImages[0] = ["http://www.alanet.org/MemberResourceDirectory/Rotate1.jpg","http://www.alanet.org","_blank"];
		rotatingMemberDirectoryBannerAdImages[1] = ["http://www.alanet.org/MemberResourceDirectory/Rotate2.jpg","http://www.alanet.org","_blank"];
		rotatingMemberDirectoryBannerAdImages[2] = ["http://www.alanet.org/MemberResourceDirectory/Rotate3.jpg","http://www.alanet.org","_blank"];

	//Define your rotating ad images as you see above this line-------------------------------------------------------
	return rotatingMemberDirectoryBannerAdImages;    
}




/***Random testimonies***/
var testimony = new Array();


testimony[0] = '<div style="padding:5px;background-color:#ffffe7"><img src="http://www.alanet.org/about/alaleaders/Alexander_Doris.jpg" align="left" style="border:4px solid #ffffff;margin-right:8px;"/><i>"ALA membership on both the International and Chapter level has proven to be a wonderful opportunity for me. ' +
		'The educational programs, opportunities to network with colleagues and business partners, and endless resources ' +
		'are invaluable. My advice to everyone is take full advantage of all that ALA membership has to offer."</i>' + 
		'<p><b>Samantha N. Allard</b><br/>Center for Medicare Advocacy, Inc.</p></div>';


testimony[1] = '<div style="padding:5px;background-color:#e1e8ee"><img src="http://www.alanet.org/about/alaleaders/Stevens_Robert.jpg" align="left" style="border:4px solid #ffffff;margin-right:8px;"/><i>"The ALA Job Bank is Alston + Bird\'s top choice in helping to recruit top notch legal professionals. The online ' +
		'posting is easy to use and resumes start arriving within days."</i>' +
		'<p><b>Michael G. Stephens, PHR</b><br/>Alston + Bird LLP</p></div>'; 

testimony[2] = '<div style="padding:5px;background-color:#e4eee1"><img src="http://www.alanet.org/about/alaleaders/Esposito_Frederick.jpg" align="left" style="border:4px solid #ffffff;margin-right:8px;"/><i>"The CLM designation has given me renewed confidence in both my personal and professional capabilities. While ' +
		'sitting for the exam was challenging, it was well worth the effort. Having the CLM designation shows extraordinary ' +
		'dedication and commitment to the profession – something that employers look for."</i>' +
		'<p><b>Fred Esposito, Jr., CLM</b><br/>Meyer Suozzi English & Klein, PC</p></div>';

testimony[3] = '<div style="padding:5px;background-color:#eee7e1"><img src="http://www.alanet.org/about/alaleaders/Lang_Eileen.jpg" align="left" style="border:4px solid #ffffff;margin-right:8px;"/><i>"Listing our open positions with ALA has always provided Legal Resource Group with another excellent way to contact ' +
		'potential candidates."</i><p><b>Bob Lang, Partner</b><br/>Legal Resource Group, LLC</p></div>';

testimony[4] = '<div style="padding:5px;background-color:#e7e1ee"><img src="http://www.alanet.org/about/alaleaders/Sullivan_John.jpg" align="left" style="border:4px solid #ffffff;margin-right:8px;"/><i>"ALA\’s Management Solutions program is one of, it not the, strongest program that the Association offers to its ' +
		'members. I have used the program many times and I am always impressed with the response time and the appropriateness ' +
		'of the information provided. It is a great way to share with your firm that ALA truly is The Source of Legal ' +
		'Management Information & Knowledge."</i><p><b>Carolyn M. Sutton</b><br/>McGuireWoods LLP</p></div>';


testimony[5] = '<div style="padding:5px;background-color:#eee1eb"><img src="http://www.alanet.org/about/alaleaders/Lane_Patti_bw.jpg" align="left" style="border:4px solid #ffffff;margin-right:8px;"/><i>"I\’m proud to have earned the CLM designation and, for me, it has made a difference in my career by providing ' +
		'prospective employers with a certain degree of assurance that I have the knowledge base to perform the essential ' +
		'duties of a legal administrator. The CLM is quite specific to our industry, and it has provided me personal ' +
		'satisfaction and a sense of accomplishment in a profession which has a wide range of educational credentials and ' +
		'experience."</i><p><b>Patricia Lane, CLM</b><br/>McKenna Long & Aldridge LLP</p></div>';




function displayRandomText(textArray){
    var randomLength = textArray.length;
   
    var whichText = Math.round(Math.random() * (randomLength - 1));
    document.write('<div>' + textArray[whichText] + '</div>');
}


