var numberDealtext = 7;
var dealImageName = new Array;
dealImageName[1]="deal/01_.gif";
dealImageName[2]="deal/02_.gif";
dealImageName[3]="deal/03_.gif";
dealImageName[4]="deal/04_.gif";
dealImageName[5]="deal/05_.gif";
dealImageName[6]="deal/06_.gif";
dealImageName[7]="deal/07_.gif";
var dealImage = new Array;
for(var i=1; i<numberDealtext+1; i++){
	dealImage[i]= new Image();
	dealImage[i].src = dealImageName[i];
}


var dealLink = new Array;

dealLink[1]="deal01.html";
dealLink[2]="deal02.html";
dealLink[3]="deal03.html";
dealLink[4]="deal04.html";
dealLink[5]="deal05.html";
dealLink[6]="deal06.html";
dealLink[7]="deal07.html";


text_deal=new Array()
text_deal[1]="RICHARDS PACKADING";
text_deal[2]="HED";
text_deal[3]="COACH USA";
text_deal[4]="ITECH / MISSION";
text_deal[5]="MED-CHEM";
text_deal[6]="POSTLINX / PITNEY BOWES";
text_deal[7]="ACS LIMITED";
var numberDeals = 7;
function getRandomNumberInRange(range) {
	return (Math.round((Math.random()*(range-1))+1));
}
var animationLength = 4500;
var skipFlag = 0;
var showFlag = 0;
function setDeal(){
	var dealRandomNum = getRandomNumberInRange(numberDeals);
	document.getElementById("sp_deal").innerHTML = text_deal[dealRandomNum];
	document.getElementById("img_deal").src = dealImage[dealRandomNum].src;
	document.getElementById("img_deal").style.display = "";
	document.getElementById("a_deal").href = dealLink[dealRandomNum];
	document.getElementById("a_deal1").href = dealLink[dealRandomNum];	
	document.getElementById("sp_deal").href = dealLink[dealRandomNum];
	thetimer = setTimeout("setDeal();", animationLength);
	if(skipFlag == 0 && showFlag == 0 ) document.getElementById("sp_testim").innerHTML = test_text[getRandomNumberInRange(8)];
	skipFlag = (skipFlag == 0)?1:0;
	
}

var show_hide = 0;
function Open_Menu(){
	document.getElementById("div_menu").style.display= (show_hide==0)?"block":"none";
	document.getElementById("selectt").style.backgroundImage= (show_hide==0)?"url('deal/deals_up3.gif')":"url('GUI/selectedtrans3.gif')";
	show_hide=(show_hide==0)?1:0;
}

test_text=new Array()
     test_text[1]="<div class='zoomfit'><div class='test_texth1'>Robert Burns, Former <br>President and CEO<br>and Owner, Itech <br>Sport Products Inc.<div class='test_text_sm'><br>&nbsp;</div><div class='test_text'>&quot;I took great comfort in<br>the obvious experience<br> of the NewPoint&nbsp;Part-<br>ners. Having never <br>been through such a<br>process I faced a ste-<br>ep learning curve. They  clearly explained the<br>options along the way<br> making my deci-<br>sions easier.&quot;<br><br><br></div></div></div>";
     test_text[2]="<div class='zoomfit'><div class='test_texth1'>Jim Wheat, President<br>Great Lakes Quick<br> Lube<div class='test_text_sm'><br>&nbsp;</div><div class='test_text'>&quot;I have come to rely on<br>NewPoint as my outsor-</div><div class='test_text'>ced corporate finance</div><div class='test_text'>team. They don't disap-</div><div class='test_text'>pear once a transaction </div><div class='test_text'>is closed. They are al-</div><div class='test_text'>ways available as a </div><div class='test_text'>sounding board, and are</div><div class='test_text'>happy to give detailed </div><div class='test_text'>advice on potential trans-</div><div class='test_text'>actions even before </div><div class='test_text'> being engaged.&quot;</div></div></div>";
     test_text[3]="<div class='zoomfit'><div class='test_texth1'>Drew McDougal, Pre-<br>sident &amp; CEO, Tele-<br>photo Technologies Inc.<div class='test_text_sm'><br>&nbsp;</div><div class='test_text'>&quot;NewPoint prepared a&nbsp;<br>detailed model of our<br>targeted acquisition and<br>were able to show me<br> the tradeoffs of the va-<br>rious capital structures <br>available to fund the <br>acquisition. Their analy-<br>tical approach is superior<br> to any I have seen.&quot;</div></div></div>";
     test_text[4]="<div class='zoomfit'><div class='test_texth1'>Art Ellias, President &amp;&nbsp;<br>CEO, Hayhurst, Ellias <br>Dudek Inc.<div class='test_text_sm'><br>&nbsp;</div><div class='test_text'>&quot;Their knowledge of<br>potential capital sources&nbsp;<br>is excellent. NewPoint<br>took a rifle shot approach<br>and quickly identified<br>parties whose goals <br>were aligned with mine, <br>and with whom I imme-<br>diately felt comfortable.&quot;</div></div></div>";
     test_text[5]="<div class='zoomfit'><div class='test_texth1'>Graham McBride,<br>Managing Director,<br>Vengrowth Funds<div class='test_text_sm'><br>&nbsp;</div><div class='test_text'>&quot;When we receive an<br>opportunity from&nbsp;<br>NewPoint we know that<br>have scrubbed the<br>deal and put a capital<br>structure that appropri-<br>ately balances risk and<br>return.&quot; </div></div></div>";
     test_text[6]="<div class='zoomfit'><div class='test_texth1'>Ron O'Brien, Presi-<br>dent, MPI Packaging<div class='test_text_sm'><br>&nbsp;</div><div class='test_text'>&quot;NewPoint was prepa-<br>red to invest a signi-<br>ficant&nbsp;of &nbsp;amount of time <br>in assessing my options <br>prior to being engaged.&quot;</div></div></div>";
     test_text[7]="<div class='zoomfit'><div class='test_texth1'>Peter Hampton, Presi-<br>dent &amp; CEO, ACS <br>Limited <div class='test_text_sm'><br>&nbsp;</div><div class='test_text'>&quot;I always rely on <br>NewPoint's undiluted<br>and objective advice. <br>They don't shy away <br>from delivering unpopu-<br>lar views. They gave <br>me the confidence that I <br>knew the real status of <br>the transaction at every <br>point.&quot;</div></div></div>";
     test_text[8]="<div class='zoomfit'><div class='test_texth1'>Tony Keeman, Chair-<br> Sears Business<br>Solutions <div class='test_text_sm'><br>&nbsp;</div><div class='test_text'>&quot;NewPoint has no hid-<br>den agendas. The part-<br>ners only goal was to <br>find  the best financial <br>partners for my com-<br>pany, and not to sell<br> other services or to <br>push<their capital. Their ad-<br>vice was completely unbiased.&quot;</div></div></div>";
 /*    test_text[9]="<div class='zoomfit'><div class='test_texth1'>Jim Walker, Managing<br>Director, Callisto&nbsp;<br>Capital LP<div class='test_text_sm'><br>&nbsp;</div><div class='test_text'>&quot;We think very highly of<br>NewPoint people, and&nbsp;<br>value their professional<br>approach, integrity and<br>ability, whether they are<br>raising capital for their<br>clients, or helping us<br>achieve full value on exit<br>for one of our invest-<br>ments.&quot;</div></div></div>"; */
