	var gB = getBrowser();
	
	function onClickPaletteSet(image, IDs, ID, upload)
	{
		aIDs	=	IDs.split("|");
			
		for(i=0;i<aIDs.length;++i)
		{
			document.getElementById("XNOTE_" + aIDs[i]).style.display = 'none';
		}
			
		document.getElementById("XNOTE_" + ID).style.display = 'inline';
		
		eval("document.images['BIGVIEW'].src = '" + upload + image + "'");
	}
		
	function onMousePaletteSet( x, stav, image, IDs, ID, upload)
	{
		if(stav)
		{
			aIDs	=	IDs.split("|");
				
			for(i=0;i<aIDs.length;++i)
			{
				document.getElementById("XNOTE_" + aIDs[i]).style.display = 'none';
			}
				
			document.getElementById("XNOTE_" + ID).style.display = 'inline';	
				
			x.style.textDecoration = 'underline';
			if(gB == 1 || gB == 3) {x.style.cursor = 'hand';}
			if(gB == 2 || gB == 4) {x.style.cursor = 'pointer';}
				
			eval("document.images['BIGVIEW'].src = '" + upload + image + "'");
		}
		else
		{
			x.style.cursor = 'none';
			x.style.textDecoration = 'none';
		}
	}

	function magnifyON( ID, x, y )
	{
		document.images['IMAGESMALL_' + ID].width	=	x;
		document.images['IMAGESMALL_' + ID].height	=	y;
	}

	function magnifyOFF(allID, widthSmall, getX, getY)
	{
		_allID	=	allID.split("|");
		
		aGetX	=	getX.split("|");
		aGetY	=	getY.split("|");
		
		for(i=0;i<_allID.length;++i)
		{
			con	=	aGetY[i]	/	widthSmall;
			con	=	aGetX[i]	/	con;
				
			document.images['IMAGESMALL_' + _allID[i]].height	=	widthSmall;
			document.images['IMAGESMALL_' + _allID[i]].width	=	con
		}
	}

	function callMagnify( ID, x, y, allID, widthSmall, getX, getY)
	{
		_allID	=	allID.split("|");
			
		current	=	document.images['IMAGESMALL_' + ID].height;
			
		aGetX	=	getX.split("|");
		aGetY	=	getY.split("|");
			
		for(i=0;i<_allID.length;++i)
		{
			con	=	aGetY[i]	/	widthSmall;
			con	=	aGetX[i]	/	con;
				
			document.images['IMAGESMALL_' + _allID[i]].height	=	widthSmall;
			document.images['IMAGESMALL_' + _allID[i]].width	=	con
		}
		
		if(current != y)
		{
			document.images['IMAGESMALL_' + ID].width	=	x;
			document.images['IMAGESMALL_' + ID].height	=	y;		
		}
	}

	function callInternet(note)
	{
		
		proccess	=	false;
			
		if(note.indexOf("www")==0)
		{
			proccess	=	true;
			var path;			path = "http://" + note;
			parametre = "top=0,left=0,height=" + window.screen.height + ",width=" + window.screen.width + ",scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=yes,resizable=yes";
			window.open(path,"EXTERNALCALL",parametre,true);					
		}
			
		if(note.indexOf("http")==0)
		{
			proccess	=	true;
			var path;			path = note;
			parametre = "top=0,left=0,height=" + window.screen.height + ",width=" + window.screen.width + ",scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=yes,resizable=yes";
			window.open(path,"EXTERNALCALL",parametre,true);					
		}
			
		if(mailSyntax(note))
		{
			proccess	=	true;
			var path;			path = "mailto:" + note;
			window.open(path,"EMAIL","",true);		
		}
			
		if(!proccess)
		{
			if(note.length>0)	{alert(note);}
		}
	}
