function scheduleGoogleTranslateDecoration(event){
setTimeout(function() {
	var googlTrans = new Array();
	var customGetElementsByClassName = function (className, tag) {
		if (document.getElementsByClassName) return document.getElementsByClassName (className);
		else return IEGetDivsByClassName (className, tag);
	}
	googlTrans = customGetElementsByClassName('goog-te-gadget-simple', 'div');
	if(googlTrans[0]){ 
		googlTrans[0].style.fontSize = '9px';
		googlTrans[0].style.backgroundColor = 'transparent';
		googlTrans[0].style.color = '#fff';
		var googlTransImg = customGetElementsByClassName('goog-te-gadget-icon', 'img');
		if (googlTransImg[0]) googlTransImg[0].style.display = 'none';
		var googleTransText = customGetElementsByClassName('goog-te-menu-value', 'a');
		if (googleTransText[0]) googleTransText[0].style.color = '#fff';
	}
	else setTimeout(arguments.callee, 500);
}, 600);
}

function IEGetDivsByClassName (searchedName, tag) {
var result = new Array(), div = document.getElementsByTagName(tag), i=0, j=0, element = null;
while (element = div[i++]) {
  if (element.className == searchedName) {
	result[j++] = element;
  }
}

return result;
}

function IEContentLoaded (w, fn) {
var d = w.document, done = false,
// only fire once
init = function () {
	if (!done) {
		done = true;
		fn();
	}
};
// polling for no errors
(function () {
	try {
		// throws errors until after ondocumentready
		d.documentElement.doScroll('left');
	} catch (e) {
		setTimeout(arguments.callee, 50);
		return;
	}
	// no errors, fire
	init();
})();
// trying to always fire before onload
d.onreadystatechange = function() {
	if (d.readyState == 'complete') {
		d.onreadystatechange = null;
		init();
	}
};
}


if (document.addEventListener) {
document.addEventListener("DOMContentLoaded", scheduleGoogleTranslateDecoration, true);
} else if (document.attachEvent && !window.opera) {
	IEContentLoaded (window,scheduleGoogleTranslateDecoration); 
}
	

