function getV(value){
	return parseInt(value.substring(0, value.lastIndexOf('p')));
}
function basename(path, suffix) {
    // http://kevin.vanzonneveld.net
    // +   original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // +   improved by: Ash Searle (http://hexmen.com/blog/)
    // +   improved by: Lincoln Ramsay
    // +   improved by: djmix
    // *     example 1: basename('/www/site/home.htm', '.htm');
    // *     returns 1: 'home'
 
    var b = path.replace(/^.*[\/\\]/g, '');
    
    if (typeof(suffix) == 'string' && b.substr(b.length-suffix.length) == suffix) {
        b = b.substr(0, b.length-suffix.length);
    }
    
    return b;
}
function add(id,prop,value){
	eval("document.getElementById('"+id+"').style."+prop+" = '"+value+"'");
}
function get(id,prop){
	return eval("document.getElementById('"+id+"').style."+prop+"");
}
function lupa_on(level,left,id){
	if(left==0)left=3;
	
	//id.style.position = "absolute";
	id.style.top = "-"+(id.height/2)+"px";
	id.style.left = "-"+(id.width/2)+"px";
	if(id.width==150)id.width *=2;
	if(id.height==100)id.height *=2;
	//id.height *=2;
//	id.style.left = 50+(left-1)*220+"px";
}
function lupa_off(id){
	id.style.position = "relative";
	id.style.top = 0+"px";
	if(id.width==300){id.width /=2; }else{id.height /=2;}
	if(basename(id.src)=="107.jpg"){  id.height /=2;}
	//id.height /=2;
	id.style.left = 0+"px";
}
function lupa2_on(id){
	id.height *= 1.5;
	id.style.position = "absolute";
	id.style.top = "-10px";
	id.style.left = "-20px";
	id.width *=1.5;
	id.style.zIndex = 5;
	document.getElementById("automatizari").zIndex = 1;
}
function lupa2_off(id){
	id.style.position = "relative";
	id.style.top = 0+"px";
	id.height /=1.5;
	id.style.zIndex = 1;
	id.width /=1.5;
	id.style.left = 0+"px";
}

