// JavaScript Document

var originalFontSize = 11;
var currentFontSize = 11;

function decreaseFontSize(sizeDifference) {
currentFontSize = currentFontSize - (sizeDifference);
fontSize = currentFontSize;
//var stObj = document.getElementById('article-contents');
var stObj = document.getElementsByTagName("p");

for(var i=0;i<stObj.length;i++)
{
stObj[i].style.fontSize = fontSize + 'px';
}
//stObj[0].style.fontSize = fontSize + 'px';
}

function increaseFontSize(sizeDifference) {
currentFontSize = currentFontSize + (sizeDifference);
fontSize = currentFontSize;
//var stObj = document.getElementById('article-contents');
var stObj = document.getElementsByTagName("p");

for(var i=0;i<stObj.length;i++)
{
stObj[i].style.fontSize = fontSize + 'px';
}

}

function defaultFontSize() {
var stObj = document.getElementsByTagName("p");

for(var i=0;i<stObj.length;i++)
{
stObj[i].style.fontSize = originalFontSize + 'px';
}

}

function resetFontSize() {
defaultFontSize();
}


function funcall()
{

var lng= document.getElementById("lang");
document.location.href = "http://www.atlas-translations.co.uk/"+lng.options[lng.selectedIndex].value;

}
