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(7)];
	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'>Hugh Owen, CEO<br>Owen Media Partners<div class='test_text_sm'><br>&nbsp;</div><div class='test_text'>&quot;NewPoint was prepared to invest a significant of amount of time in assessing my options prior to being engaged.&quot;<br><br><br></div></div></div>";
     test_text[2]="<div class='zoomfit'><div class='test_texth1'>David McIntyre,<br>President,<br>Centra Industries Inc.<div class='test_text_sm'><br>&nbsp;</div><div class='test_text'>&quot;I rely on NewPoint as my outsourced corporate finance team. They don't disappear once a transaction is closed. They are always available as a sounding board, and are happy to give detailed advice on potential transactions even before being engaged.&quot;</div></div></div>";
     test_text[3]="<div class='zoomfit'><div class='test_texth1'>Peter Hampton,<br>President &amp; CEO,<br>Active Exhaust Corp.<div class='test_text_sm'><br>&nbsp;</div><div class='test_text'>&quot;I always rely on NewPoint's undiluted and objective advice.  They don't shy away from delivering unpopular views. They gave me the confidence that I knew the real status of the transaction at every point.&quot;</div></div></div>";
     test_text[4]="<div class='zoomfit'><div class='test_texth1'>Art Ellias,<br>President &amp; CEO<br>Hayhurst, Ellias <br>Dudek Inc.<div class='test_text_sm'><br>&nbsp;</div><div class='test_text'>&quot;Their knowledge of potential capital sources is excellent. NewPoint took a rifle shot approach and quickly identified parties whose goals were aligned with mine, and with whom I immediately felt comfortable.&quot;</div></div></div>";
     test_text[5]="<div class='zoomfit'><div class='test_texth1'>Drew McDougall,<br>Former President & CEO, TelePhoto Technologies Inc.<div class='test_text_sm'><br>&nbsp;</div><div class='test_text'>&quot;NewPoint prepared a detailed model of our targeted acquisition and were able to show me the tradeoffs of the various capital structures available to fund the acquisition. Their analytical approach is superior to any I have seen.&quot; </div></div></div>";
     test_text[6]="<div class='zoomfit'><div class='test_texth1'>Tony Keenan,<br>Chairman,<br>Sears Business Solutions<div class='test_text_sm'><br>&nbsp;</div><div class='test_text'>&quot;NewPoint has no hidden agendas. Their only goal was to find the best financial partners for my company, and not to sell other services.&quot;</div></div></div>";
     test_text[7]="<div class='zoomfit'><div class='test_texth1'>Robin Burns,<br>Former President and CEO and Owner, <br>Itech Sport Products Inc.<div class='test_text_sm'><br>&nbsp;</div><div class='test_text'>&quot;I took great comfort in the obvious experience of NewPoint. Having never been through such a process I faced a steep learning curve. They clearly explained the options along the way making my decisions easier.&quot;</div></div></div>";

