window.addEvent('domready', function() {
	
	var start = Cookie.read('fontsize') || '11';
	$('tbHome').setStyle('font-size',start + 'px');
});

function incFont() {
	font_Size = $('tbHome').style.fontSize.replace('px','');
	if (font_Size >= 17)
		return;
	font_Size = parseInt(font_Size)+1; 
	Cookie.write('fontsize',font_Size);
	$('tbHome').setStyle('font-size',font_Size + 'px');
}

function redFont() {
	font_Size = $('tbHome').style.fontSize.replace('px','');
	if (font_Size <= 9)
		return;
	font_Size = parseInt(font_Size)-1; 
	Cookie.write('fontsize',font_Size);
	$('tbHome').setStyle('font-size',font_Size + 'px');
}

function printDiv(){
	
	var divToPrint = $('dvContent');
	var newWin = window.open("");
	var _pr = document.getElementById('__pr').value;
	
	var cnt = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n' +
		  '<html xmlns="http://www.w3.org/1999/xhtml">\n' +
		  '<head>\n' +
		  '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\n' +
		  '<title>'+document.title+'</title>\n' +
		  '<meta name="description" content="Internation Journal of Environmental Science and Technology" />\n' +
		  '<link rel="stylesheet" type="text/css" href="'+_pr+'inc/css/style.css" media="screen" />\n' +
		  '<script type="text/javascript" src="'+_pr+'inc/js/mt/mootools.js" ></script>\n' +
		  '<script type="text/javascript" src="'+_pr+'inc/js/font.resize.js" ></script>\n' +
		  '</head>\n' +
		  '<body>\n' +
		  divToPrint.innerHTML +
		  '</body>\n' +
		  '</html>';
	newWin.document.write(cnt);
    newWin.document.close();  
    newWin.focus();
    newWin.print();
    //newWin.stop();    
    //newWin.close();
}

function emailEd(manu,refe) {
	
	x=screen.width/2-250;
	y=screen.height/2-135;
	features='scrollbars=yes,width=500,height=300,top='+y+',left='+x;
	window.open('journal/email.ed?manu='+manu+'&refe='+refe,'',features);
	
}

