Athletes, Energy Drinks, Addiction & Substance Abuse – A Risky Combination
October 31st, 2009// < ![CDATA[
function resizeImage() {
var imgBox = document.getElementById('imageBox');
var photo = document.getElementById('storyphoto');
if (imgBox != null & photo != null)
{
if(photo.width >= 460)
{
imgBox.className = ‘imagesize460′;
}
else
{
if(photo.width >= 300)
{
imgBox.className = ‘imagesize310′;
}
else
{
imgBox.className = ‘imageboxpadding’;
}
imgBox.style.width = photo.width + ‘px’;
}
}
}
function getStoryFontSize() {
var storyfontsize = getCookie(’storyfontsize’);
// use cookied value, if present
if (storyfontsize != null)
{
setClass(’story_content’,storyfontsize);
}
else // default it to para14 if [...]