// JavaScript Document
$('.rounded').corner('8px');
$('.roundedbordato').corner('8px');
$('.roundedtop').corner("top 8px");
$('.roundedbottom').corner("bottom 8px");
$('.inner').corner("8px");


/*function reindirizza(url){
if(url=='nonurl'){
	urlPag=window.location.href;
}
else {
	urlPag=url;
	} 
if(screen.width<490){
var newdiv = document.createElement('div');
id= "divMobile";
newdiv.setAttribute('id', id);  
newdiv.innerHTML = "<link href='http://www.infomotori.com/content/files/style_mobile.css' rel='stylesheet' type='text/css' >";
document.body.appendChild(newdiv);
}
}*/



function increaseFont(id) {
	//alert(id);
	// $(id).setStyle('fontSize:20px');
	var nomediv= document.getElementById("articlebody");
	 var font_size = nomediv.style.fontSize;
	
    //var font_size = $(id).getStyle('fontSize');
    var font_size_as_int = parseInt(font_size.substr(0, font_size.indexOf('p')));
	// alert(font_size_as_int);
    if(font_size_as_int < 30) {
	    font_size_as_int++; 
    	//$(id).setStyle({'fontSize': font_size_as_int+'px'});
		nomediv.style.fontSize = font_size_as_int+'px';
    }
};

function decreaseFont(id) {
    var nomediv= document.getElementById("articlebody");
	 var font_size = nomediv.style.fontSize;
    var font_size_as_int = parseInt(font_size.substr(0, font_size.indexOf('p')));
    if(font_size_as_int > 6) {
        font_size_as_int--; 
        nomediv.style.fontSize = font_size_as_int+'px';
    }
};
