var middleHeight;
var leftHeight;
var rightHeight;
var middleContainer;
var leftContainer;
var rightContainer;
var arrayHeight;
var tallestHeight;


function setHeightVar(){
	middleHeight = document.getElementById("middle").offsetHeight;
	leftHeight = document.getElementById("left").offsetHeight;
	rightHeight = document.getElementById("right").offsetHeight;

	middleContainer = document.getElementById("middle_container");
	leftContainer = document.getElementById("left_container");
	rightContainer = document.getElementById("right_container");

	arrayHeight = [middleHeight, leftHeight, rightHeight, 750];
	tallestHeight = Math.max.apply(Math, arrayHeight);

	tallestHeight = tallestHeight + "px";
}

function setHeight(){
	middleContainer.style.minHeight = tallestHeight;
	leftContainer.style.minHeight = tallestHeight;
	rightContainer.style.minHeight = tallestHeight;
}

var fbbox;

function createfbbox(){
fbbox = document.getElementById("fb_like_box");
//fbbox.innerHTML = "<iframe src='http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fcamscomputers&amp;width=190&amp;colorscheme=light&amp;show_faces=true&amp;stream=false&amp;header=true&amp;height=330' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:190px; height:330px;' allowTransparency='true'></iframe>"
fbbox.innerHTML = "<iframe src='http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fcamscomputers&amp;width=190&amp;colorscheme=light&amp;show_faces=false&amp;border_color=red&amp;stream=false&amp;header=true&amp;height=75' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:190px; height:75px;' allowTransparency='true'></iframe>"
}	

var gpbox;
function creategpbox(){
gpbox = document.getElementById("gp_box");
gpbox.innerHTML= "<div class='g-plusone' data-size='standard' data-count='true'></div>";
}

function doall(){
	createfbbox();
	creategpbox();
	setHeightVar();
	setHeight();
	}

function urlopen( location ){
	open( location );
}

var gmap;

function makemap(){
gmap = document.getElementById("gmap");
gmap.innerHTML = "<iframe width='400' height='400' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' src='http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=Cams+Computers,+Lincoln+Ave,+Charleston+IL&amp;aq=&amp;sll=37.0625,-95.677068&amp;sspn=33.764224,86.572266&amp;ie=UTF8&amp;hq=Cams+Computers,&amp;hnear=Lincoln+Ave,+Charleston,+Illinois&amp;cid=15008944110887787830&amp;ll=39.503511,-88.17421&amp;spn=0.052981,0.068665&amp;z=13&amp;iwloc=A&amp;output=embed'></iframe><br /><small><a href='http://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=Cams+Computers,+Lincoln+Ave,+Charleston+IL&amp;aq=&amp;sll=37.0625,-95.677068&amp;sspn=33.764224,86.572266&amp;ie=UTF8&amp;hq=Cams+Computers,&amp;hnear=Lincoln+Ave,+Charleston,+Illinois&amp;cid=15008944110887787830&amp;ll=39.503511,-88.17421&amp;spn=0.052981,0.068665&amp;z=13&amp;iwloc=A' style='color:#0000FF;text-align:left'>View Larger Map</a></small>"
}
	

