var zoomto=0;

var zoomout=0;

var wants=0;

var registeredsize=0;

function big(x) {

	if(x==zoomout) return;

	if(zoomout !=0) { if(x!=zoomout) wants=x;return;}

	small();



	

	zoomout=x;



	for(i=1;i<=4;i++)

if(i!=zoomout) {

	document.getElementById("cell"+i).innerHTML=swapsmallcells[i];

}	

	document.getElementById("cell"+zoomout).innerHTML="";

	enlarge (x, 232)	

}



function small(x) {

	

	if(zoomout==x) return;

	if(zoomout==0) return;



		wants=0;

	clearTimeout(zoomto);

	

		document.getElementById("cell"+zoomout).innerHTML="";

	ensmall(registeredsize)

}

function enlarge(x, y) {



	newsize=(158/232)*y

	newmargin=158-newsize;

document.getElementById("cell"+x).style.height=newsize+"px";

document.getElementById("cell"+x).style.marginTop=newmargin+"px";

document.getElementById("cell"+x).style.width=y+"px";

widthleft = 928-y;

widthleft=widthleft/3;

for(i=1;i<=4;i++)

if(i!=x) {

	document.getElementById("cell"+i).style.width=widthleft+"px";

}	

next=y+15;

if(y>=454) {y=454; finalizebig(x)}

else

zoomto=setTimeout("enlarge("+x+","+next+")", 15);	

registeredsize=y;

}



function ensmall(y) {



newsize=(158/232)*y

newmargin=158-newsize;

document.getElementById("cell"+zoomout).style.height=newsize+"px";

document.getElementById("cell"+zoomout).style.marginTop=newmargin+"px";

document.getElementById("cell"+zoomout).style.width=y+"px";

widthleft = 928-y;

widthleft=widthleft/3;

for(i=1;i<=4;i++)

if(i!=zoomout) {

	document.getElementById("cell"+i).style.width=widthleft+"px";

}	

next=y-15;

if(y<=232) {y=232; finalizesmall()}

else	

zoomto=setTimeout("ensmall("+next+")", 15);

registeredsize=y;

}



function finalizebig(x) {

document.getElementById("cell"+x).innerHTML=cells[x];	

}



function finalizesmall() {

document.getElementById("cell1").innerHTML=smallcells[1];	

document.getElementById("cell2").innerHTML=smallcells[2];	

document.getElementById("cell3").innerHTML=smallcells[3];	

document.getElementById("cell4").innerHTML=smallcells[4];	

zoomout=0;

if(wants !=0) {

big(wants);

	wants=0;



}

}

var cells=new Array();

var smallcells=new Array();

var swapsmallcells=new Array();

cells[1]="<div style=\"padding:10px\"><center><b style=\"font-size:16px\">Customer Service</b></center><div style=\"float:left;width:232px;padding-right:10px;\"><img src=\"images/cs_sub.png\"><br /><br />Our customer care team is dedicated to resolving each and every issue with you the first time you call.  If you'd rather not call, you can search our most common issues by looking through our FAQs.   </div><b>Service:</b><br /> 1.877.746.7233<br /><br /><b>Billing:</b><br /> 1.866.437.9625<br /><br /><b>Sales:</b><br /> 1.888.217.2550<br /><br /><b>Tech Support:</b><br /> 1.866.722.9030<br /><br /><b>Online Support:</b><br /><a href=\"faq.php\">FAQs</a><br /><a href=\"contact.php\">Contact</a><br /><a href=\"testimonials.php\">Testimonials</a>";

cells[2]="<div style=\"padding:10px\"><center><b style=\"font-size:16px\">Products and Services</b></center><div style=\"float:left;width:232px;padding-right:10px;\"><img height=\"138\" width=\"232\" src=\"images/equipment_sub2.png\"><br />Pinnacle Security proudly installs GE Security products, but our dedication to quality is more than the products we use; it's in our lifetime guarantee and in our rapid installation time.  <br /><br />Did you know that over 90% of Pinnacle Security systems are installed the same day they were ordered?  </div><br /><b>Most Popular Products:</b><br /><a href=\"panel.php\">Simon XT Panel</a><br /><a href=\"touchscreen.php\">Touchscreen Keypad</a><br /><a href=\"imagesensor.php\">Image Sensor</a><br /><a href=\"ptcamera.php\">Pan/Tilt Camera</a><br /><br /><b>Featured Packages:</b><br /><a href=\"essentials.php\">Security Essentials</a><br /><a href=\"addon.php\">Add To Your Existing System</a><br /><a href=\"athome.php\">Stay At Home</a><br /><a href=\"perimeter.php\">Extended Perimeter Protector</a><br /><br /><b>More Information:</b><br /><a href=\"testimonials.php\">Testimonials</a><br /><a href=\"products.php\">All Products</a>";

cells[3]="<div style=\"padding:10px\"><center><b style=\"font-size:16px\">Testimonials</b><br /><img src=\"images/microtests.png\"></center><br /><i>\"To whom it may concern, thank you for your quick response to my request for your service, everything is working great, we are very happy with the security system and fast response to the alarm. I can now feel safe and comfortable knowing that Pinnacle Security has my back!!\"</i><div align=\"right\">Curtiss M.<br /><a href=\"testimonials.php\">Read All Testimonials...</a></div></div>";

cells[4]="<div style=\"padding:10px\"><center><b style=\"font-size:16px\">Verify Security Consultant or Technician</b></center><div style=\"height:180px\"><div style=\"float:left;width:232px;padding-right:10px\"><img src=\"images/home4.png\" ></div><div style=\"float:left;width:180px\"><form style=\"margin:0;padding-top:20px;\" action=\"https://recruit.pinnsec.com/personinfo/default.aspx\" method=\"GET\">Enter ID #<br /><small>(from badge)</small><br /><input class=\"field\" type=\"text\" name=\"Repnum\" size=\"5\" maxlength=\"5\" style=\"height:30px;width:72px\" /><br /><br /><input type=\"image\" src=\"images/check.png\" value=\"Check\"><br /><br />All Pinnacle representatives are trained to show you their corporate badge upon request.</form></div></div><br />Every Security Consultant, Technician, and Corporate Employee is properly trained and licensed to provide the best possible service to our customers.  If you ever have a compliment, complaint, or concern about a Pinnacle Security representative, please <a href=\"contact.php\">let us know</a></div></div>";





smallcells[1]="<img src=\"http://cdn2.pinnaclesecurity.com/images/home1.jpg\">";

smallcells[2]="<img src=\"http://cdn4.pinnaclesecurity.com/images/home2.jpg\">";

smallcells[3]="<img src=\"http://cdn1.pinnaclesecurity.com/images/home3.jpg\">";

smallcells[4]="<img src=\"http://cdn3.pinnaclesecurity.com/images/home4.jpg\">";



swapsmallcells[1]="<div style=\"height:100%;background-image:url(images/cs_sub.png);background-position:top center\"></div>";

swapsmallcells[2]="<div style=\"height:100%;background-image:url(images/eqipment_sub.png);background-position:top center\"></div>";

swapsmallcells[3]="<div style=\"height:100%;background-image:url(images/test_sub.png);background-position:top center\"></div>";

swapsmallcells[4]="<div style=\"height:100%;background-image:url(images/home4.png);background-position:top center\"></div>";



finalizesmall();


